The OpenD Programming Language

chi2CDF

Computes the Chi-squared cumulative distribution function (CDF).

@safe pure nothrow @nogc
T
chi2CDF
(
T
)
(
const T x
,
const uint k
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

k uint

degrees of freedom

Examples

import mir.test: shouldApprox;
0.2.chi2CDF(2).shouldApprox == 0.09516258;

See Also

Meta