gpsmoothllik | R Documentation |
Marginal log-likelihood and gradient as a function of GP hyper-parameters phi and observation noise standard deviation sigma. For use in Gaussian process smoothing where values of phi and sigma may be optimized.
gpsmoothllik(phisig, yobs, rInput, kerneltype = "generalMatern")
phisig |
vector containing GP hyper-parameters phi and observation noise SD sigma. See |
yobs |
vector of observations |
rInput |
distance matrix between all time points of |
kerneltype |
the covariance kernel, types |
A list with elements value
and grad
, which are the log-likelihood value and gradient with respect to phisig
, respectively.
# Suppose phi[1] = 0.5, phi[2] = 3, sigma = 0.1
gpsmoothllik(c(0.5, 3, 0.1), rnorm(10), abs(outer(0:9, t(0:9), '-')[, 1, ]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.