PyDocs

Nav

Numeric and Mathematical Modules

median_high

statistics

function (source)
  • median_high(data)
Return the high median of data.

When the number of data points is odd, the middle value is returned.
When it is even, the larger of the two middle values is returned.

>>> median_high([1, 3, 5])
3
>>> median_high([1, 3, 5, 7])
5
1 Example
>>> median_high([1, 3, 5])
3
>>> median_high([1, 3, 5, 7])
5
from the Python docs
See Also
No see-alsos for statistics/median_high
0 Notes
No notes for median_high