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_inv = NULL,
lambda = NULL,
line_majorizer_intercept = NULL,
line_majorizer_slope = NULL,
line_majorizer_is_loglinear = FALSE,
step_majorizer_vector = NULL,
t_min = NULL,
t_max = NULL,
atmost1 = FALSE,
atleast1 = FALSE
)
a vector of event times
(function, double vector) the integrated (cumulative) rate of the NHPPP
(function, double vector) the inverse of `Lambda()'
(function) the instantaneous rate
The intercept alpha
of the loglinear majorizer function: alpha + beta * t
or exp(alpha + beta * t)
The slope beta
of the loglinear majorizer function: alpha + beta * t
or exp(alpha + beta * t)
(boolean) if TRUE
the majorizer is loglinear exp(alpha + beta * t)
; if FALSE
it is a linear function
(vector, double) K
constant majorizing rates, one per interval; all intervals are of equal length (regular)
(double) the lower bound of the interval
(double) the upper bound of the interval
boolean, draw at most 1 event time
boolean, draw at least 1 event time in interval