#include <ConditionalProbability.h>
Public Member Functions | |
ConditionalProbability () | |
double | getProbability () |
std::string | printParentProbabilities () |
void | setProbability (std::string pParentId, double pProbability) |
~ConditionalProbability () | |
Protected Member Functions | |
virtual double | calculateProbability ()=0 |
Protected Attributes | |
std::map< std::string, double > | mParentProbabilities |
Private Attributes | |
bool | mWasRead |
This class represents a conditional probability of an evidences pose given its parent evidences' poses.
Definition at line 27 of file ConditionalProbability.h.
ProbabilisticSceneRecognition::ConditionalProbability::ConditionalProbability | ( | ) |
Constructor.
Definition at line 22 of file ConditionalProbability.cpp.
ProbabilisticSceneRecognition::ConditionalProbability::~ConditionalProbability | ( | ) |
Destructor.
Definition at line 25 of file ConditionalProbability.cpp.
|
protectedpure virtual |
Calculate the probability from the parent probabilities.
Implemented in ProbabilisticSceneRecognition::RootOfMultipliedConditionalProbability, ProbabilisticSceneRecognition::AverageConditionalProbability, ProbabilisticSceneRecognition::MinimumConditionalProbability, and ProbabilisticSceneRecognition::MultipliedConditionalProbability.
double ProbabilisticSceneRecognition::ConditionalProbability::getProbability | ( | ) |
Get the value of the conditional probability.
Definition at line 35 of file ConditionalProbability.cpp.
std::string ProbabilisticSceneRecognition::ConditionalProbability::printParentProbabilities | ( | ) |
Returns the list of probabilities by parent ids as a string.
Definition at line 49 of file ConditionalProbability.cpp.
void ProbabilisticSceneRecognition::ConditionalProbability::setProbability | ( | std::string | pParentId, |
double | pProbability | ||
) |
Add a value to the conditional probability.
pParentId | the parent to set the probability for. |
pProb | the value of the conditional probability. |
Definition at line 28 of file ConditionalProbability.cpp.
|
protected |
Probabilities by parent ids.
Definition at line 70 of file ConditionalProbability.h.
|
private |
Whether this probability has already been read once. Adding to a probability that has already been read is forbidden.
Definition at line 77 of file ConditionalProbability.h.