draw_sc_step {nhppp} | R Documentation |
(t_min, t_max]
(inversion method)
The intervals need not have the same length.Simulate a piecewise constant-rate Poisson Point Process over (t_min, t_max]
(inversion method)
The intervals need not have the same length.
draw_sc_step(
lambda_vector = rep(1, 5),
times_vector = c(0:5),
rng_stream = NULL,
atmost1 = FALSE,
atleast1 = FALSE
)
lambda_vector |
(scalar, double) |
times_vector |
(vector, double) |
rng_stream |
an |
atmost1 |
boolean, draw at most 1 event time |
atleast1 |
boolean, draw at least 1 event time |
a vector of event times t if no events realize, it will have 0 length
x <- draw_sc_step(lambda_vector = rep(1, 5), times_vector = c(0:5))