queso-0.57.1
|
A class representing a Gaussian likelihood with block-diagonal covariance matrix. More...
#include <GaussianLikelihoodBlockDiagonalCovariance.h>
Public Member Functions | |
double & | blockCoefficient (unsigned int i) |
Get (non-const) multiplicative coefficient for block i . More... | |
const double & | getBlockCoefficient (unsigned int i) const |
Get (const) multiplicative coefficient for block i . More... | |
virtual double | lnValue (const V &domainVector) const |
Logarithm of the value of the scalar function. More... | |
Constructor/Destructor methods. | |
GaussianLikelihoodBlockDiagonalCovariance (const char *prefix, const VectorSet< V, M > &domainSet, const V &observations, const GslBlockMatrix &covariance) | |
Default constructor. More... | |
virtual | ~GaussianLikelihoodBlockDiagonalCovariance () |
Destructor. More... | |
Public Member Functions inherited from QUESO::LikelihoodBase< V, M > | |
virtual void | evaluateModel (const V &domainVector, const V *domainDirection, V &modelOutput, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Deprecated. Evaluates the user's model at the point domainVector . More... | |
virtual void | evaluateModel (const V &domainVector, V &modelOutput) const |
Evaluates the user's model at the point domainVector . More... | |
virtual double | actualValue (const V &domainVector, const V *, V *, M *, V *) const |
Actual value of the scalar function. More... | |
LikelihoodBase (const char *prefix, const VectorSet< V, M > &domainSet, const V &observations) | |
Default constructor. More... | |
virtual | ~LikelihoodBase ()=0 |
Destructor, pure to make this class abstract. More... | |
Public Member Functions inherited from QUESO::BaseScalarFunction< V, M > | |
void | setFiniteDifferenceStepSize (double fdStepSize) |
Sets the step size for finite differencing gradients. More... | |
void | setFiniteDifferenceStepSize (unsigned int i, double fdStepSize) |
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... | |
virtual double | lnValue (const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const |
Logarithm of the value of the scalar function. Deprecated. More... | |
virtual double | lnValue (const V &domainVector, V &gradVector) const |
Returns the logarithm of the function and its gradient at domainVector . More... | |
virtual double | lnValue (const V &domainVector, V &gradVector, const V &domainDirection, V &hessianEffect) const |
Private Attributes | |
std::vector< double > | m_covarianceCoefficients |
const GslBlockMatrix & | m_covariance |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::LikelihoodBase< 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.
Definition at line 45 of file GaussianLikelihoodBlockDiagonalCovariance.h.
QUESO::GaussianLikelihoodBlockDiagonalCovariance< V, M >::GaussianLikelihoodBlockDiagonalCovariance | ( | 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
.
Furthermore, each block comes with a multiplicative coefficient which defaults to 1.0.
Definition at line 35 of file GaussianLikelihoodBlockDiagonalCovariance.C.
References QUESO::GslBlockMatrix::getBlock(), QUESO::GaussianLikelihoodBlockDiagonalCovariance< V, M >::m_covariance, QUESO::GslBlockMatrix::numBlocks(), and QUESO::GslMatrix::numRowsLocal().
|
virtual |
double & QUESO::GaussianLikelihoodBlockDiagonalCovariance< V, M >::blockCoefficient | ( | unsigned int | i | ) |
Get (non-const) multiplicative coefficient for block i
.
Definition at line 60 of file GaussianLikelihoodBlockDiagonalCovariance.C.
const double & QUESO::GaussianLikelihoodBlockDiagonalCovariance< V, M >::getBlockCoefficient | ( | unsigned int | i | ) | const |
Get (const) multiplicative coefficient for block i
.
Definition at line 68 of file GaussianLikelihoodBlockDiagonalCovariance.C.
|
virtual |
Logarithm of the value of the scalar function.
Reimplemented from QUESO::BaseScalarFunction< V, M >.
Definition at line 76 of file GaussianLikelihoodBlockDiagonalCovariance.C.
|
private |
Definition at line 78 of file GaussianLikelihoodBlockDiagonalCovariance.h.
Referenced by QUESO::GaussianLikelihoodBlockDiagonalCovariance< V, M >::GaussianLikelihoodBlockDiagonalCovariance().
|
private |
Definition at line 77 of file GaussianLikelihoodBlockDiagonalCovariance.h.