[jira] [Updated] (MATH-1281) "Median" should not extend "Percentile"
[ https://issues.apache.org/jira/browse/MATH-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Tompkins updated MATH-1281: --- Fix Version/s: (was: 4.0) 4.X > "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.X > > > 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.15#6346)
[jira] [Updated] (MATH-1281) "Median" should not extend "Percentile"
[ 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)