gauss: Gaussian Covariance Model

View source: R/maths.R

gaussR Documentation

Gaussian Covariance Model

Description

gauss is a stationary isotropic covariance model. The corresponding covariance function only depends on the distance r ≥ 0 between two points and is given by

C(r)=e^{-r^2}.

Usage

gauss(x, derivative=0)

Arguments

x

numerical vector; for negative values the modulus is used

derivative

value in 0:4.

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.

References

Gelfand, A. E., Diggle, P., Fuentes, M. and Guttorp, P. (eds.) (2010) Handbook of Spatial Statistics. Boca Raton: Chapman & Hall/CRL.

Stein, M. L. (1999) Interpolation of Spatial Data. New York: Springer-Verlag

Examples

x <- 3
confirm(gauss(x), exp(-x^2))

RandomFieldsUtils documentation built on April 19, 2022, 5:09 p.m.