Learn R Programming

nhppp (version 0.1.3)

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(range_t = c(0, 10), rate = 1, rng_stream = NULL, atmost1 = FALSE)

Value

a vector of event times of size size

Arguments

range_t

(vector, double) min and max of the time interval

rate

(scalar, double) constant instantaneous rate

rng_stream

an rstream object

atmost1

boolean, draw at most 1 event time

Examples

Run this code
x <- ztppp(range_t = c(0, 10), rate = 0.001)

Run the code above in your browser using DataLab