ppp_sequential {nhppp}R Documentation

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

Description

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

Usage

ppp_sequential(
  range_t = c(0, 10),
  rate = 1,
  tol = 10^-6,
  rng_stream = NULL,
  atmost1 = FALSE
)

Arguments

range_t

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

rate

(scalar, double) constant instantaneous rate

tol

the probability that we will have more than the drawn events in (t_min, t_max]

rng_stream

an rstream object

atmost1

boolean, draw at most 1 event time

Value

a vector of event times t if no events realize, it will have 0 length

Examples

x <- ppp_sequential(range_t = c(0, 10), rate = 1, tol = 10^-6)

[Package nhppp version 0.1.3 Index]