diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-02-08 00:44:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 00:44:42 (GMT) |
commit | 30a8b2839646c849371c7f8411132571cd8bf17c (patch) | |
tree | 9d72d4de0e23a2677b363efe6a16747c00ce70a0 /Lib | |
parent | 206cbdab16cb054e859597a562e2f6ab35e99766 (diff) | |
download | cpython-30a8b2839646c849371c7f8411132571cd8bf17c.zip cpython-30a8b2839646c849371c7f8411132571cd8bf17c.tar.gz cpython-30a8b2839646c849371c7f8411132571cd8bf17c.tar.bz2 |
bpo-43147: Remove archaic terminology. (GH-24462)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/statistics.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py index 4b054b9..2414869 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -367,10 +367,9 @@ def geometric_mean(data): def harmonic_mean(data, weights=None): """Return the harmonic mean of data. - The harmonic mean, sometimes called the subcontrary mean, is the - reciprocal of the arithmetic mean of the reciprocals of the data, - and is often appropriate when averaging quantities which are rates - or ratios, for example speeds. + The harmonic mean is the reciprocal of the arithmetic mean of the + reciprocals of the data. It can be used for averaging ratios or + rates, for example speeds. Suppose a car travels 40 km/hr for 5 km and then speeds-up to 60 km/hr for another 5 km. What is the average speed? |