queso-0.53.0
|
This class allows the representation of a transition kernel with a scaled covariance matrix. More...
#include <ScaledCovMatrixTKGroup.h>
Public Member Functions | |
Constructor/Destructor methods | |
ScaledCovMatrixTKGroup (const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< double > &scales, const M &covMatrix) | |
Default constructor. More... | |
~ScaledCovMatrixTKGroup () | |
Destructor. More... | |
Statistical/Mathematical methods | |
bool | symmetric () const |
Whether or not the matrix is symmetric. Always 'true'. More... | |
const GaussianVectorRV< V, M > & | rv (unsigned int stageId) const |
Gaussian increment property to construct a transition kernel. More... | |
const GaussianVectorRV< V, M > & | rv (const std::vector< unsigned int > &stageIds) |
Gaussian increment property to construct a transition kernel. More... | |
void | updateLawCovMatrix (const M &covMatrix) |
Scales the covariance matrix. More... | |
Misc methods | |
bool | setPreComputingPosition (const V &position, unsigned int stageId) |
Sets the pre-computing positions m_preComputingPositions [stageId] with a new vector of size position . More... | |
void | clearPreComputingPositions () |
Clears the pre-computing positions m_preComputingPositions [stageId]. More... | |
I/O methods | |
void | print (std::ostream &os) const |
TODO: Prints the transition kernel. More... | |
Public Member Functions inherited from QUESO::BaseTKGroup< V, M > | |
BaseTKGroup () | |
Default constructor. More... | |
BaseTKGroup (const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< double > &scales) | |
Constructor. More... | |
virtual | ~BaseTKGroup () |
Destructor. More... | |
const BaseEnvironment & | env () const |
QUESO's environment. More... | |
const V & | preComputingPosition (unsigned int stageId) const |
Pre-computing position; access to protected attribute *m_preComputingPositions[stageId]. More... | |
Private Member Functions | |
void | setRVsWithZeroMean () |
Sets the mean of the RVs to zero. More... | |
Private Attributes | |
M | m_originalCovMatrix |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::BaseTKGroup< V, M > | |
const EmptyEnvironment * | m_emptyEnv |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSpace< V, M > * | m_vectorSpace |
std::vector< double > | m_scales |
std::vector< const V * > | m_preComputingPositions |
std::vector< BaseVectorRV< V, M > * > | m_rvs |
This class allows the representation of a transition kernel with a scaled covariance matrix.
Definition at line 44 of file ScaledCovMatrixTKGroup.h.
QUESO::ScaledCovMatrixTKGroup< V, M >::ScaledCovMatrixTKGroup | ( | const char * | prefix, |
const VectorSpace< V, M > & | vectorSpace, | ||
const std::vector< double > & | scales, | ||
const M & | covMatrix | ||
) |
Default constructor.
Definition at line 34 of file ScaledCovMatrixTKGroup.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseTKGroup< V, M >::m_env, QUESO::ScaledCovMatrixTKGroup< V, M >::m_originalCovMatrix, QUESO::BaseTKGroup< V, M >::m_preComputingPositions, QUESO::BaseTKGroup< V, M >::m_rvs, QUESO::BaseTKGroup< V, M >::m_scales, QUESO::ScaledCovMatrixTKGroup< V, M >::setRVsWithZeroMean(), and QUESO::BaseEnvironment::subDisplayFile().
QUESO::ScaledCovMatrixTKGroup< V, M >::~ScaledCovMatrixTKGroup | ( | ) |
|
virtual |
Clears the pre-computing positions m_preComputingPositions
[stageId].
Reimplemented from QUESO::BaseTKGroup< V, M >.
Definition at line 199 of file ScaledCovMatrixTKGroup.C.
References QUESO::BaseTKGroup< V, M >::clearPreComputingPositions().
|
virtual |
TODO: Prints the transition kernel.
Reimplemented from QUESO::BaseTKGroup< V, M >.
Definition at line 229 of file ScaledCovMatrixTKGroup.C.
References QUESO::BaseTKGroup< V, M >::print().
|
virtual |
Gaussian increment property to construct a transition kernel.
Implements QUESO::BaseTKGroup< V, M >.
Definition at line 79 of file ScaledCovMatrixTKGroup.C.
References queso_require_greater_msg, queso_require_msg, queso_require_not_equal_to_msg, and QUESO::GaussianVectorRV< V, M >::updateLawExpVector().
|
virtual |
Gaussian increment property to construct a transition kernel.
Implements QUESO::BaseTKGroup< V, M >.
Definition at line 107 of file ScaledCovMatrixTKGroup.C.
References queso_require_greater_equal_msg, queso_require_greater_msg, queso_require_msg, and QUESO::GaussianVectorRV< V, M >::updateLawExpVector().
|
virtual |
Sets the pre-computing positions m_preComputingPositions
[stageId] with a new vector of size position
.
Reimplemented from QUESO::BaseTKGroup< V, M >.
Definition at line 160 of file ScaledCovMatrixTKGroup.C.
References QUESO::GaussianJointPdf< V, M >::lawCovMatrix(), and QUESO::BaseTKGroup< V, M >::setPreComputingPosition().
|
private |
Sets the mean of the RVs to zero.
Definition at line 209 of file ScaledCovMatrixTKGroup.C.
References queso_require_equal_to_msg, queso_require_msg, and queso_require_not_equal_to_msg.
Referenced by QUESO::ScaledCovMatrixTKGroup< V, M >::ScaledCovMatrixTKGroup().
|
virtual |
Whether or not the matrix is symmetric. Always 'true'.
Implements QUESO::BaseTKGroup< V, M >.
Definition at line 72 of file ScaledCovMatrixTKGroup.C.
void QUESO::ScaledCovMatrixTKGroup< V, M >::updateLawCovMatrix | ( | const M & | covMatrix | ) |
Scales the covariance matrix.
The covariance matrix is scaled by a factor of .
Definition at line 136 of file ScaledCovMatrixTKGroup.C.
|
private |
Definition at line 99 of file ScaledCovMatrixTKGroup.h.
Referenced by QUESO::ScaledCovMatrixTKGroup< V, M >::ScaledCovMatrixTKGroup().