computes the lower or upper tail probability for the chi-square distribution with real degrees of freedom.
double chi2cdf( const double x, double df, int iTail = TAILED_TEST_LOWER, int * nFail = NULL )
Returns Chi Square cdf
EX1
void chi2cdf_ex1() { double x[]= {0.25, 0.5, 0.75}; double df = 3; for(int ii = 0; ii<3; ii++) printf("%f %f: %f\n", x[ii], df, chi2cdf(x[ii], df)); }
chi2inv
origin.h