View source: R/draw_sc_step_regular.R
draw_sc_step_regular | R Documentation |
Sampling from NHPPPs with piecewise constant intensities with same interval lengths (non-vectorized)
draw_sc_step_regular(
Lambda_vector = NULL,
lambda_vector = NULL,
t_min = NULL,
t_max = NULL,
atmost1 = FALSE,
atleast1 = FALSE
)
Lambda_vector |
(scalar, double) |
lambda_vector |
(scalar, double) |
t_min |
(scalar, double) lower bound of the time interval |
t_max |
(scalar, double) upper bound of the time interval |
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_regular(Lambda_vector = 1:5, t_min = 0, t_max = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.