LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

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.

Log in to get a better experience