comp_mat_cov: Matern covariance function for a polygons.

View source: R/RcppExports.R

comp_mat_covR Documentation

Matern covariance function for a polygons.

Description

Computing the Matern covariance function between polygons.

Usage

comp_mat_cov(cross_dists, n, n2, sigsq, phi, nu)

Arguments

cross_dists

a list such that each position contains the cross distances between points within different polygons.

n

an ingeger representing number of polygons (note that, this is different than the size of the list cross_dists

n2

usually, equal to n, except when the function is being used to calculate the "cross" covariance between two different partitions of the same space.

sigsq

the σ^2 parameter from the Matern covariance function.

phi

the φ parameter from the Matern covariance function, controls the range of the spatial dependence.

nu

the ν parameter from the Matern covariance function, controls the differentiability of the process. Note that, if we set nu = .5, then the calculations are based on the exponential covariance function.

Value

The matern covariance matrix associated with a set of polygons.

See Also

single_exp, single_matern, mat_cov


smile documentation built on April 29, 2022, 9:05 a.m.