double chisqp(double x, double v);
Returns the value of Chi-square random variable distribution function with v degrees of freedom at the value x.
Parameters:
x | Critical point. |
---|---|
v | Degrees of freedom. |
Returns:
P(X ≤ x | v)
Errors:
NUMERICS_ERROR
is raised if v ≤ 0
Usage:
double p = chisqp(.5, 1.5)
Header:
#include "normdist.h"