FNMedianreturns the median value or values of the elements in the arrayA. Themedianis the value which half the points inAare less than and half the points inAare greater than.
FNMediancomputes the median by sorting the elements in the arrayA.IfAhas an even number of points, there are two central values in the return value in A. In this case,FNMedianreturns the average of the two central values.
When it executes,FNMediancreates a temporary integer array to hold values used in sorting. This requires 2 bytes of memory per point in the arrayA.FNMediancauses an error if this amount is memory is not available.
Errors
FNMediancauses an HTBasic error if its arguments is not a REAL array.