The OpenD Programming Language

fInvCDF

Computes the F inverse cumulative distribution function (InvCDF).

@safe pure nothrow @nogc
T
fInvCDF
(
T
)
(
const T p
,
const T df1
,
const T df2
)
if (
isFloatingPoint!T
)

Parameters

p T

value to evaluate InvCDF

df1 T

degrees of freedom parameter #1

df2 T

degrees of freedom parameter #2

Examples

import mir.test: shouldApprox;

0.3918266.fInvCDF(1, 1).shouldApprox == 0.50; 
0.522233.fInvCDF(1, 2).shouldApprox == 0.75;
0.5183719.fInvCDF(0.5, 4).shouldApprox == 0.25;
0.08712907.fInvCDF(2, 1).shouldApprox == 0.10;
0.0.fInvCDF(1, 1).shouldApprox == 0;
1.0.fInvCDF(1, 1).shouldApprox == double.infinity;

See Also

Meta