Quick poll: gmean or geometric_mean

Jussi Piitulainen jussi.piitulainen at helsinki.fi
Sat Jul 9 01:43:27 EDT 2016


Steven D'Aprano writes:

> As requested in issue 27181 on the bug tracker, I'm adding functions
> to calculate the harmonic and geometric means to the statistics
> module.
>
> I'd like to get a quick show of hands regarding the names. Which do
> you prefer?
>
> hmean and gmean
>
> harmonic_mean and geometric_mean
>
>
> Remember that the arithmetic mean is just called "mean".
>
> http://bugs.python.org/issue27181

First reaction: hmean and gmean.

After reading the issue: hmean and gmean.

After a brief glance at the statistics module: hmean and gmean.

Or also change pstdev and pvariance to population_stdev and
population_variance for consistency. Still: hmean and gmean.



More information about the Python-list mailing list