Description Usage Arguments Value
Updates and returns the mean vector for a gaussian process given evaluation points,
observed data, a mean function, and a covariance function.
Argument model:
y(time) ~ GP(mnfun(x),covfun(x1-x2))
1 | update_gaussian_process(x, y, time, mnfun, covfun, random = FALSE)
|
x, y |
coordinate vectors for the observed data points. |
time |
locations to evaluate the curve at. |
mnfun |
mean function that takes a single argument. If using a constant like 0 use function(z){0}. |
covfun |
covariance function that takes a single argument that represents an absolute distance. Distances are internally calculated using fields::rdist. |
random |
logical; FALSE will return the updated mean function. TRUE will generate a random curve. |
a vector corresponding to the time variable that represents the updated mean vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.