queso-0.51.1
MarkovChainPositionData.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008,2009,2010,2011,2012,2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_CHAIN_POSITION_DATA_H
26 #define UQ_CHAIN_POSITION_DATA_H
27 
28 #include <queso/Environment.h>
29 
30 namespace QUESO {
31 
46 template <class V>
48 {
49 public:
51 
52 
56 
58 
61  const V& vecValues,
62  bool outOfTargetSupport,
63  double logLikelihood,
64  double logTarget);
66 
68 
72 
74 
78 
80 
81  const V& vecValues () const;
83 
85  bool outOfTargetSupport() const;
86 
88  double logLikelihood () const;
89 
91  double logTarget () const;
92 
94  void set (const V& vecValues,
95  bool outOfTargetSupport,
96  double logLikelihood,
97  double logTarget);
99 
101 
103  void print (std::ostream& os) const;
104  friend std::ostream& operator<<(std::ostream& os,
105  const MarkovChainPositionData<V>& obj)
106  {
107  obj.print(os);
108 
109  return os;
110  }
112 
113 private:
118  double m_logTarget;
119 };
120 
121 } // End namespace QUESO
122 
123 #endif // UQ_CHAIN_POSITION_DATA_H
void print(std::ostream &os) const
TODO: Prints the Markov chain.
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.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
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.
friend std::ostream & operator<<(std::ostream &os, const MarkovChainPositionData< V > &obj)
bool outOfTargetSupport() const
Whether or not a position is out of target support; access to private attribute m_outOfTargetSupport...
void set(const V &vecValues, bool outOfTargetSupport, double logLikelihood, double logTarget)
Sets the values of the chain.
MarkovChainPositionData(const BaseEnvironment &env)
Constructor 1.

Generated on Thu Apr 23 2015 19:26:15 for queso-0.51.1 by  doxygen 1.8.5