rlgcpspde: Function to simulate from a spatial/spatio temporal LGCP...

Description Usage Arguments Value

Description

Function to simulate from a spatial/spatio temporal LGCP (SPDE model)

Usage

1
2
3
4
rlgcpspde(spatial.polygon = NULL, mesh.pars = NULL, mu = 0,
  kappa = NULL, sigma2 = 0.05, n = 1, rho = 0.9, mark = FALSE,
  beta = NULL, mark.function = function(x, y) cos(x) - sin(y), seed = 1,
  non.stat = NULL)

Arguments

spatial.polygon

the spatial polygon for the domain is used to construct the delauney traingulation

mesh.pars

a named vertor of mesh parameters, must contain cutoff length at which to cut off triangle edge lengths, min triangle edge length inside region, and max triangle edge length inside region.

mu

numeric or a named list, the intercept term to simulate a LGCP, by default is 0. if a named list must contain elements mean, cov.model, cov.pars the latter two parameters of the grf function geoR. to simulate a non-stationary expectation

kappa

a numeric constant, parameter of the SPDE model.

sigma2

a numeric constant, parameter of the SPDE model, by default this is 0.05.

n

a numeric constant defining the number of time points, by default 1.

rho

the ar1 correlation coefficient for spatio-temporal samples, by default this is 0.9.

mark

Logical, if TRUE a marked point pattern is simulated

beta

a scalar, this, the interaction parameter describing the dependance between the mark and point locations

mark.function

a function of 2D spatial coordinates which describes the spatial process specific to the mark, by default this is function(x,y) cos(x) - sin(y).

seed

seed for the simulation, by default this is 1

non.stat

a named list the first element fn the spatial function which kappa varies with and theta a vctor of length 3 specifying the theta values of the non-stationary model

Value

A named matrix (or a list of matricies if spatio-temporal) of point locations and (if a marked point pattern is simulated) a mark values


cmjt/lgcpSPDE documentation built on July 25, 2019, 3:05 p.m.