Learn R Programming

kergp (version 0.5.7)

kMatern: Matérn Kernels

Description

Matérn kernels, obtained by plugging the Euclidian norm into a 1-dimensional Matérn function.

Usage

kMatern(d, nu = "5/2")

Value

An object of class "covMan" with default parameters: 1 for ranges and variance values.

Arguments

d

Dimension.

nu

Character corresponding to the smoothness parameter \(\nu\) of Matérn kernels. At this stage, the possible values are "1/2" (exponential kernel), "3/2" or "5/2".

References

C.E. Rasmussen and C.K.I. Williams (2006), Gaussian Processes for Machine Learning, the MIT Press, tools:::Rd_expr_doi("10.7551/mitpress/3206.001.0001")

Examples

Run this code
kMatern()  # default: d = 1, nu = 5/2
kMatern(d = 2)
myMatern <- kMatern(d = 5, nu = "3/2")
coef(myMatern) <- c(range = 1:5, sigma2 = 0.1)
myMatern
try(kMatern(nu = 2))  # error

Run the code above in your browser using DataLab