gpcov | R Documentation |
Compute the conditional covariance of a Gaussian process, given a vector of observations, hyper-parameters phi
, and noise standard deviation sigma
.
gpcov(yobs, tvec, tnew, phi, sigma, kerneltype = "generalMatern")
yobs |
vector of observations |
tvec |
vector of time points corresponding to observations |
tnew |
vector of time points at which the conditional covariance should be computed |
phi |
vector of hyper-parameters for the covariance kernel ( |
sigma |
the noise level (if known). By default, both |
kerneltype |
the covariance kernel, types |
The conditional covariance matrix for the GP evaluated at the time points in tnew
.
# Load Fitzhugh-Nagumo dataset
data(FNdat)
tnew <- seq(15, 20, by = 0.5)
# GP covariance of V component at time points in tnew given observations
gpcov(FNdat$V, FNdat$time, tnew, c(2.3, 1.2), 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.