ztdraw_cumulative_intensity {nhppp}R Documentation

Simulate from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t_min, t_max) (order statistics method)

Description

Sample zero-truncated NHPPP times using the order statistics method, optionally using an rstream generator

Usage

ztdraw_cumulative_intensity(
  Lambda,
  Lambda_inv = NULL,
  range_t = c(0, 10),
  range_L = c(Lambda(range_t[1]), Lambda(range_t[2])),
  rng_stream = NULL,
  atmost1 = FALSE
)

Arguments

Lambda

(function, double vector) a continuous increasing R to R map which is the integrated rate of the NHPPP

Lambda_inv

(function, double vector) the inverse of Lambda()

range_t

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

range_L

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

rng_stream

(rstream) an rstream object or NULL.

atmost1

(boolean) draw at most 1 event time

Value

a vector of at least 1 event times

Examples

x <- ztdraw_cumulative_intensity(Lambda = function(t) t + cos(t) - 1)

[Package nhppp version 0.1.3 Index]