CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/CommonTools/Statistics/src/ChiSquaredProbability.cc

Go to the documentation of this file.
00001 #ifndef ChiSquaredProbability_H
00002 #define ChiSquaredProbability_H
00003 
00004 #include "CommonTools/Statistics/src/IncompleteGammaComplement.h"
00005 #include "CommonTools/Statistics/interface/ChiSquaredProbability.h"
00006 
00013 float ChiSquaredProbability( double chiSquared, double nrDOF )
00014 { return IncompleteGammaComplement::value( nrDOF / 2 , chiSquared / 2 ); }
00015 
00016 float LnChiSquaredProbability( double chiSquared, double nrDOF )
00017 { return IncompleteGammaComplement::ln( nrDOF / 2 , chiSquared / 2 ); }
00018 
00019 #endif