File indexing completed on 2024-04-06 12:01:12
0001 #ifndef ChiSquaredProbability_H
0002 #define ChiSquaredProbability_H
0003
0004 #include "CommonTools/Statistics/src/IncompleteGammaComplement.h"
0005 #include "CommonTools/Statistics/interface/ChiSquaredProbability.h"
0006
0007
0008
0009
0010
0011
0012
0013 float ChiSquaredProbability(double chiSquared, double nrDOF) {
0014 return IncompleteGammaComplement::value(nrDOF / 2, chiSquared / 2);
0015 }
0016
0017 float LnChiSquaredProbability(double chiSquared, double nrDOF) {
0018 return IncompleteGammaComplement::ln(nrDOF / 2, chiSquared / 2);
0019 }
0020
0021 #endif