med#

swordfish.function.med()#

If X is a vector, return the median of all the elements in X.

If X is a matrix, calculate the median of each column of X and return a vector.

As with all aggregate functions, null values are not included in the calculation.

Please note that the data type of the result is always DOUBLE.

Parameters:

X (Constant) – A scalar/vector/matrix.