The OpenD Programming Language

chi2LPDF

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

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

Parameters

x T

value to evaluate LPDF

k uint

degrees of freedom

Examples

import mir.test: shouldApprox;
0.2.chi2LPDF(2).shouldApprox == -0.7931472;

See Also

Meta