rpoistpp {stlnpp} | R Documentation |
Simulating one-dimensional Poisson point patterns
Description
This function simulates realisations of an one-dimensional Poisson point process.
Usage
rpoistpp(lambda,a,b,check=FALSE,lmax=NULL,nsim=1)
Arguments
lambda |
intensity of the point process. it can be either a number, a function of location and time, or an object of class |
a |
lower bound of time period |
b |
upper bound of time period |
check |
logical value indicating whether to check that all the (x,y) points lie inside the specified time period. |
lmax |
upper bound for the values of |
nsim |
number of simulated patterns to generate |
Details
This function generates realisations of a temporal poisson point process based on a given intensity function lambda and lower/upper bounds a and b.
Value
an object of class tpp
if nsim=1, otherwise a list of objects of class tpp
.
Author(s)
Mehdi Moradi <m2.moradi@yahoo.com>
References
Moradi, M., & Mateu, J. (2020). First-and second-order characteristics of spatio-temporal point processes on linear networks. Journal of Computational and Graphical Statistics, 29(3), 432-443.
See Also
Examples
f <- function(t){0.1*exp(t)}
X <- rpoistpp(f,a=1,b=10)