covMat: Generic Function: Covariance or Cross-Covariance Matrix...

Description Usage Arguments Value

Description

Generic function returning a covariance or a cross-covariance matrix between two sets of locations.

Usage

1
covMat(object, X, Xnew, ...)

Arguments

object

Covariance kernel object.

X

A matrix with d columns, where d is the number of inputs of the covariance kernel. The n_1 rows define a first set of sites or locations, typically used for learning.

Xnew

A matrix with d columns, where d is the number of inputs of the covariance kernel. The n_2 rows define a second set of sites or locations, typically used for testing or prediction. If Xnew = NULL the same locations are used: Xnew = X.

...

Other arguments for methods.

Value

A rectangular matrix with nrow(X) rows and nrow(Xnew) columns containing the covariances K(x1, x2) for all the couples of sites x1 and x2.


kergp documentation built on March 18, 2021, 5:06 p.m.