queso-0.57.1
|
A class for handling sampling from a Log-Normal probability density distribution. More...
#include <LogNormalVectorRealizer.h>
Public Member Functions | |
Constructor/Destructor methods | |
LogNormalVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, const V &lawExpVector, const M &lowerCholLawCovMatrix) | |
Constructor. More... | |
LogNormalVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, const V &lawExpVector, const M &matU, const V &vecSsqrt, const M &matVt) | |
Constructor. More... | |
~LogNormalVectorRealizer () | |
Destructor. More... | |
Realization-related methods | |
const V & | unifiedLawExpVector () const |
Access to the vector of mean values and private attribute: m_unifiedLawExpVector. More... | |
const V & | unifiedLawVarVector () const |
Access to the vector of variance values and private attribute: m_unifiedLawVarVector. More... | |
void | realization (V &nextValues) const |
Draws a realization. More... | |
Public Member Functions inherited from QUESO::BaseVectorRealizer< V, M > | |
BaseVectorRealizer (const char *prefix, const VectorSet< V, M > &unifiedImageSet, unsigned int subPeriod) | |
Default constructor. More... | |
virtual | ~BaseVectorRealizer () |
Virtual destructor. More... | |
const VectorSet< V, M > & | unifiedImageSet () const |
Image set where the realizations lie. Access to protected attribute m_unifiedImageSet. More... | |
unsigned int | subPeriod () const |
Sub-period of the realization. Access to protected attribute m_subPeriod. More... | |
Private Attributes | |
V * | m_unifiedLawExpVector |
V * | m_unifiedLawVarVector |
M * | m_lowerCholLawCovMatrix |
M * | m_matU |
V * | m_vecSsqrt |
M * | m_matVt |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::BaseVectorRealizer< V, M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_unifiedImageSet |
unsigned int | m_subPeriod |
A class for handling sampling from a Log-Normal probability density distribution.
This class handles sampling from a Log-Normal probability density distribution, of mean and variance given.
Definition at line 49 of file LogNormalVectorRealizer.h.
QUESO::LogNormalVectorRealizer< V, M >::LogNormalVectorRealizer | ( | const char * | prefix, |
const VectorSet< V, M > & | unifiedImageSet, | ||
const V & | lawExpVector, | ||
const M & | lowerCholLawCovMatrix | ||
) |
Constructor.
Constructs a new object of the class, given a prefix and the image set, a vector of mean values, lawExpVector
, and a lower triangular matrix resulting from Cholesky decomposition of the covariance matrix, lowerCholLawCovMatrix
.
Definition at line 34 of file LogNormalVectorRealizer.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRealizer< V, M >::m_env, QUESO::BaseVectorRealizer< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::LogNormalVectorRealizer< V, M >::LogNormalVectorRealizer | ( | const char * | prefix, |
const VectorSet< V, M > & | unifiedImageSet, | ||
const V & | lawExpVector, | ||
const M & | matU, | ||
const V & | vecSsqrt, | ||
const M & | matVt | ||
) |
Constructor.
Constructs a new object of the class, given a prefix and the image set, a vector of mean values, lawExpVector
, and a set of two matrices and one vector resulting from the Single Value Decomposition of the covariance matrix, matU
, vecSsqrt
and matVt
.
Definition at line 61 of file LogNormalVectorRealizer.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRealizer< V, M >::m_env, QUESO::BaseVectorRealizer< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::LogNormalVectorRealizer< V, M >::~LogNormalVectorRealizer | ( | ) |
Destructor.
Definition at line 90 of file LogNormalVectorRealizer.C.
|
virtual |
Draws a realization.
This function draws a realization of a LogNormal distribution and saves it in nextValues
.
Implements QUESO::BaseVectorRealizer< V, M >.
Definition at line 116 of file LogNormalVectorRealizer.C.
const V & QUESO::LogNormalVectorRealizer< V, M >::unifiedLawExpVector | ( | ) | const |
Access to the vector of mean values and private attribute: m_unifiedLawExpVector.
Definition at line 102 of file LogNormalVectorRealizer.C.
const V & QUESO::LogNormalVectorRealizer< V, M >::unifiedLawVarVector | ( | ) | const |
Access to the vector of variance values and private attribute: m_unifiedLawVarVector.
Definition at line 109 of file LogNormalVectorRealizer.C.
|
private |
Definition at line 92 of file LogNormalVectorRealizer.h.
|
private |
Definition at line 93 of file LogNormalVectorRealizer.h.
|
private |
Definition at line 95 of file LogNormalVectorRealizer.h.
|
private |
Definition at line 90 of file LogNormalVectorRealizer.h.
|
private |
Definition at line 91 of file LogNormalVectorRealizer.h.
|
private |
Definition at line 94 of file LogNormalVectorRealizer.h.