plot.inhpois: Plot of a simulated inhomogeneous Poisson process

Description Usage Arguments Value Examples

View source: R/hawkes.R

Description

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

Usage

1
2
## S3 method for class 'inhpois'
plot(x, precision = 1000, ...)

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.

Value

None

Examples

1
2
3
# 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)

hawkesbow documentation built on April 10, 2021, 1:07 a.m.