draw_sc_loglinear: Special case: Simulate from a non homogeneous Poisson Point Process (NHPPP) from
(t_min, t_max) with log-linear intensity function (inversion method)
Description
Sample NHPPP times from an log linear intensity function
using the inversion method, optionally using an rstream
generator
Usage
draw_sc_loglinear(
alpha = 1,
beta = 0,
range_t = c(0, 10),
rng_stream = NULL,
atmost1 = FALSE
)
Value
a vector of event times (t_); if no events realize,
a vector of length 0
Arguments
- alpha
(double) the intercept in the exponent
- beta
(double) the slope in the exponent
- range_t
(vector, double) min and max of the time interval
- rng_stream
(rstream
) an rstream
object.
- atmost1
boolean, draw at most 1 event time
Examples
Run this codex <- draw_sc_loglinear(alpha = 0, beta = 0.2)
Run the code above in your browser using DataLab