Description Details Super class Public fields Methods
A zero mean; for any set of inputs, this function specifies that the Gaussian process's mean is zero.
As this function specifies a constant prior mean, it has no hyperparameters.
gpmss::MeanFunction -> MeanZero
nameA character vector of length one giving the mean function's name; "zero"
hypersA numeric vector giving the mean function's hyperparameters
mean()Compute function prior mean
MeanZero$mean(X, hypers = NULL)
XThe input values (should be a numeric matrix)
hypersA numeric vector giving hyperparameters for the mean function. If NULL (the default), the hypers data member is used.
parameter_derivative()Compute partial derivatives of mean function with respect to its hyperparameters
MeanZero$parameter_derivative(X, hypers = NULL, param = 1)
XThe input values (should be a numeric matrix)
hypersA numeric vector giving hyperparameters for the mean 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?
The default is 1
input_derivative()Compute partial derivatives of mean function with respect to its inputs
MeanZero$input_derivative(X, hypers = NULL, dimension = 1)
XThe input values (should be a numeric matrix)
hypersA numeric vector giving hyperparameters for the mean 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
new()Create a new MeanZero object
MeanZero$new(hypers = numeric())
hypersA(n empty) numeric vector giving hyperparameters for the mean function.
clone()The objects of this class are cloneable with this method.
MeanZero$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.