Admin Production ni-theme
Current Publication

T_Dist

LabWindows/CVI

T_Dist

Advanced Analysis Library Only

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

Purpose

Calculates the one-sided probability:

p = prob(T ≤ t)

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

Example Code

double t, p;
int n;
t = -123.456;
n = 6;
T_Dist (t, n, &p);

Parameters

Input
Name Type Description
t double The point from which the probability is computed.

Range: –∞ < t < ∞
degreesOfFreedom int Degrees of freedom for the T-distribution.
Output
Name Type Description
probabilityOfT 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