The OpenD Programming Language

chiSquareCDF

χ2 distribution function and its complement.

Returns the area under the left hand tail (from 0 to x) of the Chi square probability density function with v degrees of freedom. The complement returns the area under the right hand tail (from x to ∞).

chiSquareCDF(x | v) = ($(INTEGRATE 0, x) tv/2-1 e-t/2 dt ) / 2v/2 $(GAMMA)(v/2)

chiSquareCDFR(x | v) = ($(INTEGRATE x, ∞) tv/2-1 e-t/2 dt ) / 2v/2 $(GAMMA)(v/2)

double
chiSquareCDF
(
double x
,
double v
)

Parameters

v double

degrees of freedom. Must be positive.

x double

the χ2 variable. Must be positive.

Meta