Wilang Documentation1.0.0+4

quantileSeq#

Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probability are: Number, BigNumber. In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.

Available in: math cells, REPL.

Syntax#

quantileSeq(A, prob[, sorted])
quantileSeq(A, [prob1, prob2, ...][, sorted])
quantileSeq(A, N[, sorted])

Arguments and behavior#

Arguments must match one of the syntax forms above. Use the example as a starting point; arrays and numeric types are accepted only by compatible overloads. The example returns scalar (number).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
quantileSeq([3, -1, 5, 7], 0.5)

Expected result: 4.

See also#

mean · median · min · max · prod · std · sum · variance

All functions · Math guides