
Simulate from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t_min, t_max) (order statistics method)
Source:R/ztdraw_cumulative_intensity.R
ztdraw_cumulative_intensity.RdSample zero-truncated NHPPP times using the order statistics method.
Usage
ztdraw_cumulative_intensity(
Lambda,
Lambda_inv,
t_min,
t_max,
atmost1 = FALSE,
report_first_K = NULL,
report_last_K = NULL,
generate_at_least_K = 1,
generate_at_most_K = NULL
)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()- t_min
(double) the lower bound of the time interval
- t_max
(double) the upper bound of the time interval
- atmost1
(boolean) report at most 1 event time of the conditioned process (alias for
report_first_K = 1)- report_first_K
NULLor a positive integer: report only the earliest K event times of the conditioned realization.- report_last_K
NULLor a positive integer: report only the latest K event times of the conditioned realization (ascending order).- generate_at_least_K
non-negative integer: condition on at least K events in the interval. The default 1 is the zero-truncated process.
- generate_at_most_K
NULLor a positive integer: condition on at most K events.