25 #include <queso/SequentialVectorRealizer.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
32 template<
class V,
class M>
37 BaseVectorRealizer<V,M>(((std::string)(prefix)+
"seq").c_str(),chain.unifiedBoxPlain(),chain.subSequenceSize()),
39 m_currentChainPos (0),
40 m_unifiedSampleExpVector(new V(chain.unifiedMeanPlain() )),
41 m_unifiedSampleVarVector(new V(chain.unifiedSampleVariancePlain()))
45 <<
": m_chain.subSequenceSize() = " <<
m_chain.subSequenceSize()
50 template<
class V,
class M>
53 delete m_unifiedSampleVarVector;
54 delete m_unifiedSampleExpVector;
57 template<
class V,
class M>
61 m_chain.getPositionValues(m_currentChainPos++,nextParamValues);
62 if (m_currentChainPos >= m_subPeriod) m_currentChainPos = 0;
67 template <
class V,
class M>
71 return *m_unifiedSampleExpVector;
74 template <
class V,
class M>
78 return *m_unifiedSampleVarVector;
unsigned int displayVerbosity() const
~SequentialVectorRealizer()
Destructor.
const BaseVectorSequence< V, M > & m_chain
const BaseEnvironment & m_env
const V & unifiedSampleExpVector() const
const V & unifiedSampleVarVector() const
Returns the unified variance vector; access to private attribute m_unifiedSampleVarVector.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
A templated (base) class for handling sampling from vector RVs.
SequentialVectorRealizer(const char *prefix, const BaseVectorSequence< V, M > &chain)
A class for handling sequential draws (sampling) from probability density distributions.
void realization(V &nextValues) const
Draws the next value from this chain (m_chain) and saves it in nextValues.
Base class for handling vector and array samples (sequence of vectors or arrays). ...