Main Page
Namespaces
Classes
Files
File List
File Members
src
inference
model
foreground
ocm
shape
conditional_probability
AverageConditionalProbability.cpp
Go to the documentation of this file.
1
18
#include "
inference/model/foreground/ocm/shape/conditional_probability/AverageConditionalProbability.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
23
AverageConditionalProbability::AverageConditionalProbability
():
ConditionalProbability
()
24
{ }
25
26
AverageConditionalProbability::~AverageConditionalProbability
()
27
{ }
28
29
double
AverageConditionalProbability::calculateProbability
()
30
{
31
double
sum = 0.0;
32
for
(std::pair<std::string, double> probability:
ConditionalProbability::mParentProbabilities
)
33
sum += probability.second;
34
return
sum / ((double) ConditionalProbability::mParentProbabilities.size());
// check in parent class makes sure that size is not 0.
35
}
36
37
}
38
39
ProbabilisticSceneRecognition::AverageConditionalProbability::AverageConditionalProbability
AverageConditionalProbability()
Definition:
AverageConditionalProbability.cpp:23
AverageConditionalProbability.h
ProbabilisticSceneRecognition::AverageConditionalProbability::~AverageConditionalProbability
~AverageConditionalProbability()
Definition:
AverageConditionalProbability.cpp:26
ProbabilisticSceneRecognition::AverageConditionalProbability::calculateProbability
virtual double calculateProbability()
Definition:
AverageConditionalProbability.cpp:29
ProbabilisticSceneRecognition::ConditionalProbability::mParentProbabilities
std::map< std::string, double > mParentProbabilities
Definition:
ConditionalProbability.h:70
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::ConditionalProbability
Definition:
ConditionalProbability.h:27
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54