Sample median (source code)

= Sample median
{wiki=Median#Finite_data_set_of_numbers}

The sample median is the middle order statistic for an odd sample size and any conventional midpoint of the two central order statistics for an even sample size.