Advanced Analysis Library Only
AnalysisLibErrType Median (double inputArray[], int numberOfElements, double *median);
Finds the median value of the input array.
To find the median value, Median first sorts the input array in ascending order. Let S be the sorted array:
![]() |
Note The input array does not change. |
Input | ||
Name | Type | Description |
inputArray | double-precision array | Input array used to determine the median. |
numberOfElements | integer | Number of elements used to determine the median. |
Output | ||
Name | Type | Description |
median | double-precision | Median value 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. |