This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gaoxinge
Recipients WarrenWeckesser, gaoxinge, mark.dickinson, rhettinger, steven.daprano, taleinat, tim.peters
Date 2019-10-30.03:06:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572404789.15.0.0456001767678.issue38382@roundup.psfhosted.org>
In-reply-to
Content
I think that three kinds of mean should behave like:

- `geometric mean`: input should be float, finite and positive
- `harmonic mean`: input should be float, finite and nonzero
- `mean` or `fmean`: input should be float, finite

Otherwise these mean functions should raise a `StatisticsError`. 

Two points that we should pay attention to:

- Why every input should be float? Because it is a statstics library, we should focus on the float instead of complex number or string or `math.nan`.

- Why every input shoud be finite? Becuse we should get rid of `math.inf`.
History
Date User Action Args
2019-10-30 03:06:29gaoxingesetrecipients: + gaoxinge, tim.peters, rhettinger, mark.dickinson, taleinat, steven.daprano, WarrenWeckesser
2019-10-30 03:06:29gaoxingesetmessageid: <1572404789.15.0.0456001767678.issue38382@roundup.psfhosted.org>
2019-10-30 03:06:29gaoxingelinkissue38382 messages
2019-10-30 03:06:28gaoxingecreate