rstpp {stopp}R Documentation

Simulate homogeneous and inhomogeneous spatio-temporal Poisson point patterns

Description

This function creates a stp object, simulating a spatio-temporal point pattern following either an homogeneous or inhomogeneous intensity

Usage

rstpp(
  lambda = 500,
  nsim = 1,
  verbose = FALSE,
  par = NULL,
  minX = 0,
  maxX = 1,
  minY = 0,
  maxY = 1,
  minT = 0,
  maxT = 1
)

Arguments

lambda

Expected number of points to simulate

nsim

Number of patterns to simulate. Default to 1.

verbose

Default to FALSE

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

Value

A stp object

Author(s)

Nicoletta D'Angelo

See Also

stppm

Examples


# 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))


[Package stopp version 0.2.3 Index]