InvXX_Dist
Advanced Analysis Library Only
AnalysisLibErrType InvXX_Dist (double probabilityOfXx, int degreesOfFreedom, double *xx);
Purpose
Calculates xx, given a probability (0 ≤ p < 1), such that:
prob(
< x) = p
where
is a random variable from a chi-square distribution with the specified degrees of freedom.
![]() |
Note When probabilityOfXx = 0, xx = 0. |
Example Code
double p, x;
n;
p = 0.635;
n = 2;
InvXX_Dist (p, n, &x);
Parameters
| Input | ||
| Name | Type | Description |
| probabilityOfXx | double | Input probability value (0 ≤ p < 1). |
| degreesOfFreedom | int | Degrees of freedom for the chi-squared distribution. |
| Output | ||
| Name | Type | Description |
| xx | double | The unique number xx such that prob(
< x) = p, where
is a random variable from a chi-square 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
