Median
Advanced Analysis Library Only
AnalysisLibErrType Median (double inputArray[], ssize_t numberOfElements, double *median);
Purpose
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. |
Parameters
| Input | ||
| Name | Type | Description |
| inputArray | double [] | Input array used to determine the median. |
| numberOfElements | ssize_t | Number of elements used to determine the median. |
| Output | ||
| Name | Type | Description |
| median | double | Median value of the input array. |
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
