Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1281

"Median" should not extend "Percentile"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: 4.X
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                erans Gilles Sadowski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: