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