The OpenD Programming Language

fPDF

Computes the F probability density function (PDF).

@safe pure nothrow @nogc
T
fPDF
(
T
)
(
const T x
,
const T df1
,
const T df2
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate PDF

df1 T

degrees of freedom parameter #1

df2 T

degrees of freedom parameter #2

Examples

import mir.test: shouldApprox;

0.50.fPDF(1, 1).shouldApprox == 0.3001054;
0.75.fPDF(1, 2).shouldApprox == 0.2532039;
0.25.fPDF(0.5, 4).shouldApprox == 0.4904035;
0.10.fPDF(2, 1).shouldApprox == 0.7607258;
0.00.fPDF(1, 3).shouldApprox == double.infinity;

See Also

Meta