Quick poll: gmean or geometric_mean
Peter Otten
__peter__ at web.de
Sat Jul 9 05:04:21 EDT 2016
Steven D'Aprano wrote:
> 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
The long names. Life's too short for abbreviations.
> Remember that the arithmetic mean is just called "mean".
I think it's a safe bet that a user asking for the unqualified mean wants
just that.
> http://bugs.python.org/issue27181
More information about the Python-list
mailing list