]> granicus.if.org Git - python/commitdiff
Add geometric_mean to __all__
authorSteven D'Aprano <steve@pearwood.info>
Wed, 24 Aug 2016 02:17:00 +0000 (12:17 +1000)
committerSteven D'Aprano <steve@pearwood.info>
Wed, 24 Aug 2016 02:17:00 +0000 (12:17 +1000)
Lib/statistics.py

index 17e471bb566932f9549bf086771e97315338bcf3..632127af4da75a9bd4845e4e7b73f840d6f63e68 100644 (file)
@@ -11,6 +11,7 @@ Calculating averages
 Function            Description
 ==================  =============================================
 mean                Arithmetic mean (average) of data.
+geometric_mean      Geometric mean of data.
 harmonic_mean       Harmonic mean of data.
 median              Median (middle value) of data.
 median_low          Low median of data.
@@ -79,7 +80,7 @@ A single exception is defined: StatisticsError is a subclass of ValueError.
 __all__ = [ 'StatisticsError',
             'pstdev', 'pvariance', 'stdev', 'variance',
             'median',  'median_low', 'median_high', 'median_grouped',
-            'mean', 'mode', 'harmonic_mean',
+            'mean', 'mode', 'geometric_mean', 'harmonic_mean',
           ]
 
 import collections