queso-0.57.1
|
A templated base class for handling vector RV. More...
#include <VectorRV.h>
Public Member Functions | |
virtual double | estimateENT_ANN () const |
Constructor/Destructor methods | |
BaseVectorRV (const char *prefix, const VectorSet< V, M > &imageSet) | |
Constructor. More... | |
virtual | ~BaseVectorRV () |
Virtual destructor. More... | |
Random variable-handling methods | |
const BaseEnvironment & | env () const |
QUESO environment; access to private attribute m_env. More... | |
const VectorSet< V, M > & | imageSet () const |
Image set of the vector RV; access to private attribute m_imageSet. More... | |
const BaseJointPdf< V, M > & | pdf () const |
Posterior Density Function of the vector RV; access to private attribute m_pdf. More... | |
bool | has_realizer () const |
Returns true iff this RV has the ability to produce realizations (samples) More... | |
const BaseVectorRealizer< V, M > & | realizer () const |
Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer. More... | |
const BaseVectorCdf< V, M > & | subCdf () const |
Finds the Cumulative Distribution Function of this vector RV, considering only the sub-sequence of data; access to private attribute m_subCdf. More... | |
const BaseVectorCdf< V, M > & | unifiedCdf () const |
Finds the Cumulative Distribution Function of this vector RV, considering the unified sequence of data; access to private attribute m_unifiedCdf. More... | |
const BaseVectorMdf< V, M > & | mdf () const |
Finds the Marginal Density Function of this vector RV; access to private attribute m_mdf. More... | |
Protected Attributes | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< V, M > & | m_imageSet |
BaseJointPdf< V, M > * | m_pdf |
BaseVectorRealizer< V, M > * | m_realizer |
const BaseVectorCdf< V, M > * | m_subCdf |
const BaseVectorCdf< V, M > * | m_unifiedCdf |
const BaseVectorMdf< V, M > * | m_mdf |
I/O methods | |
virtual void | print (std::ostream &os) const =0 |
TODO: Prints the vector RV. More... | |
std::ostream & | operator<< (std::ostream &os, const BaseVectorRV< V, M > &obj) |
A templated base class for handling vector RV.
This class allows two basic but quite crucial functionalities: to compute the value of the PDF of a random variable (RV) at a point and to generate realizations (samples) from such PDF.
Definition at line 53 of file VectorRV.h.
QUESO::BaseVectorRV< V, M >::BaseVectorRV | ( | const char * | prefix, |
const VectorSet< V, M > & | imageSet | ||
) |
Constructor.
Constructs a new instance of BaseVectorRV, given a prefix and the image set of the vector RV.
Definition at line 37 of file VectorRV.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRV< V, M >::m_env, QUESO::BaseVectorRV< V, M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Virtual destructor.
Definition at line 64 of file VectorRV.C.
const BaseEnvironment & QUESO::BaseVectorRV< V, M >::env | ( | ) | const |
|
virtual |
Definition at line 144 of file VectorRV.C.
References annAllocPts(), annDeallocPts(), dim, and QUESO::distANN_XY().
bool QUESO::BaseVectorRV< V, M >::has_realizer | ( | ) | const |
Returns true iff this RV has the ability to produce realizations (samples)
Definition at line 99 of file VectorRV.C.
Referenced by QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV().
const VectorSet< V, M > & QUESO::BaseVectorRV< V, M >::imageSet | ( | ) | const |
Image set of the vector RV; access to private attribute m_imageSet.
Definition at line 83 of file VectorRV.C.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ComputeCovCorrMatricesBetweenVectorRvs(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), and QUESO::StatisticalInverseProblem< P_V, P_M >::StatisticalInverseProblem().
const BaseVectorMdf< V, M > & QUESO::BaseVectorRV< V, M >::mdf | ( | ) | const |
Finds the Marginal Density Function of this vector RV; access to private attribute m_mdf.
Definition at line 133 of file VectorRV.C.
Referenced by QUESO::GenericVectorRV< V, M >::GenericVectorRV().
const BaseJointPdf< V, M > & QUESO::BaseVectorRV< V, M >::pdf | ( | ) | const |
Posterior Density Function of the vector RV; access to private attribute m_pdf.
Definition at line 90 of file VectorRV.C.
Referenced by QUESO::GenericVectorRV< V, M >::GenericVectorRV().
|
pure virtual |
TODO: Prints the vector RV.
Implemented in QUESO::GaussianVectorRV< V, M >, QUESO::GaussianVectorRV< Q_V, Q_M >, QUESO::GenericVectorRV< V, M >, QUESO::GenericVectorRV< P_V, P_M >, QUESO::GenericVectorRV< Q_V, Q_M >, QUESO::InvLogitGaussianVectorRV< V, M >, QUESO::GammaVectorRV< V, M >, QUESO::BetaVectorRV< V, M >, QUESO::InverseGammaVectorRV< V, M >, QUESO::ConcatenatedVectorRV< V, M >, QUESO::LogNormalVectorRV< V, M >, QUESO::UniformVectorRV< V, M >, QUESO::WignerVectorRV< V, M >, and QUESO::JeffreysVectorRV< V, M >.
const BaseVectorRealizer< V, M > & QUESO::BaseVectorRV< V, M >::realizer | ( | ) | const |
Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer.
Definition at line 106 of file VectorRV.C.
Referenced by QUESO::MonteCarloSG< P_V, P_M, Q_V, Q_M >::actualGenerateSequence(), QUESO::MonteCarloSG< P_V, P_M, Q_V, Q_M >::actualReadSequence(), QUESO::ComputeCovCorrMatricesBetweenVectorRvs(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::MonteCarloSG< P_V, P_M, Q_V, Q_M >::internGenerateSequence(), and QUESO::MonteCarloQuadrature< V, M >::MonteCarloQuadrature().
const BaseVectorCdf< V, M > & QUESO::BaseVectorRV< V, M >::subCdf | ( | ) | const |
Finds the Cumulative Distribution Function of this vector RV, considering only the sub-sequence of data; access to private attribute m_subCdf.
Definition at line 115 of file VectorRV.C.
Referenced by QUESO::GenericVectorRV< V, M >::GenericVectorRV().
const BaseVectorCdf< V, M > & QUESO::BaseVectorRV< V, M >::unifiedCdf | ( | ) | const |
Finds the Cumulative Distribution Function of this vector RV, considering the unified sequence of data; access to private attribute m_unifiedCdf.
Definition at line 124 of file VectorRV.C.
Referenced by QUESO::GenericVectorRV< V, M >::GenericVectorRV().
|
friend |
Definition at line 100 of file VectorRV.h.
|
protected |
Definition at line 117 of file VectorRV.h.
Referenced by QUESO::BaseVectorRV< V, M >::BaseVectorRV(), QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 119 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 124 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 120 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 118 of file VectorRV.h.
Referenced by QUESO::BaseVectorRV< V, M >::BaseVectorRV(), QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 121 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 122 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().
|
protected |
Definition at line 123 of file VectorRV.h.
Referenced by QUESO::BetaVectorRV< V, M >::BetaVectorRV(), QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV(), QUESO::GammaVectorRV< V, M >::GammaVectorRV(), QUESO::GaussianVectorRV< V, M >::GaussianVectorRV(), QUESO::GenericVectorRV< V, M >::GenericVectorRV(), QUESO::InverseGammaVectorRV< V, M >::InverseGammaVectorRV(), QUESO::InvLogitGaussianVectorRV< V, M >::InvLogitGaussianVectorRV(), QUESO::JeffreysVectorRV< V, M >::JeffreysVectorRV(), QUESO::LogNormalVectorRV< V, M >::LogNormalVectorRV(), QUESO::UniformVectorRV< V, M >::UniformVectorRV(), and QUESO::WignerVectorRV< V, M >::WignerVectorRV().