Create a linear 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_linear() computes the same covariance directly from
parameter values, without a kernel specification.
Examples
# A linear trend component.
evaluate_kernel(linear_kernel(variance = 0.1), 1:4)
#> [,1] [,2] [,3] [,4]
#> [1,] 0.1 0.2 0.3 0.4
#> [2,] 0.2 0.4 0.6 0.8
#> [3,] 0.3 0.6 0.9 1.2
#> [4,] 0.4 0.8 1.2 1.6