Learn R Programming

hawkesbow (version 1.0.3)

plot.inhpois: Plot of a simulated inhomogeneous Poisson process

Description

Plots a simulated inhomogeneous Poisson process, highlighting the steps used in Ogata's thinning algorithm.

Usage

# S3 method for inhpois
plot(x, precision = 1000, ...)

Value

None

Arguments

x

A simulated inhomogeneous Poisson process.

precision

(default = 1e3) Number of points to plot.

...

Only there to fit the declaration of S3 method plot.

Examples

Run this code
# Simulate an inhomogeneous Poisson process with function intensity 1 + sin(x)
x <- inhpois(end=10, fun=function(y) {1 + sin(y)}, M=2)
plot(x)

Run the code above in your browser using DataLab