blockcircbase: blockcircbase function

View source: R/spatialOnly.R

blockcircbaseR Documentation

blockcircbase function

Description

Compute the base matrix of a continuous Gaussian field. Computed as a block circulant matrix on a torus where x and y is the x and y centroids (must be equally spaced)

Usage

blockcircbase(x, y, sigma, phi, model, additionalparameters, inverse = FALSE)

Arguments

x

x centroids, an equally spaced vector

y

y centroids, an equally spaced vector

sigma

spatial variance parameter

phi

spatial decay parameter

model

covariance model, see ?CovarianceFct

additionalparameters

additional parameters for chosen covariance model. See ?CovarianceFct

inverse

logical. Whether to return the base matrix of the inverse covariance matrix (ie the base matrix for the precision matrix), default is FALSE

Value

the base matrix of a block circulant matrix representing a stationary covariance function on a toral grid.


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.