Learn R Programming

poisson (version 1.0)

nhpp.mean.event.times: Expected event times of a non-homogeneous Poisson process.

Description

Calculate the expected event times of a non-homogeneous Poisson process.

Usage

nhpp.mean.event.times(rate, num.events, prob.func, max.time = 1000)

Arguments

rate
The rate at which events occur in the Poisson process, aka lambda
num.events
Observe mean event times at this many points
prob.func
aka intensity function, function that takes time as sole argument and returns value between 0 and 1
max.time
Maximum time value to use

Value

See Also

nhpp.event.times, nhpp.scenario, hpp.mean.event.times

Examples

Run this code
intensity <- function(t) pmin(t/3, 1)
rate <- 10
nhpp.mean.event.times(rate, 50, prob.func = intensity)

Run the code above in your browser using DataLab