Learn R Programming

poisson (version 1.0)

hpp.sim: Simulate homogeneous Poisson process(es).

Description

Get the n consecutive event times of an homogeneous poisson process with given rate. Note: the rate parameter is often referred to as lambda.

Usage

hpp.sim(rate, num.events, num.sims = 1, t0 = 0, prepend.t0 = T)

Arguments

rate
The rate at which events occur in the Poisson process, aka lambda
num.events
Number of event times to simulate in each process
num.sims
Number of simulated paths to create
t0
Start time
prepend.t0
TRUE: To include t0 at the start of the process, FALSE: Not include to at the start of the process.

Value

else, a num.events by num.sims matrix [num.events+1 if prepend.zero=T]

See Also

hpp.scenario, nhpp.sim

Examples

Run this code
rate <- 10
target = 50
hpp.sim(rate,target)

Run the code above in your browser using DataLab