25 #include <queso/ConcatenatedVectorRealizer.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
32 template<
class V,
class M>
39 BaseVectorRealizer<V,M>( ((std::string)(prefix)+
"gen").c_str(),unifiedImageSet,std::min(realizer1.subPeriod(),realizer2.subPeriod()) ),
58 template<
class V,
class M>
62 unsigned int minPeriod,
65 BaseVectorRealizer<V,M>( ((std::string)(prefix)+
"gen").c_str(),unifiedImageSet,minPeriod),
68 for (
unsigned int i = 0; i <
m_realizers.size(); ++i) {
73 template<
class V,
class M>
78 template<
class V,
class M>
82 std::vector<V*> vecs(m_realizers.size(),(V*)NULL);
83 for (
unsigned int i = 0; i < vecs.size(); ++i) {
84 vecs[i] =
new V(m_realizers[i]->unifiedImageSet().vectorSpace().zeroVector());
86 m_realizers[i]->realization(*(vecs[i]));
90 std::vector<const V*> constVecs(m_realizers.size(),(V*)NULL);
91 for (
unsigned int i = 0; i < vecs.size(); ++i) {
92 constVecs[i] = vecs[i];
94 nextValues.cwSetConcatenated(constVecs);
97 for (
unsigned int i = 0; i < vecs.size(); ++i) {
~ConcatenatedVectorRealizer()
Destructor.
A templated (base) class for handling sampling from vector RVs.
const BaseEnvironment & m_env
A templated class for handling sets.
std::vector< const BaseVectorRealizer< V, M > * > m_realizers
void realization(V &nextValues) const
Performs a realization (sample) from a probability density function. See template specialization...
ConcatenatedVectorRealizer(const char *prefix, const BaseVectorRealizer< V, M > &realizer1, const BaseVectorRealizer< V, M > &realizer2, const VectorSet< V, M > &unifiedImageSet)
Constructor.
A class for handling sampling from concatenated probability density distributions.
unsigned int displayVerbosity() const
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).