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

removeData methods for SimpleRegression

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      I've implemented removeData methods for the org.apache.commons.math.stat.regression.SimpleRegression class. They mirror the existing addData methods. My reason for adding them is to support regression calculations across a sliding window of (time-based) observations without having to recalculate for the entire window every time.

      I'll attach patch files for the class and its junit test class. I'm not too concerned if these are added to the commons math library (I have made a copy in my own class hierarchy) but thought other might find this useful.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              drpump95 Andrew Berry
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: