queso-0.57.1
|
A class representing concatenated vector RVs. More...
#include <ConcatenatedVectorRV.h>
Public Member Functions | |
Constructor/Destructor methods | |
ConcatenatedVectorRV (const char *prefix, const BaseVectorRV< V, M > &rv1, const BaseVectorRV< V, M > &rv2, const VectorSet< V, M > &imageSet) | |
Constructor. More... | |
ConcatenatedVectorRV (const char *prefix, const std::vector< const BaseVectorRV< V, M > * > &rvs, const VectorSet< V, M > &imageSet) | |
Constructor. More... | |
virtual | ~ConcatenatedVectorRV () |
Virtual destructor. More... | |
I/O methods | |
void | print (std::ostream &os) const |
TODO: Prints the vector RV. More... | |
Public Member Functions inherited from QUESO::BaseVectorRV< V, M > | |
virtual double | estimateENT_ANN () const |
BaseVectorRV (const char *prefix, const VectorSet< V, M > &imageSet) | |
Constructor. More... | |
virtual | ~BaseVectorRV () |
Virtual destructor. More... | |
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... | |
Private Attributes | |
std::vector< const BaseVectorRV< V, M > * > | m_rvs |
std::vector< const BaseJointPdf< V, M > * > | m_pdfs |
std::vector< const BaseVectorRealizer< V, M > * > | m_realizers |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::BaseVectorRV< V, M > | |
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 |
A class representing concatenated vector RVs.
This class allows the user to concatenate two vector RV of different types and to generate realizations (samples) from this concatenated vector RV. It is used, for instance, to concatenate priors from two or more RVs, where one of them has a uniform distribution whereas the other one(s) has a Gaussian distribution.
Definition at line 53 of file ConcatenatedVectorRV.h.
QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV | ( | const char * | prefix, |
const BaseVectorRV< V, M > & | rv1, | ||
const BaseVectorRV< V, M > & | rv2, | ||
const VectorSet< V, M > & | imageSet | ||
) |
Constructor.
Concatenates two RVs: rv1
and rv2
into one vector RV, given a prefix and the image set of the vector RV.
Definition at line 37 of file ConcatenatedVectorRV.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRV< V, M >::m_env, QUESO::BaseVectorRV< V, M >::m_imageSet, QUESO::BaseVectorRV< V, M >::m_mdf, QUESO::BaseVectorRV< V, M >::m_pdf, QUESO::ConcatenatedVectorRV< V, M >::m_pdfs, QUESO::BaseVectorRV< V, M >::m_prefix, QUESO::BaseVectorRV< V, M >::m_realizer, QUESO::ConcatenatedVectorRV< V, M >::m_realizers, QUESO::ConcatenatedVectorRV< V, M >::m_rvs, QUESO::BaseVectorRV< V, M >::m_subCdf, QUESO::BaseVectorRV< V, M >::m_unifiedCdf, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV | ( | const char * | prefix, |
const std::vector< const BaseVectorRV< V, M > * > & | rvs, | ||
const VectorSet< V, M > & | imageSet | ||
) |
Constructor.
Concatenates a sequence of RVs, given by: std::vector<const BaseVectorRV<V,M>* >& rvs
into one single vector RV, given a prefix and the image set of the resulting vector RV.
Definition at line 89 of file ConcatenatedVectorRV.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRV< V, M >::has_realizer(), QUESO::BaseVectorRV< V, M >::m_env, QUESO::BaseVectorRV< V, M >::m_imageSet, QUESO::BaseVectorRV< V, M >::m_mdf, QUESO::BaseVectorRV< V, M >::m_pdf, QUESO::ConcatenatedVectorRV< V, M >::m_pdfs, QUESO::BaseVectorRV< V, M >::m_prefix, QUESO::BaseVectorRV< V, M >::m_realizer, QUESO::ConcatenatedVectorRV< V, M >::m_realizers, QUESO::ConcatenatedVectorRV< V, M >::m_rvs, QUESO::BaseVectorRV< V, M >::m_subCdf, QUESO::BaseVectorRV< V, M >::m_unifiedCdf, QUESO::BaseVectorRV< V, M >::realizer(), and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Virtual destructor.
Definition at line 147 of file ConcatenatedVectorRV.C.
|
virtual |
TODO: Prints the vector RV.
Implements QUESO::BaseVectorRV< V, M >.
Definition at line 158 of file ConcatenatedVectorRV.C.
|
private |
Definition at line 94 of file ConcatenatedVectorRV.h.
Referenced by QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV().
|
private |
Definition at line 95 of file ConcatenatedVectorRV.h.
Referenced by QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV().
|
private |
Definition at line 93 of file ConcatenatedVectorRV.h.
Referenced by QUESO::ConcatenatedVectorRV< V, M >::ConcatenatedVectorRV().