Navigation
Synopsis Median of data values.
Function num median(list[num] values)
Usage import analysis::statistics::Descriptive;
Description Returns the median of the available values. This is the same as the 50th percentile.
Examples
rascal>import analysis::statistics::Descriptive;
ok
rascal>median([1,2,5,7,8]);
num: 5.0
rascal>median([1,2,2,6,7,8]);
num: 4.0
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.