Admin Production ni-theme
Current Publication

InvT_Dist

LabWindows/CVI

InvT_Dist

Advanced Analysis Library Only

AnalysisLibErrType InvT_Dist (double probabilityOfT, int degreesOfFreedom, double *t);

Purpose

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

prob(T < t) = p

where t is a random variable from a T-distribution with the specified degrees of freedom.

Example Code

double p, t;
int n;
p = 0.635;
n = 2;
InvT_Dist (p, n, &t);

Parameters

Input
Name Type Description
probabilityOfT double Input probability value (0 < p < 1).
degreesOfFreedom int Degrees of freedom for the T-distribution.
Output
Name Type Description
t double The unique number t such that

prob(T < t) = p where t is a random variable from a T-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

Example

Refer to analysis\stats.cws for an example of using the InvT_Dist function.