Median

Finds the median value of the input sequence X by sorting the values of X and selecting the middle element(s) of the sorted array. Details

If the input sequence X is empty, median is NaN.
median is the calculated median value of the input sequence X.
error returns any error or warning condition from the VI.

Median Details

Let n be the number of elements in the input sequence X, and let S be the sorted sequence of X. The VI finds median using the following identity:

where

and

.