Description Usage Arguments Value Author(s) Examples
Compute the 1D Matern 3/2 kernel for "lineqGP"
models.
attr: "gradient", "derivative".
1 | k1matern32(x1, x2, par, d = 1)
|
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. |
Kernel matrix K(x1,x2) (or K(x1,x1) if x2 is not defined).
A. F. Lopez-Lopera.
1 2 3 | x <- seq(0, 1, 0.01)
K <- k1matern32(x, x, par = c(1, 0.1))
image(K, main = "covariance matrix using a Matern 3/2 kernel")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.