25 #include <queso/ConcatenatedVectorRV.h>
26 #include <queso/ConcatenatedVectorRealizer.h>
27 #include <queso/ConcatenatedJointPdf.h>
28 #include <queso/GslVector.h>
29 #include <queso/GslMatrix.h>
36 template<
class V,
class M>
43 BaseVectorRV<V,M>(((std::string)(prefix)+
"concat").c_str(),imageSet),
59 &(
m_rvs[0]->realizer()) : NULL;
61 &(
m_rvs[1]->realizer()) : NULL;
70 m_rvs[1]->has_realizer()) ?
88 template<
class V,
class M>
94 BaseVectorRV<V,M>(((std::string)(prefix)+
"concat").c_str(),imageSet),
105 bool have_all_subrealizers =
true;
106 for (
unsigned int i = 0; i <
m_rvs.size(); ++i) {
115 have_all_subrealizers =
false;
122 unsigned int minPeriod = std::numeric_limits<unsigned int>::max();
123 for (
unsigned int i = 0; i <
m_realizers.size(); ++i) {
146 template<
class V,
class M>
156 template <
class V,
class M>
160 os <<
"ConcatenatedVectorRV<V,M>::print() says, 'Please implement me.'" << std::endl;
ConcatenatedVectorRV(const char *prefix, const BaseVectorRV< V, M > &rv1, const BaseVectorRV< V, M > &rv2, const VectorSet< V, M > &imageSet)
Constructor.
A templated (base) class for handling sampling from vector RVs.
const BaseVectorCdf< V, M > * m_unifiedCdf
A class for handling concatenated PDFs.
std::vector< const BaseJointPdf< V, M > * > m_pdfs
const BaseEnvironment & m_env
A templated class for handling sets.
BaseVectorRealizer< V, M > * m_realizer
A class representing concatenated vector RVs.
std::vector< const BaseVectorRV< V, M > * > m_rvs
A templated (base) class for handling joint PDFs.
void print(std::ostream &os) const
TODO: Prints the vector RV.
BaseJointPdf< V, M > * m_pdf
std::vector< const BaseVectorRealizer< V, M > * > m_realizers
A templated base class for handling vector RV.
const BaseVectorCdf< V, M > * m_subCdf
A class for handling sampling from concatenated probability density distributions.
unsigned int displayVerbosity() const
bool has_realizer() const
Returns true iff this RV has the ability to produce realizations (samples)
const BaseVectorRealizer< V, M > & realizer() const
Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer...
const VectorSet< V, M > & m_imageSet
const BaseVectorMdf< V, M > * m_mdf
virtual ~ConcatenatedVectorRV()
Virtual destructor.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).