Create a rational-quadratic kernel specification
Source:R/kernel-objects.R
rational_quadratic_kernel.RdCreate a rational-quadratic kernel specification
Stability
Stable: from version 1.0.0 this interface changes incompatibly only in a major release, after a deprecation period. Results and options that concern an experimental model class, kernel, or argument follow that interface's tier. See gaussianprocesses-package for the policy.
See also
kernel_rational_quadratic() computes the same covariance
directly from parameter values, without a kernel specification.
Examples
kernel <- rational_quadratic_kernel(length_scale = 0.8, alpha = 2)
evaluate_kernel(kernel, c(0, 0.5, 1))
#> [,1] [,2] [,3]
#> [1,] 1.0000000 0.8299794 0.5171064
#> [2,] 0.8299794 1.0000000 0.8299794
#> [3,] 0.5171064 0.8299794 1.0000000