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);
93 queso_require_msg(m_vecValues,
"m_vecValues is NULL");
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;
bool m_outOfTargetSupport
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const V & vecValues() const
Values of the chain (vector); access to private attribute m_vecValues.
~MarkovChainPositionData()
Destructor.
MarkovChainPositionData< V > & operator=(const MarkovChainPositionData< V > &rhs)
Assignment operator.
double logTarget() const
Logarithm of the value of the target; access to private attribute m_logTarget.
void set(const V &vecValues, bool outOfTargetSupport, double logLikelihood, double logTarget)
Sets the values of the chain.
MarkovChainPositionData(const BaseEnvironment &env)
Constructor 1.
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...
double logLikelihood() const
Logarithm of the value of the likelihood; access to private attribute m_logLikelihood.