draw_sc_linear {nhppp} | R Documentation |
Sample NHPPP times from a linear intensity function
using the inversion method, optionally using an rstream
generator
draw_sc_linear(
alpha = 1,
beta = 0,
range_t = c(0, 10),
rng_stream = NULL,
atmost1 = FALSE
)
alpha |
(double) the intercept |
beta |
(double) the slope |
range_t |
(vector, double) min and max of the time interval |
rng_stream |
( |
atmost1 |
boolean, draw at most 1 event time |
a vector of event times (t_); if no events realize, a vector of length 0
x <- draw_sc_linear(alpha = 0, beta = 0.2)