CMS 3D CMS Logo

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
IncompleteGammaComplement::value
static float value(float a, float x)
Definition: IncompleteGammaComplement.cc:11
LnChiSquaredProbability
float LnChiSquaredProbability(double chiSquared, double nrDOF)
Definition: ChiSquaredProbability.cc:17
ChiSquaredProbability
float ChiSquaredProbability(double chiSquared, double nrDOF)
Definition: ChiSquaredProbability.cc:13
ChiSquaredProbability.h
IncompleteGammaComplement.h
IncompleteGammaComplement::ln
static float ln(float a, float x)
Definition: IncompleteGammaComplement.cc:22