ztdraw_intensity {nhppp} | R Documentation |
Simulate size
samples from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from
(t0, t_max) (thinning method)
Description
Sample zero-truncated NHPPP intensity times using the thinning method, optionally using
an rstream
generator
Usage
ztdraw_intensity(
lambda,
lambda_maj = NULL,
exp_maj = FALSE,
range_t = c(0, 10),
rng_stream = NULL,
atmost1 = FALSE
)
Arguments
lambda |
(function) the instantaneous rate of the NHPPP. A continuous function of time. |
lambda_maj |
(double, vector) the intercept and optional slope of the majorizing
linear (if |
exp_maj |
(boolean) if |
range_t |
(vector, double) min and max of the time interval. |
rng_stream |
( |
atmost1 |
(boolean) draw at most 1 event time |
Value
a vector of at least 1 event times
Examples
x <- ztdraw_intensity(lambda = function(t) 1 + sin(t))
[Package nhppp version 0.1.4 Index]