ztdraw_intensity_step {nhppp} | R Documentation |
Simulate from a zero-truncated non homogeneous Poisson Point Process (NHPPP) from (t0, t_max) (thinning method) with piecewise constant_majorizer
Description
Sample zero-truncated NHPPP times using the thinning method, optionally using
an rstream
generator
Usage
ztdraw_intensity_step(
lambda,
lambda_maj_vector = lambda(1:10),
times_vector = 0:10,
rng_stream = NULL,
atmost1 = FALSE
)
Arguments
lambda |
(function) the instantaneous rate of the NHPPP. A continuous function of time. |
lambda_maj_vector |
(scalar, double) |
times_vector |
(vector, double) |
rng_stream |
( |
atmost1 |
boolean, draw at most 1 event time |
Value
a vector of event times (t_) with at least one element
Examples
x <- ztdraw_intensity_step(lambda = function(t) exp(.02 * t))
[Package nhppp version 0.1.4 Index]