Next: quit, Previous: pxp, Up: Internal Routines [Contents][Index]
quantile(quantile, data [, axes])
Returns a particular quantile
of the data
along the indicated axes
, i.e., that data value that
exceeds in value a fraction quantile
of all compared data
values. quantile
must be a number between 0 and 1.
quantile(0, data, axes)
is equivalent to min(data, axes)
,
quantile(1, data, axes)
to max(data, axes)
, and
quantile(0.5, data, axes)
to median(data, axes)
. However,
use of quantile
to calculate minima or maxima is not recommended,
because quantile
always sorts the data while looking for the
desired quantile, whereas min
and max
do not do that and
are therefore faster.