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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/poisson.R

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

1
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

A numeric vector of length num.events if num.sims=1, else, a num.events by num.sims matrix [num.events+1 if prepend.zero=T]

Author(s)

Kristian Brock - Author, Daniel Slade - Contributor

See Also

hpp.scenario, nhpp.sim

Examples

1
2
3
rate <- 10
target = 50
hpp.sim(rate,target)

poisson documentation built on May 2, 2019, 6:53 a.m.