25 #include <queso/MarkovChainPositionData.h>
26 #include <queso/GslVector.h>
36 m_outOfTargetSupport(false),
46 bool outOfTargetSupport,
51 m_vecValues (new V(vecValues)),
52 m_outOfTargetSupport(outOfTargetSupport),
53 m_logLikelihood (logLikelihood),
54 m_logTarget (logTarget)
62 m_vecValues (new V(*rhs.m_vecValues )),
63 m_outOfTargetSupport(rhs.m_outOfTargetSupport),
64 m_logLikelihood (rhs.m_logLikelihood ),
65 m_logTarget (rhs.m_logTarget )
72 if (m_vecValues)
delete m_vecValues;
79 if (m_vecValues == NULL) m_vecValues =
new V(*rhs.
m_vecValues);
95 "MarkovChainPositionData<V>::vecValues()",
96 "m_vecValues is NULL");
105 return m_outOfTargetSupport;
113 return m_logLikelihood;
128 bool outOfTargetSupport,
129 double logLikelihood,
132 if (m_vecValues == NULL) m_vecValues =
new V(vecValues);
133 else *m_vecValues = vecValues;
134 m_outOfTargetSupport = outOfTargetSupport;
135 m_logLikelihood = logLikelihood;
136 m_logTarget = logTarget;
double logTarget() const
Logarithm of the value of the target; access to private attribute m_logTarget.
const V & vecValues() const
Values of the chain (vector); access to private attribute m_vecValues.
bool m_outOfTargetSupport
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
MarkovChainPositionData< V > & operator=(const MarkovChainPositionData< V > &rhs)
Assignment operator.
double logLikelihood() const
Logarithm of the value of the likelihood; access to private attribute m_logLikelihood.
A templated class that represents a Markov Chain.
bool outOfTargetSupport() const
Whether or not a position is out of target support; access to private attribute m_outOfTargetSupport...
~MarkovChainPositionData()
Destructor.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
void set(const V &vecValues, bool outOfTargetSupport, double logLikelihood, double logTarget)
Sets the values of the chain.
MarkovChainPositionData(const BaseEnvironment &env)
Constructor 1.