Main Page
Namespaces
Classes
Files
File List
File Members
include
helper
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
30
#include "
helper/SerializationHelper.h
"
31
32
namespace
ProbabilisticSceneRecognition
{
33
38
class
ProbabilityTable
{
39
public
:
40
44
ProbabilityTable
();
45
52
ProbabilityTable
(
unsigned
int
pRows,
unsigned
int
pColums);
53
59
ProbabilityTable
(boost::property_tree::ptree& pPt);
60
64
~ProbabilityTable
();
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
}
ProbabilisticSceneRecognition::ProbabilityTable::getNumberOfColumns
unsigned int getNumberOfColumns()
Definition:
ProbabilityTable.cpp:103
ProbabilisticSceneRecognition::ProbabilityTable::load
void load(boost::property_tree::ptree &pPt)
Definition:
ProbabilityTable.cpp:46
ProbabilisticSceneRecognition::ProbabilityTable::mEntries
std::vector< std::vector< double > > mEntries
Definition:
ProbabilityTable.h:118
ProbabilisticSceneRecognition::ProbabilityTable::ProbabilityTable
ProbabilityTable()
Definition:
ProbabilityTable.cpp:22
ProbabilisticSceneRecognition::ProbabilityTable::~ProbabilityTable
~ProbabilityTable()
Definition:
ProbabilityTable.cpp:41
ProbabilisticSceneRecognition::ProbabilityTable
Definition:
ProbabilityTable.h:38
ProbabilisticSceneRecognition::ProbabilityTable::save
void save(boost::property_tree::ptree &pPt)
Definition:
ProbabilityTable.cpp:67
ProbabilisticSceneRecognition::ProbabilityTable::getProbability
double getProbability(unsigned int pRow, unsigned int pColumn)
Definition:
ProbabilityTable.cpp:89
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::ProbabilityTable::normalize
void normalize()
Definition:
ProbabilityTable.cpp:127
SerializationHelper.h
ProbabilisticSceneRecognition::ProbabilityTable::add
void add(unsigned int pRow, unsigned int pColumn, unsigned int pCounts)
Definition:
ProbabilityTable.cpp:113
ProbabilisticSceneRecognition::ProbabilityTable::getNumberOfRows
unsigned int getNumberOfRows()
Definition:
ProbabilityTable.cpp:108
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54