Learn R Programming

nhppp (version 1.0.2)

ztppp: Simulate a zero-truncated homogeneous Poisson Point Process over (t_min, t_max]

Description

Simulate a zero-truncated homogeneous Poisson Point Process over (t_min, t_max]

Usage

ztppp(rate, t_min, t_max, atmost1 = FALSE)

Value

a vector of event times of size size

Arguments

rate

(scalar, double) constant instantaneous rate

t_min

(scalar, double) lower bound of the time interval

t_max

(scalar, double) upper bound of the time interval

atmost1

boolean, draw at most 1 event time

Examples

Run this code
x <- ztppp(t_min = 0, t_max = 10, rate = 0.001)

Run the code above in your browser using DataLab