cov = gpcovar(net, x) [cov, covf] = gpcovar(net, x)
cov = gpcovar(net, x) takes
a Gaussian Process data structure net together with
a matrix x of input vectors, and computes the covariance
matrix cov. The inverse of this matrix is used when calculating
the mean and variance of the predictions made by net.
[cov, covf] = gpcovar(net, x) also generates the covariance
matrix due to the covariance function specified by net.covarfn
as calculated by gpcovarf.
x and is then
passed to gpfwd so that predictions (with mean ytest and
variance sigsq) can be made for the test inputs
xtest.
cninv = inv(gpcovar(net, x)); [ytest, sigsq] = gpfwd(net, xtest, cninv);
gp, gppak, gpunpak, gpcovarp, gpcovarf, gpfwd, gperr, gpgradCopyright (c) Ian T Nabney (1996-9)