| 1 | def mean(values): |
| 2 | """ |
| 3 | Compute the arithmetic mean (“average”) of values. |
| 4 | |
| 5 | :type values: typing.List[float] |
| 6 | :param values: List of floats |
| 7 | :return: Mean of values. |
| 8 | |
| 9 | .. deprecated:: 2.5.0 |
| 10 | Since Python 3.4, you can use the standard function :func:`statistics.mean`. |
| 11 | """ |
| 12 | return sum(values) / len(values) |