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

LoessInterpolator can calculate median residual for robustness iterations incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.1
    • 4.X
    • None
    • None

    Description

      When LoessInterpolator.smooth determines the median residual to use in weighting points when performing robustness iterations its calculation is only strictly correct for odd numbers of points. For even numbers it should take the mean of the central two residuals. While this may not generally make a large difference it hinders comparison with other implementations (such as R loess) for testing.

      Patch and additional tests available.

      Attachments

        1. MATH-1380-loess-residual-median.patch
          7 kB
          Richard Wilkinson

        Activity

          People

            Unassigned Unassigned
            rwaj Richard Wilkinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: