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

2018-02-18 Thread Srikanth Anantharam
Srikanth Anantharam <sri...@gmail.com> added the comment: Please review the new PR with tests. I'll update the documentation if the PR is acceptable. -- title: return minimum of modes for a multimodal distribution instead of raising a StatisticsError -> return list

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

2018-02-18 Thread Srikanth Anantharam
Change by Srikanth Anantharam <sri...@gmail.com>: -- keywords: +patch pull_requests: +5512 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

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

2016-12-13 Thread Srikanth Anantharam
Srikanth Anantharam added the comment: @steven: data = [1, 2, 3, 4, 4, 4, 5, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9] is clearly unimodal with mode 8 data would have been bimodal if 4 repeated exactly the same (7) number of times as 8, like this: data = [1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7, 7, 8

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

2016-12-13 Thread Srikanth Anantharam
Srikanth Anantharam added the comment: Please see the updated pull request PR 50, with the changes. Thanks & Regards Srikanth Anantharam +91 7204 350429 https://sria91.github.io/ Sent from Android On 13-Dec-2016 3:26 PM, "Srikanth Anantharam" <rep...@bugs.python.org>

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

2016-12-13 Thread Srikanth Anantharam
Changes by Srikanth Anantharam <sri...@gmail.com>: -- pull_requests: +4 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28956> ___

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

2016-12-13 Thread Srikanth Anantharam
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

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

2016-12-12 Thread Srikanth Anantharam
New submission from Srikanth Anantharam: return minimum of modes for a multimodal distribution instead of raising a StatisticsError -- components: Library (Lib) messages: 283071 nosy: Srikanth Anantharam priority: normal pull_requests: 3 severity: normal status: open title: return