diff options
Diffstat (limited to 'Lib/statistics.py')
-rw-r--r-- | Lib/statistics.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py index bf10e19..bab5857 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -741,6 +741,16 @@ class NormalDist: return 0.5 * (1.0 + erf((x - self.mu) / (self.sigma * sqrt(2.0)))) @property + def mean(self): + 'Arithmetic mean of the normal distribution' + return self.mu + + @property + def stdev(self): + 'Standard deviation of the normal distribution' + return self.sigma + + @property def variance(self): 'Square of the standard deviation' return self.sigma ** 2.0 |