condition_gaussian_process | R Documentation |
Condition a Multivariate Normal distribution based on a Gaussian Process using a exponentiated quadratic covariance matrix.
condition_gaussian_process(
n,
x,
y,
x_new,
amplitude = 1,
length_scale = 1,
delta = 1e-09
)
n |
number of random draws. |
x |
position of values to condition on. |
y |
values to condition on (at positions |
x_new |
new positions to estimate values at. |
amplitude |
Vertical scale of the covariance function |
length_scale |
Horizontal scale of the covariance function |
delta |
A small offset along the diagonal of the resulting covariance
matrix to ensure the function returns a positive-semidefinite matrix. Can
also be used as a white noise kernel to allow for increased variation at
individual positions along the vector |
A matrix of size M \times N
, where M
is length(x_new)
,
and N
is n
. Each column is a random draw from the conditioned
multivariate normal where each row corresponds to the draw at the position
in x_new
.
x <- 1:10
y <- rep(0, 10)
x_new <- 11:15
condition_gaussian_process(3, x, y, x_new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.