Learn R Programming

stpp (version 2.0-8)

sim.stpp: Generate spatio-temporal point patterns

Description

Generate one (or several) realisation(s) of a spatio-temporal point process in a region \(S\times T\).

Usage

sim.stpp(class="poisson", s.region, t.region, npoints=NULL, 
nsim=1, ...)

Value

A list containing:

xyt

Matrix (or list of matrices if nsim>1) containing the points \((x,y,t)\) of the simulated point pattern. xyt (or any element of the list if nsim>1) is an object of the class stpp.

s.region, t.region

Parameters passed in argument.

Arguments

class

Must be chosen among "poisson", "cluster", "cox", "infectious" and "inhibition".

s.region

Two-column matrix specifying polygonal region containing all data locations. If s.region is missing, the unit square is considered.

t.region

Vector containing the minimum and maximum values of the time interval. If t.region is missing, the interval \([0,1]\) is considered.

npoints

Number of points to simulate.

nsim

Number of simulations to generate. Default is 1.

...

Additional parameters related to the class parameter. See rpp for the Poisson process; rpcp for the Poisson cluster process; rlgcp for the Log-Gaussian Cox process; rinter for the interaction (inhibition or contagious) process and rinfec for the infectious process.

Author

Edith Gabriel <edith.gabriel@inrae.fr>

See Also

rpp, rinfec, rinter, rpcp and rlgcp for the simulation of Poisson, infectious, interaction, Poisson cluster and log-gaussian Cox processes respectively; and plot.stpp, animation and stan for plotting space-time point patterns.