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.Rd
Simulate 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)
K
constant rates, one per interval- time_breaks
(vector, double)
K+1
time points definingK
intervals 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