matern {RandomFieldsUtils}R Documentation

Whittle-Matern Model

Description

matern calculates the Whittle-Matern covariance function (Soboloev kernel).

The Whittle model is given by

C(r)=W_{ν}(r)=2^{1- ν} Γ(ν)^{-1}r^{ν}K_{ν}(r)

where ν > 0 and K_ν is the modified Bessel function of second kind.

The Matern model is given by

C(r) = 2^{1- ν} Γ(ν)^{-1} (√{2ν} r)^ν K_ν(√{2ν} r)

The Handcock-Wallis parametrisation equals

C(r) = 2^{1- ν} Γ(ν)^{-1} (2√{ν} r)^ν K_ν(2√{ν} r)

Usage

whittle(x, nu, derivative=0,
       scaling=c("whittle", "matern", "handcockwallis"))
matern(x, nu, derivative=0,
       scaling=c("matern", "whittle", "handcockwallis"))

Arguments

x

numerical vector; for negative values the modulus is used

nu

numerical vector with positive entries

derivative

value in 0:4.

scaling

numerical vector of positive values or character; see Details.

Value

If derivative=0, the function value is returned, otherwise the derivativeth derivative.

A vector of length(x) is returned; nu is recycled; scaling is recycled if numerical.

If scaling has a numerical values s, the covariance model equals

C(r) = 2^{1- ν} Γ(ν)^{-1} (s√{ν} r)^ν K_ν(s√{ν} r)

The function values are rather precise even for large values of nu.

Author(s)

Martin Schlather, schlather@math.uni-mannheim.de, http://ms.math.uni-mannheim.de

References

Covariance function

See Also

nonstwm

For more details see also RMmatern.

Examples

x <- 3
confirm(matern(x, 0.5), exp(-x))
confirm(matern(x, Inf), gauss(x/sqrt(2)))
confirm(matern(1:2, c(0.5, Inf)), exp(-(1:2)))

[Package RandomFieldsUtils version 0.5.3 Index]