Admin Production ni-theme
Current Publication

InvF_Dist

LabWindows/CVI

InvF_Dist

Advanced Analysis Library Only

AnalysisLibErrType InvF_Dist (double probabilityOfF, int nDegreesOfFreedom, int mDegreesOfFreedom, double *f);

Purpose

Calculates f, given a probability (0 ≤ p < 1), such that:

prob(F < f) = p

where f is a random variable from an F-distribution with the specified degrees of freedom.

Note   When p = 0, f = 0.

Example Code

double p, f;
n, m;
p = 0.635;
n = 2;
m = 4;
InvF_Dist (p, n, m, &f);

Parameters

Input
Name Type Description
probabilityOfF double Input probability value (0 ≤ p < 1).
nDegreesOfFreedom int The first degree of freedom for the F-distribution.
mDegreesOfFreedom int The second degree of freedom for the F-distribution.
Output
Name Type Description
f double The unique number f such that prob(F < f) = p, where f is a random variable from an F-distribution with the specified degrees of freedom.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.1 and later