RootOfMultipliedConditionalProbability.cpp
Go to the documentation of this file.
1 
19 
21 
23  { }
24 
26  { }
27 
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 


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