powered by
Sample NHPPP times using the inversion method, optionally using an rstream generator object
rstream
draw_cumulative_intensity_inversion( Lambda, Lambda_inv = NULL, range_t = c(0, 10), range_L = c(Lambda(range_t[1]), Lambda(range_t[2])), rng_stream = NULL, atmost1 = FALSE )
a vector of event times (t_); if no events realize, a vector of length 0
(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()
Lambda()
(vector, double) min and max of the time interval
(vector, double) min and max of the transformed time interval
(rstream) an rstream object.
boolean, draw at most 1 event time
x <- draw_cumulative_intensity_inversion(Lambda = function(t) t + cos(t) - 1)
Run the code above in your browser using DataLab