Srikanth Anantharam 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 of modes for a multimodal dist
Change by Srikanth Anantharam :
--
keywords: +patch
pull_requests: +5512
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue28956>
___
_
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
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"
wrote:
>
> Changes by
Changes by Srikanth Anantharam :
--
pull_requests: +4
___
Python tracker
<http://bugs.python.org/issue28956>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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