sim_nhpp | R Documentation |
Simulate non-homogeneous Poisson process on the real line
sim_nhpp(lambda, min, max, M = NULL)
lambda |
non-negative intensity function. The first argument is the coordinate on the real line. |
min |
lower limit of the observation interval |
max |
upper limit of the observation interval |
M |
an upper bound for the function lambda. If M = |
a vector containing the points of the realization
# Using known bound M over interval [0,10] lambda <- function(x) abs(sin(x)) y <- sim_nhpp(lambda = lambda, min = 0, max = 10, M = 1) # Using unknown bound M over interval [0,10] y <- sim_nhpp(lambda = lambda, min = 0, max = 10, M = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.