powered by
"lineqGP"
Compute the 1D Exponential kernel for "lineqGP" models. attr: "gradient".
k1exponential(x1, x2, par, d = 1)
a vector with the first input locations.
a vector with the second input locations.
the values of the kernel parameters (variance, lengthscale).
a number corresponding to the dimension of the input space.
Kernel matrix \(K(x_1,x_2)\) (or \(K(x_1,x_1)\) if \(x_2\) is not defined).
# NOT RUN { x <- seq(0, 1, 0.01) K <- k1exponential(x, x, par = c(1, 0.1)) image(K, main = "covariance matrix using a Exponential kernel") # }
Run the code above in your browser using DataLab