Description Warning Note Super class Public fields Methods
The likelihood of y_i given f_i is normal with mean f_i and variance σ_y^2. It takes a single hyperparameter, log(σ_y).
Note the hyperparameter should be given on the log scale!
The f_derivative()
method is currently unimplemented for
the Gaussian likelihood
(it is not needed for parameter optimization).
gpmss::LikelihoodFunction
-> LikGauss
name
A character vector of length one giving the likelihood function's name; "Gaussian"
hypers
A numeric vector giving the likelihood function's hyperparameters
lp()
Compute log probability of outcomes given function values
LikGauss$lp(y, f, hypers = NULL)
y
The observed outcomes
f
The function values (generally a posterior mean or mode)
hypers
A numeric vector giving hyperparameters for the likelihood function. If NULL (the default), the hypers data member is used.
f_derivative()
Compute partial derivatives of log likelihood function with respect to f
LikGauss$f_derivative(y, f, hypers = NULL, order = 1)
y
The observed outcomes
f
The function values (generally a posterior mean or mode)
hypers
A numeric vector giving hyperparameters for the likelihood function. If NULL (the default), the hypers data member is used.
order
An integer vector of length one giving order of derivative desired; the default is 1
new()
Create a new LikGauss object
LikGauss$new(hypers = 0)
hypers
A numeric vector giving hyperparameters for the likelihood function; a numeric vector of length one giving the (log of) the standard deviation of the normal distribution for the likelihood
clone()
The objects of this class are cloneable with this method.
LikGauss$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.