summaryrefslogtreecommitdiffstats
path: root/Doc/library/statistics.rst
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-08-23 18:23:31 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-08-23 18:23:31 (GMT)
commitc019bd3033eebe3c7bd25bdd6a4831f8345dc1af (patch)
tree67e0f1c5ac9c81985c23df5b3b858d48bbf7eaf4 /Doc/library/statistics.rst
parentffcb0227386caaedb3017da09e31ec3599ce73c2 (diff)
downloadcpython-c019bd3033eebe3c7bd25bdd6a4831f8345dc1af.zip
cpython-c019bd3033eebe3c7bd25bdd6a4831f8345dc1af.tar.gz
cpython-c019bd3033eebe3c7bd25bdd6a4831f8345dc1af.tar.bz2
Fix markup, add versionadded tags
Diffstat (limited to 'Doc/library/statistics.rst')
-rw-r--r--Doc/library/statistics.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index d62d55a..232fb752 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -135,9 +135,11 @@ However, for reading convenience, most of the examples show sorted sequences.
giving an average growth of 5.385%. Using the arithmetic mean will
give approximately 5.667%, which is too high.
- :exc:``StatisticsError`` is raised if *data* is empty, or any
+ :exc:`StatisticsError` is raised if *data* is empty, or any
element is less than zero.
+ .. versionadded:: 3.6
+
.. function:: harmonic_mean(data)
@@ -145,7 +147,7 @@ However, for reading convenience, most of the examples show sorted sequences.
real-valued numbers.
The harmonic mean, sometimes called the subcontrary mean, is the
- reciprocal of the arithmetic :func:``mean`` of the reciprocals of the
+ reciprocal of the arithmetic :func:`mean` of the reciprocals of the
data. For example, the harmonic mean of three values *a*, *b* and *c*
will be equivalent to ``3/(1/a + 1/b + 1/c)``.
@@ -165,9 +167,11 @@ However, for reading convenience, most of the examples show sorted sequences.
Using the arithmetic mean would give an average of about 5.167, which
is too high.
- :exc:``StatisticsError`` is raised if *data* is empty, or any element
+ :exc:`StatisticsError` is raised if *data* is empty, or any element
is less than zero.
+ .. versionadded:: 3.6
+
.. function:: median(data)