gpcov {magi} | R Documentation |
Conditional covariance of Gaussian process given observations
Description
Compute the conditional covariance of a Gaussian process, given a vector of observations, hyper-parameters phi
, and noise standard deviation sigma
.
Usage
gpcov(yobs, tvec, tnew, phi, sigma, kerneltype = "generalMatern")
Arguments
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 |
Value
The conditional covariance matrix for the GP evaluated at the time points in tnew
.
Examples
# 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)