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