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