[issue28956] return minimum of modes for a multimodal distribution instead of raising a StatisticsError

Srikanth Anantharam report at bugs.python.org
Tue Dec 13 04:35:22 EST 2016


Srikanth Anantharam added the comment:

A better choice would be to return a tuple of values (sliced from the
table). And let the user decide which one to use.

Hope that's justifiable...

Thanks & Regards
Srikanth Anantharam
+91 7204 350429
https://sria91.github.io/

Sent from Android

On 13-Dec-2016 2:20 PM, "Wolfgang Maier" <report at bugs.python.org> wrote:

>
> Wolfgang Maier added the comment:
>
> What's the justification for this proposed change? Isn't it better to
> report the fact that there isn't an unambiguous result instead of returning
> a rather arbitrary one?
>
> ----------
> nosy: +steven.daprano, wolma
> versions: +Python 3.7 -Python 3.5
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue28956>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28956>
_______________________________________


More information about the Python-bugs-list mailing list