MATH(MEDIAN a())

Returns the median of all values in the a() array, a() can have any number of dimensions