RankedMin

RankedMin[list,n]

gives the n^(th) smallest element in list.

RankedMin[list,-n]

gives the n^(th) largest element in list.

Details

  • RankedMin yields a definite result if all its arguments are real numbers.
  • RankedMin[{x1,,xm},n] is often indicated using or .
  • RankedMin[{x1,,xm},1] is equivalent to Min[{x1,,xm}].
  • RankedMin[{x1,,xm},-1] is equivalent to Max[{x1,,xm}].
  • RankedMin[{x1,,xm},m] is equivalent to Max[{x1,,xm}].
  • RankedMin[{x1,,xm},n] is equivalent to Quantile[{x1,,xm},n/m].

Examples

open allclose all

Basic Examples  (2)

The second smallest of three numbers:

In[1]:=
Click for copyable input
Out[1]=

The second largest of four numbers:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Applications  (7)

Properties & Relations  (6)

Neat Examples  (2)

See Also

RankedMax  TakeSmallest  Min  MinimalBy  Max  Quantile  OrderDistribution  WinsorizedVariance

Introduced in 2010
(8.0)
| Updated in 2017
(11.1)