WLJS LogoWLJS Notebook

Median

Median[data] gives the median of the elements in data. Median[dist] gives the median of the distribution dist.

Examples

Compute the median of a list:

Median[{1, 2, 3, 4, 5}]
(* 3 *)

Median[{1, 2, 3, 4}]
(* 5/2 *)

Please visit the official Wolfram Language Reference for more details.

On this page