Learn R Programming

ppsbm (version 0.2.2)

generatePP: Poisson process

Description

Generate realizations of an inhomogeneous Poisson process with an intensity function

Usage

generatePP(intens, Time, max.intens)

Value

Vector of realizations of the PP

Arguments

intens

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

Time

Final time

max.intens

Upper bound of intensity on [0,Time]

Examples

Run this code
# 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)

Run the code above in your browser using DataLab