AverageConditionalProbability.cpp
Go to the documentation of this file.
1 
19 
21 
22 
24  { }
25 
27  { }
28 
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 


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