CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ChiSquaredProbability.cc
Go to the documentation of this file.
1 #ifndef ChiSquaredProbability_H
2 #define ChiSquaredProbability_H
3 
6 
13 float ChiSquaredProbability(double chiSquared, double nrDOF) {
14  return IncompleteGammaComplement::value(nrDOF / 2, chiSquared / 2);
15 }
16 
17 float LnChiSquaredProbability(double chiSquared, double nrDOF) {
18  return IncompleteGammaComplement::ln(nrDOF / 2, chiSquared / 2);
19 }
20 
21 #endif
float LnChiSquaredProbability(double chiSquared, double nrDOF)
float ChiSquaredProbability(double chiSquared, double nrDOF)
static float value(float a, float x)
static float ln(float a, float x)