F_Dist
Advanced Analysis Library Only
AnalysisLibErrType F_Dist (double f, int nDegreesOfFreedom, int mDegreesOfFreedom, double *probabilityOfF);
Purpose
Calculates the one-sided probability:
p = prob(F ≤ f)
where f is a random variable from the F-distribution with the specified degrees of freedom.
Example Code
double x, p;
int n, m;
x = -123.456;
n = 6;
m = 7;
F_Dist (x, n, m, &p);
/* Now p = 0 because F-distributed variables are non-negative. */
Parameters
Input | ||
Name | Type | Description |
f | double | The point from which the probability is computed. Range: –∞ < f < ∞ |
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 |
probabilityOfF | double | Calculated probability (0 ≤ p < 1). |
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