queso-0.57.1
|
A class for handling sampling from concatenated probability density distributions. More...
#include <ConcatenatedVectorRealizer.h>
Public Member Functions | |
Constructor/Destructor methods | |
ConcatenatedVectorRealizer (const char *prefix, const BaseVectorRealizer< V, M > &realizer1, const BaseVectorRealizer< V, M > &realizer2, const VectorSet< V, M > &unifiedImageSet) | |
Constructor. More... | |
ConcatenatedVectorRealizer (const char *prefix, const std::vector< const BaseVectorRealizer< V, M > * > &realizers, unsigned int minPeriod, const VectorSet< V, M > &unifiedImageSet) | |
Constructor. More... | |
~ConcatenatedVectorRealizer () | |
Destructor. More... | |
Realization-related methods | |
void | realization (V &nextValues) const |
Performs a realization (sample) from a probability density function. See template specialization. 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 | |
std::vector< const BaseVectorRealizer< V, M > * > | m_realizers |
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 concatenated probability density distributions.
This class allows the user draw samples from concatenated probability density distributions (two or more distinct probability distributions has(ve) been concatenated into one single vector RV). This class used, for instance, to draw realization of 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 51 of file ConcatenatedVectorRealizer.h.
QUESO::ConcatenatedVectorRealizer< V, M >::ConcatenatedVectorRealizer | ( | const char * | prefix, |
const BaseVectorRealizer< V, M > & | realizer1, | ||
const BaseVectorRealizer< V, M > & | realizer2, | ||
const VectorSet< V, M > & | unifiedImageSet | ||
) |
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 33 of file ConcatenatedVectorRealizer.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::BaseVectorRealizer< V, M >::m_env, QUESO::BaseVectorRealizer< V, M >::m_prefix, QUESO::ConcatenatedVectorRealizer< V, M >::m_realizers, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::ConcatenatedVectorRealizer< V, M >::ConcatenatedVectorRealizer | ( | const char * | prefix, |
const std::vector< const BaseVectorRealizer< V, M > * > & | realizers, | ||
unsigned int | minPeriod, | ||
const VectorSet< V, M > & | unifiedImageSet | ||
) |
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 59 of file ConcatenatedVectorRealizer.C.
References QUESO::ConcatenatedVectorRealizer< V, M >::m_realizers.
QUESO::ConcatenatedVectorRealizer< V, M >::~ConcatenatedVectorRealizer | ( | ) |
|
virtual |
Performs a realization (sample) from a probability density function. See template specialization.
Implements QUESO::BaseVectorRealizer< V, M >.
Definition at line 80 of file ConcatenatedVectorRealizer.C.
|
private |
Definition at line 84 of file ConcatenatedVectorRealizer.h.
Referenced by QUESO::ConcatenatedVectorRealizer< V, M >::ConcatenatedVectorRealizer().