Description Details Warning Super class Public fields Methods
The isometric squared exponential covariance function, also called the Gaussian kernel, the squared exponential kernel, or the radial basis function.
The isometric squared exponential covariance function has two hyperparameters, σ_f, the scale factor, and ell, the characteristic length scale. The scale factor governs (on average) how far from the mean function values can be, while the length scale governs how quickly the function can change; or, in other words, as the function output covariance is given as a function of distance in the covariate space, the length scale governs what "closeness" means.
The covariance between f(x_i) and f(x_j) is given by
k ( x_i, x_j ) = σ_f^2 exp [ ( x_i - x_j )^T M ( x_i - x_j ) ],
where M is a matrix whose diagonal entries are 1 / ell^2.
Note that the hyperparameters should be stored on the log scale; that is, you should supply the log of the scale factor and the log of the length scale (in that order).
gpmss::CovarianceFunction -> CovSEiso
nameA character vector of length one giving the covariance function's name; "isotropic squared exponential"
hypersA numeric vector giving the covariance function's hyperparameters; a vector of length two giving the log of the scale factor and the log of the length scale, in that order
cov()Compute function covariance
CovSEiso$cov(X, Z = X, hypers = NULL)
XThe first set of input values (should be a numeric matrix)
ZThe second set of input values (should be a numeric matrix); The default is Z = X.
hypersA numeric vector giving hyperparameters for the covariance function. If NULL (the default), the hypers data member is used.
parameter_derivative()Compute partial derivatives of covariance function with respect to its hyperparameters
CovSEiso$parameter_derivative(X, Z = X, hypers = NULL, param = 1, K = NULL)
XThe first set of input values (should be a numeric matrix)
ZThe second set of input values (should be a numeric matrix); The default is Z = X.
hypersA numeric vector giving hyperparameters for the covariance function. If NULL (the default), the hypers data member is used.
paramAn integer vector of length one; which element of
hypers should the derivative be taken with respect to?
If 1 (the default), the derivative is taken with respect to the
(log of the) scale factor; if 2, it is taken with respect to the
(log of the) length scale.
KAn optional provision of the pre-computed kernel; this is useful if parameter_derivative() will be called repeatedly (for the different hypers) without the kernel itself changing
input_derivative()Compute partial derivatives of covariance function with respect to its inputs
CovSEiso$input_derivative( X, Z = X, hypers = NULL, dimension = 1, order = 1, K = NULL )
XThe first set of input values (should be a numeric matrix)
ZThe second set of input values (should be a numeric matrix); The default is Z = X.
hypersA numeric vector giving hyperparameters for the covariance function. If NULL (the default), the hypers data member is used.
dimensionan integer vector of length one giving the dimension of X with respect to which the derivative is being taken; the default is 1
orderAn integer vector of length one indicating whether the first partial derivative (order = 1) is desired, or the cross partial (order = 2); the default is 1
KAn optional provision of the pre-computed kernel; this is useful if parameter_derivative() will be called repeatedly (for the different hypers) without the kernel itself changing
new()Create a new CovSEiso object
CovSEiso$new(hypers = c(0, 0))
hypersA numeric vector giving hyperparameters for the covariance function; a vector of length two giving the log of the scale factor and the log of the length scale, in that order
clone()The objects of this class are cloneable with this method.
CovSEiso$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.