generatePP: Poisson process

Description Usage Arguments Value Examples

View source: R/generator.R

Description

Generate realizations of an inhomogeneous Poisson process with an intensity function

Usage

1
generatePP(intens, Time, max.intens)

Arguments

intens

Intensity function defined on [0,Time] (needs to be positive)

Time

Final time

max.intens

Upper bound of intensity on [0,Time]

Value

Vector of realizations of the PP

Examples

1
2
3
4
5
6
7
# Generate a Poisson Process with intensity function
# intens= function(x) 100*x*exp(-8*x)
# and max.intens = 5

intens <- function(x) 100*x*exp(-8*x)

poissonProcess <- generatePP(intens, Time=30, max.intens=1)

ppsbm documentation built on March 19, 2018, 5:03 p.m.