stats Module

Performs statistics operations for mapmuts package.

Written by Jesse Bloom.

List of functions

Median : returns the median of a list of numbers.

Mean : returns the mean of a list of numbers.

Documentation for individual functions

Documentation for individual functions is provided in their definitions below.

stats.Mean(numlist)

Returns the mean of a list of numbers.

numlist : a list of numbers.

Example:

>>> print "%.3f" % Mean([1.0, 1.5, 3])
1.833
stats.Median(xlist)

Returns the median of a list of numbers.

xlist : a list of numbers for which to calculate the median. Note that the entries in this list will be sorted upon completion of this function.

Examples:

>>> xlist = [1, 2, 3, 4.1]
>>> print "%.3f" % Median(xlist)
2.500