Loading TOC...

MarkLogic 10 Product Documentation
math.percentile

math.percentile(
   arg as Number[],
   p as Number[]
) as Sequence

Summary

Returns a sequence of percentile(s) given a sequence of percentage(s). The function returns the empty sequence if either $arg or $p is the empty sequence.

Parameters
arg The sequence of values to calculate the percentile(s) on.
p The sequence of percentage(s).

Example

  math.percentile([2, 3, 1, 1.1, 2.2, 4],[0.25,0.75])

  => 1.05 3.5

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.