maternCov: Matern covariance

Description Usage Arguments Examples

View source: R/maternCov.R

Description

This function evaluates the Matern covariance function for the elements of a (potentially non-square) spatial distance matrix

Usage

1
maternCov(d, scale = 1, range = 1, smoothness = 0.5, nugget = 0)

Arguments

d

A numeric vector or matrix of distances at which the Matern correlation function should be evaluated.

scale

Scales correlations to covariances.

range

Matern range parameter. Controls the decay of pointwise correlations as a function of distance.

smoothness

Matern smoothness parameter. Controls the number of process derivatives.

nugget

Spatial covariance nugget.

Examples

1
2
3
4
5
6
7
data("coprecip")
attach(coprecip)

# compute spatial covariance matrix for an exponential covariance function
# using Colorado coordinates
Sigma = maternCov(fields::rdist.earth(coords.s), scale = 1, range = 250,
  smoothness = .5, nugget = 0)

telefit documentation built on Feb. 4, 2020, 9:08 a.m.

Related to maternCov in telefit...