
Simulate a piecewise constant-rate Poisson Point Process over (t_min, t_max] (inversion method) The intervals need not have the same length.
Source: R/draw_sc_step.R
draw_sc_step.RdSimulate a piecewise constant-rate Poisson Point Process over (t_min, t_max] (inversion method)
The intervals need not have the same length.
Arguments
- lambda_vector
(scalar, double)
Kconstant rates, one per interval- time_breaks
(vector, double)
K+1time points definingKintervals of constant rates:[t_1 = range_t[1], t_2): the first interval[t_k, t_{k+1}): thek-th interval[t_{K}, t_{K+1} = range_t[2]): theK-th (last) interval- atmost1
boolean, draw at most 1 event time
- atleast1
boolean, draw at least 1 event time