Menu

mean()

Version 1.1 and Later

Usage

mean(numlist, highextremes=0, lowextremes=0)
  • Returns the mean after removing any extreme values specified.
  • numlist requires a list type object containing only real numbers.
  • highextremes is an optional argument specifying how many extremes at the high end of the list are to be removed when calculating the mean.
  • lowextremes is an optional argument specifying how many extremes at the low end of the list are to be removed when calculating the mean.

Version 1.0

Usage

mean(numlist)

Examples

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from pydoodles import mean
mean([1, 2, 3, 4, 5])
3.0
mean([1, 2])
1.5
listofnumbers = [1, 2, 3]
mean(listofnumbers)
2.0

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Related

Blog: 2013/04/10-progress-report
Blog: 2013/05/11-released
Wiki: mean_remext()

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.