rstpp | R Documentation |
This function creates a stp
object, simulating a spatio-temporal point pattern
following either an
homogeneous or inhomogeneous intensity
rstpp(
lambda = 500,
nsim = 1,
verbose = FALSE,
par = NULL,
minX = 0,
maxX = 1,
minY = 0,
maxY = 1,
minT = 0,
maxT = 1
)
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 |
A stp
object
Nicoletta D'Angelo
stppm
# homogeneous Poisson processes
set.seed(2)
h1 <- rstpp(lambda = 500)
set.seed(2)
h2 <- rstpp(lambda = 500, minX = 0,
maxX = 2, minY = 3, maxY = 5, minT = 1, maxT = 9)
set.seed(2)
h3 <- rstpp(lambda = 900, nsim = 3, verbose = TRUE)
# inhomogeneous Poisson process
set.seed(2)
inh <- rstpp(lambda = function(x, y, t, a) {exp(a[1] + a[2]*x)}, par = c(2, 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.