This is a wrapper to the package's specific functions, and thus somewhat slower. For time-intensive simulations prefer one of the specific functions.
draw(
lambda = NULL,
lambda_maj = NULL,
Lambda = NULL,
Lambda_inv = NULL,
range_t = c(0, 10),
rng_stream = NULL,
atmost1 = FALSE,
atleast1 = FALSE
)a vector of event times
(function) the instantaneous rate of the NHPPP. A continuous function of time.
(double, vector) the intercept and optional slope of the majorizing
linear (if exp_maj = FALSE) or log-linear (if exp_maj = TRUE) function in range_t.
(function, double vector) a continuous increasing R to R map which is the integrated rate of the NHPPP
(function, double vector) the inverse of Lambda()
(vector, double) min and max of the time interval.
(rstream) an rstream object or NULL
boolean, draw at most 1 event time
boolean, draw at least 1 event time in interval