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);
102 return m_outOfTargetSupport;
110 return m_logLikelihood;
125 bool outOfTargetSupport,
126 double logLikelihood,
129 if (m_vecValues == NULL) m_vecValues =
new V(vecValues);
130 else *m_vecValues = vecValues;
131 m_outOfTargetSupport = outOfTargetSupport;
132 m_logLikelihood = logLikelihood;
133 m_logTarget = logTarget;
double logTarget() const
Logarithm of the value of the target; access to private attribute m_logTarget.
~MarkovChainPositionData()
Destructor.
const V & vecValues() const
Values of the chain (vector); access to private attribute m_vecValues.
A templated class that represents a Markov Chain.
#define queso_require_msg(asserted, msg)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
void set(const V &vecValues, bool outOfTargetSupport, double logLikelihood, double logTarget)
Sets the values of the chain.
MarkovChainPositionData< V > & operator=(const MarkovChainPositionData< V > &rhs)
Assignment operator.
bool outOfTargetSupport() const
Whether or not a position is out of target support; access to private attribute m_outOfTargetSupport...
double logLikelihood() const
Logarithm of the value of the likelihood; access to private attribute m_logLikelihood.
bool m_outOfTargetSupport
MarkovChainPositionData(const BaseEnvironment &env)
Constructor 1.