math.median( arg as Number[] ) as Number?
Returns the median of a sequence of values. The function returns the empty sequence if the input is the empty sequence.
math.median([2, 3, 1, 1.1, 2.2, 4]) => 2.1
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.