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
name
A character vector of length one giving the mean function's name; "zero"
hypers
A numeric vector giving the mean function's hyperparameters
mean()
Compute function prior mean
MeanZero$mean(X, hypers = NULL)
X
The input values (should be a numeric matrix)
hypers
A 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)
X
The input values (should be a numeric matrix)
hypers
A numeric vector giving hyperparameters for the mean function. If NULL (the default), the hypers data member is used.
param
An 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)
X
The input values (should be a numeric matrix)
hypers
A numeric vector giving hyperparameters for the mean function. If NULL (the default), the hypers data member is used.
dimension
an 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())
hypers
A(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)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.