Loading TOC...

math.median

math.median(
   $arg as Number[]
) as Number?

Summary

Returns the median of a sequence of values. The function returns the empty sequence if the input is the empty sequence.

Parameters
$arg The sequence of values.

Example

  math.median([2, 3, 1, 1.1, 2.2, 4])

  => 2.1

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy