View source: R/vdraw_cumulative_intensity.R
vdraw_cumulative_intensity | R Documentation |
Sample NHPPP times using the cumulative intensity function and its inverse.
vdraw_cumulative_intensity(
Lambda,
Lambda_inv,
t_min,
t_max,
Lambda_args = NULL,
Lambda_inv_args = NULL,
tol = 10^-6,
atmost1 = FALSE,
atleast1 = FALSE
)
Lambda |
(function, double vector) an increasing function which is the integrated rate of the NHPPP. It should take a vectorized argument t for times and an optional arguments list. |
Lambda_inv |
(function, double vector) the inverse of |
t_min |
(scalar | vector | column matrix) the lower bound of the interval for each sampled point process The length of this argument is the number of point processes that should be drawn. |
t_max |
(scalar | vector | column matrix) the upper bound of the interval for each sampled point process The length of this argument is the number of point processes that should be drawn. |
Lambda_args |
(list) optional arguments to pass to Lambda. |
Lambda_inv_args |
(list) optional arguments to pass to Lambda_inv(). |
tol |
the tolerange for the calulations. |
atmost1 |
boolean, draw at most 1 event time per sampled point process. |
atleast1 |
boolean, draw at least 1 event time |
a matrix of event times with one row per sampled point process.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.