The OpenD Programming Language

chi2PDF

Computes the Chi-squared probability density function (PDF).

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

Parameters

x T

value to evaluate PDF

k uint

degrees of freedom

Examples

import mir.test: shouldApprox;
0.2.chi2PDF(2).shouldApprox == 0.4524187;

See Also

Meta