k1matern52: 1D Matern 5/2 Kernel Matrix for '"lineqGP"' Models.

Description Usage Arguments Value Author(s) Examples

View source: R/kernels.R

Description

Compute the 1D Matern 5/2 kernel for "lineqGP" models. attr: "gradient", "derivative".

Usage

1
k1matern52(x1, x2, par, d = 1)

Arguments

x1

A vector with the first input locations.

x2

A vector with the second input locations.

par

Values of the kernel parameters (variance, lengthscale).

d

A number corresponding to the dimension of the input space.

Value

Kernel matrix K(x1,x2) (or K(x1,x1) if x2 is not defined).

Author(s)

A. F. Lopez-Lopera.

Examples

1
2
3
x <- seq(0, 1, 0.01)
K <- k1matern52(x, x, par =  c(1, 0.1))
image(K, main = "covariance matrix using a Matern 5/2 kernel")

lineqGPR documentation built on Jan. 11, 2020, 9:23 a.m.