MultipliedBackgroundInferenceAlgorithm.cpp
Go to the documentation of this file.
1 
19 
21 
24  , mProbability(0.0)
25  {
26  }
27 
29  {
30  }
31 
32  void MultipliedBackgroundInferenceAlgorithm::doInference(std::vector<ISM::Object> pEvidenceList, std::ofstream& pRuntimeLogger)
33  {
34  /**************************************************************************************
35  * What we do here:
36  *
37  * This are basically the same calculations like in the foreground scene. We calculate
38  * the probability of the scene based on the scene objects, exactly like in the
39  * foreground scene.
40  *
41  * However, the probability of the scene objects are calculated under an
42  * equal distribution. We assume that there's a scene object for every detected object.
43  *
44  * The scene objects are evaluated and the results are multiplied to form
45  * the scene probabilty.
46  ***************************************************************************************/
47 
48  // The number of scene objects equals the number of evidences.
49  unsigned int numberOfSceneObjects = pEvidenceList.size();
50 
51  // The probability is the sum of the scores for every background scene object.
52  mProbability = pow(calculateProbabilityOfBackgroundSceneObject(numberOfSceneObjects, numberOfSceneObjects), numberOfSceneObjects);
53  }
54 
56  {
57  return mProbability;
58  }
59 
60 }
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
double calculateProbabilityOfBackgroundSceneObject(unsigned int pNumberOfEvidence, unsigned int pNumberOfSlots)


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