int StdDev (double inputArray[], int numberOfElements, double *mean, double *standardDeviation);
Calculates the standard deviation and the mean, or average, values of the input array. StdDev uses the following formulas to find the mean and the standard deviation:
Input | ||
Name | Type | Description |
inputArray | double-precision array | Input array from which the mean and the standard deviation are determined. |
numberOfElements | integer | Number of elements used to find the mean and the standard deviation. |
Output | ||
Name | Type | Description |
mean | double-precision | Mean value of the input array. |
standardDeviation | double-precision | Standard deviation of the input array. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |