Learn R Programming

poisson (version 1.0)

hpp.event.times: Simulate homogeneous Poisson process event times

Description

Randomly sample the num.events consecutive event times of a random homogeneous poisson process with given rate. Note: the rate parameter is often referred to as lambda.

Usage

hpp.event.times(rate, num.events, num.sims = 1, t0 = 0)

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

Value

else, a num.events by num.sims matrix

See Also

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

Examples

Run this code
rate <- 10
target <- 50
hpp.event.times(rate, target)

Run the code above in your browser using DataLab