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

"Median" should not extend "Percentile"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5
    • 4.X
    • None
    • 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

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

              Dates

                Created:
                Updated: