Vectorized sampling from a zero-truncated non homogeneous Poisson Point Process (NHPPP) from an interval (thinning method) with piecewise constant_majorizers. The majorizers are step functions over equal-length time intevals.
vztdraw_intensity(
lambda = NULL,
lambda_args = NULL,
Lambda_maj_matrix = NULL,
lambda_maj_matrix = NULL,
range_t = NULL,
tol = 10^-6,
atmost1 = FALSE,
...
)a matrix of event times (columns) per draw (rows) NAs are structural empty spots
(function) a vectorized intensity function, with one or two arguments. The first is time. The optional second is a named list with additional arguments.
(list) arguments for lambda: see vdraw_intensity()
(elements shared and row_args; passed as lambda's second
positional argument).
(matrix) for the majorizeintegrated intensity rates at the end of each interval
(matrix) intensity rates, one per interval
(vector, or matrix) t_min and t_max, possibly vectorized
(scalar, double) tolerance for the number of events
boolean, draw at most 1 event time
(any) other arguments (ignored -- used for flexibility in calling from other functions)