Create a periodic 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_periodic() computes the same covariance directly from
parameter values, without a kernel specification.
Examples
# Monthly data with a yearly cycle.
kernel <- periodic_kernel(length_scale = 0.8, period = 12)
evaluate_kernel(kernel, c(0, 6, 12))
#> [,1] [,2] [,3]
#> [1,] 1.00000000 0.04393693 1.00000000
#> [2,] 0.04393693 1.00000000 0.04393693
#> [3,] 1.00000000 0.04393693 1.00000000