mat_cov: Matern covariance function for a given distance matrix.

View source: R/RcppExports.R

mat_covR Documentation

Matern covariance function for a given distance matrix.

Description

Computing the Matern covariance function for a matrix of distances.

Usage

mat_cov(dists, sigsq, phi, nu)

Arguments

dists

a numeric matrix representing the distance between spatial entities.

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.

Value

The matern covariance function (for a stationary and isotropic process) associated with the provided distances (dists) and the given set of parameters.

See Also

single_exp, single_matern


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