k1exponential: 1D Exponential Kernel Matrix for '"lineqGP"' Models.

Description Usage Arguments Value Author(s) Examples

View source: R/kernels.R

Description

Compute the 1D Exponential kernel for "lineqGP" models. attr: "gradient".

Usage

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

Arguments

x1

a vector with the first input locations.

x2

a vector with the second input locations.

par

the 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 <- k1exponential(x, x, par =  c(1, 0.1))
image(K, main = "covariance matrix using a Exponential kernel")

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