Returns the arithmetic mean of the given list of values. For example: mean([1,2,3,4]) = 10/4 = 2.5.
(list)
| 334 | _order = order |
| 335 | |
| 336 | def avg(list): |
| 337 | """ Returns the arithmetic mean of the given list of values. |
| 338 | For example: mean([1,2,3,4]) = 10/4 = 2.5. |
| 339 | """ |
| 340 | return float(_sum(list)) / (len(list) or 1) |
| 341 | |
| 342 | def variance(list): |
| 343 | """ Returns the variance of the given list of values. |