invf

 

Description

F-distribution CDF.

Syntax

double invf( double dF, int nNumDof, int nDenDof )

Parameters

dF
Value of F (F>0) for which inverse F is returned.
nNumDof
Numerator degrees of freedom where nNumDof>0.
nDenDof
Denominator degrees of freedom where nDenDof>0.

Return

Returns F-distribution cumulative distribution function

Examples

EX1

void invf_ex1()
{
    double dF=3.68232;
    UINT nNumDof=2;
    UINT nDenDof=15;
    double dP;
    dP=invf(dF,nNumDof,nDenDof); // results in dP==0.95
}

Remark

For historical reasons, this F cumulative distribution function was misnamed; Now, we developed a new set of distribution functions, whose CDFs end up with *cdf(), such as chi2cdf(), PDFs with *pdf(), and Inverse CDFs with *inv().

This function performs the same functionality as fcdf(), and we recommend the latter.

See Also

fcdf, Ftable

header to Include

origin.h

Reference