MappedProbabilityTable.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
32 
34 
40  public:
41 
46 
52  MappedProbabilityTable(boost::property_tree::ptree& pPt);
53 
58 
64  void load(boost::property_tree::ptree& pPt);
65 
71  void save(boost::property_tree::ptree& pPt);
72 
78  void initializeTable(unsigned int pRows);
79 
87  double getProbability(unsigned int pRow, std::string pType);
88 
94  void add(std::string pType);
95 
102  void add(unsigned int pRow, std::string pType);
103 
110  void setDefaultClassCounter(unsigned int pRow, double pCount);
111 
115  void normalize();
116 
120  unsigned int getNumberOfColumns();
121 
125  unsigned int getNumberOfRows();
126 
127  private:
128 
134  unsigned int getIndex(std::string pType);
135 
140 
144  std::map<std::string, unsigned int> mMappingTypeToIndice;
145  };
146 }
std::map< std::string, unsigned int > mMappingTypeToIndice
void setDefaultClassCounter(unsigned int pRow, double pCount)
double getProbability(unsigned int pRow, std::string pType)


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