summaryrefslogtreecommitdiffstats
path: root/Lib/statistics.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-02-28 17:16:25 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-28 17:16:25 (GMT)
commitef17fdbc1c274dc84c2f611c40449ab84824607e (patch)
tree10619b6016709e2339455421d15c4b9bac2fd2c4 /Lib/statistics.py
parentae2ea33d5da34a777e77d489b700ff45d753934f (diff)
downloadcpython-ef17fdbc1c274dc84c2f611c40449ab84824607e.zip
cpython-ef17fdbc1c274dc84c2f611c40449ab84824607e.tar.gz
cpython-ef17fdbc1c274dc84c2f611c40449ab84824607e.tar.bz2
bpo-36018: Add special value tests and make minor tweaks to the docs (GH-12096)
https://bugs.python.org/issue36018
Diffstat (limited to 'Lib/statistics.py')
-rw-r--r--Lib/statistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py
index bab5857..e917a5d 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -735,7 +735,7 @@ class NormalDist:
return exp((x - self.mu)**2.0 / (-2.0*variance)) / sqrt(tau * variance)
def cdf(self, x):
- 'Cumulative density function: P(X <= x)'
+ 'Cumulative distribution function: P(X <= x)'
if not self.sigma:
raise StatisticsError('cdf() not defined when sigma is zero')
return 0.5 * (1.0 + erf((x - self.mu) / (self.sigma * sqrt(2.0))))