finv

 

Description

Inverse F cumulative distribution function

Syntax

double finv( const double dP, double df1, double df2, int * nFail = NULL )

Parameters

dP
[input] probability from the required F-distribution. .
df1
[input] degrees of freedom of the numerator variance, must be positive (df1>0 ).
df2
[input] degrees of freedom of the denominator variance, must be positive(df2>0).
nFail
[output] on successful exit, it returns the NAG error code NE_NOERROR; if an error or warning
has been detected, then it returns the specific error or warning code.

Return

Returns inverse F cumulative distribution function

Examples

EX1

void finv_ex1()
{
        double x[]= {0.25, 0.5, 0.75};
        double df1 = 3, df2 = 2;
        for(int ii = 0; ii<3; ii++)
                printf("%f     %f      %f:     %f\n", x[ii], df1, df2, finv(x[ii], df1, df2));
}

Remark

See Also

fcdf

header to Include

origin.h

Reference