CommonTools
Statistics
src
ChiSquaredProbability.cc
Go to the documentation of this file.
1
#ifndef ChiSquaredProbability_H
2
#define ChiSquaredProbability_H
3
4
#include "
CommonTools/Statistics/src/IncompleteGammaComplement.h
"
5
#include "
CommonTools/Statistics/interface/ChiSquaredProbability.h
"
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
Generated for CMSSW Reference Manual by
1.8.16