ProbabilityTable.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 // Global includes
21 #include <map>
22 #include <string>
23 #include <vector>
24 
25 // Package includes
26 #include <boost/foreach.hpp>
27 #include <boost/property_tree/ptree.hpp>
28 
29 // Local includes
31 
33 
39  public:
40 
45 
52  ProbabilityTable(unsigned int pRows, unsigned int pColums);
53 
59  ProbabilityTable(boost::property_tree::ptree& pPt);
60 
65 
71  void load(boost::property_tree::ptree& pPt);
72 
78  void save(boost::property_tree::ptree& pPt);
79 
87  double getProbability(unsigned int pRow, unsigned int pColumn);
88 
92  unsigned int getNumberOfColumns();
93 
97  unsigned int getNumberOfRows();
98 
106  void add(unsigned int pRow, unsigned int pColumn, unsigned int pCounts);
107 
111  void normalize();
112 
113  private:
114 
118  std::vector<std::vector<double> > mEntries;
119  };
120 }
void load(boost::property_tree::ptree &pPt)
std::vector< std::vector< double > > mEntries
void save(boost::property_tree::ptree &pPt)
double getProbability(unsigned int pRow, unsigned int pColumn)
void add(unsigned int pRow, unsigned int pColumn, unsigned int pCounts)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54