commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-1281) "Median" should not extend "Percentile"
Date Fri, 01 Jan 2016 13:20:39 GMT

     [ https://issues.apache.org/jira/browse/MATH-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luc Maisonobe updated MATH-1281:
--------------------------------
    Fix Version/s:     (was: 3.6)

> "Median" should not extend "Percentile"
> ---------------------------------------
>
>                 Key: MATH-1281
>                 URL: https://issues.apache.org/jira/browse/MATH-1281
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.5
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 4.0
>
>
> Class {{Median}} (package {{o.a.c.m.stat.descriptive.rank}} inherits several {{evaluate}}
methods from {{Percentile}} where one of the arguments is the percentile value. That doesn't
make sense, and easily allows for user bugs.
> Either those inherited methods should be overridden by methods that throw a "forbidden"
exception, or perhaps more correctly (but not backwards-compatible), the methods with a specific
percentile argument should be made "static". The latter would also fix the same problem in
the {{Percentile}} class itself.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message