1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef ChiSquaredProbability_H
#define ChiSquaredProbability_H
/** Returns the probability that an observation, correctly described by
* a model with nrDOF, will give rise to a chi-squared larger than the one
* observed; from this, one can interpret this probability as how likely
* it is to observe as high (or higher) a chi-squared.
* source: Numerical Recipes
*/
float ChiSquaredProbability(double chiSquared, double nrDOF);
float LnChiSquaredProbability(double chiSquared, double nrDOF);
#endif
|