View source: R/draw_sc_linear.R
draw_sc_linear | R Documentation |
Sample NHPPP times from a linear intensity function
using the inversion method, optionally using an rstream
generator
draw_sc_linear(intercept, slope, t_min, t_max, atmost1 = FALSE)
intercept |
(double) the intercept |
slope |
(double) the slope |
t_min |
(double) lower bound of the time interval |
t_max |
(double) upper bound of the time interval |
atmost1 |
boolean, draw at most 1 event time |
a vector of event times (t_); if no events realize, a vector of length 0
x <- draw_sc_linear(intercept = 0, slope = 0.2, t_min = 0, t_max = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.