queso-0.53.0
|
A class representing a Gaussian likelihood with block-diagonal covariance matrix. More...
#include <GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.h>
Public Member Functions | |
virtual double | actualValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Actual value of the scalar function. More... | |
virtual double | lnValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Logarithm of the value of the scalar function. More... | |
Constructor/Destructor methods. | |
GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients (const char *prefix, const VectorSet< V, M > &domainSet, const V &observations, const GslBlockMatrix &covariance) | |
Default constructor. More... | |
virtual | ~GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients () |
Destructor. More... | |
Public Member Functions inherited from QUESO::BaseGaussianLikelihood< V, M > | |
virtual void | evaluateModel (const V &domainVector, const V *domainDirection, V &modelOutput, V *gradVector, M *hessianMatrix, V *hessianEffect) const =0 |
Evaluates the user's model at the point domainVector . More... | |
BaseGaussianLikelihood (const char *prefix, const VectorSet< V, M > &domainSet, const V &observations) | |
Default constructor. More... | |
virtual | ~BaseGaussianLikelihood () |
Destructor. More... | |
Public Member Functions inherited from QUESO::BaseScalarFunction< V, M > | |
BaseScalarFunction (const char *prefix, const VectorSet< V, M > &domainSet) | |
Default constructor. More... | |
virtual | ~BaseScalarFunction () |
Destructor. More... | |
const VectorSet< V, M > & | domainSet () const |
Access to the protected attribute m_domainSet: domain set of the scalar function. More... | |
Private Attributes | |
const GslBlockMatrix & | m_covariance |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::BaseGaussianLikelihood< V, M > | |
const V & | m_observations |
Protected Attributes inherited from QUESO::BaseScalarFunction< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_domainSet |
Domain set of the scalar function. More... | |
A class representing a Gaussian likelihood with block-diagonal covariance matrix.
Each block diagonal matrix has a multiplicative coefficient that is treated as a hyperparameter to be inferred during the sampling procedure.
Definition at line 47 of file GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.h.
QUESO::GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients< V, M >::GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients | ( | const char * | prefix, |
const VectorSet< V, M > & | domainSet, | ||
const V & | observations, | ||
const GslBlockMatrix & | covariance | ||
) |
Default constructor.
Instantiates a Gaussian likelihood function, given a prefix, its domain, a vector of observations and a block diagonal covariance matrix. The diagonal covariance matrix is of type GslBlockMatrix
. Each block in the block diagonal matrix is an object of type GslMatrix
.
Each block diagonal matrix has a multiplicative coefficient that is treated as a hyperparameter to be inferred during the sampling procedure.
Definition at line 33 of file GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.C.
References QUESO::GslBlockMatrix::getBlock(), QUESO::GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients< V, M >::m_covariance, QUESO::GslBlockMatrix::numBlocks(), QUESO::GslMatrix::numRowsLocal(), and queso_error_msg.
|
virtual |
Destructor.
Definition at line 51 of file GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.C.
|
virtual |
Actual value of the scalar function.
Implements QUESO::BaseScalarFunction< V, M >.
Definition at line 57 of file GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.C.
|
virtual |
Logarithm of the value of the scalar function.
The last n
elements of domainVector
, where n
is the number of blocks in the block diagonal covariance matrix, are treated as hyperparameters and will be sample in a statistical inversion.
The user need not concern themselves with handling these in the model evaluation routine, since they are handled by the likelihood evaluation routine.
Implements QUESO::BaseScalarFunction< V, M >.
Definition at line 67 of file GaussianLikelihoodBlockDiagonalCovarianceRandomCoefficients.C.
|
private |