ou_kernel | R Documentation |
Computes
amplitude^2 * \exp ( - d / length_scale )
where d ≥ 0 is the distance between any two points in space for amplitude > 0 and length_scale > 0.
ou_kernel(d, amplitude, length_scale, perform_checks = TRUE)
d |
A set of non-negative real numbers. Pairwise distances between points. |
amplitude |
A positive real number. The amplitude of the Ornstein-Uhlenbeck process. |
length_scale |
A positive real number. The length-scale of the Ornstein-Uhlenbeck process. |
perform_checks |
Logical. Check if function inputs are specified correctly. |
An array of positive values between 0 and amplitude with the same dimension as d.
x <- 1:10 d <- abs(outer(x, x, "-")) K <- ou_kernel(d, amplitude = 1, length_scale = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.