Admin Production ni-theme
Current Publication

InvN_Dist

LabWindows/CVI

InvN_Dist

Advanced Analysis Library Only

AnalysisLibErrType InvN_Dist (double probabilityOfX, double *x);

Purpose

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

prob(X < x) = p

where x is a random variable from a standard normal distribution.

Example Code

double p, x;
p = 0.5;
InvN_Dist (p, &x);

Parameters

Input
Name Type Description
probabilityOfX double Input probability value (0 < p < 1).
Output
Name Type Description
x double The unique number x such that prob(X < x) = p, where x is a random variable from a standard normal distribution.

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