rstlpp {stopp} | R Documentation |
Simulate homogeneous and inhomogeneous spatio-temporal Poisson point patterns on linear networks
Description
This function creates a stlp
object, simulating a spatio-temporal point pattern on
a linear network
following either an
homogeneous or inhomogeneous intensity
Usage
rstlpp(
lambda = 500,
nsim = 1,
verbose = FALSE,
par = NULL,
minX = 0,
maxX = 1,
minY = 0,
maxY = 1,
minT = 0,
maxT = 1,
L
)
Arguments
lambda |
Expected number of points to simulate |
nsim |
Number of patterns to simulate. Default to 1. |
verbose |
Default to |
par |
Parameters of the reference intensity |
minX |
Minimum of x coordinate range |
maxX |
Maximum of x coordinate range |
minY |
Minimum of y coordinate range |
maxY |
Maximum of y coordinate range |
minT |
Minimum of t coordinate range |
maxT |
Maximum of t coordinate range |
L |
linear network |
Value
A stp
object
Author(s)
Nicoletta D'Angelo
Examples
set.seed(2)
h1 <- rstlpp(lambda = 500, L = chicagonet)
set.seed(2)
inh <- rstlpp(lambda = function(x, y, t, a) {exp(a[1] + a[2]*x)}, par = c(4, 1.5),
L = chicagonet)
[Package stopp version 0.2.4 Index]