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

removeData methods for SimpleRegression

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2
    • None
    • None
    • 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

        1. SimpleRegression_removeData.patch
          2 kB
          Andrew Berry
        2. SimpleRegressionTest_removeData.patch
          5 kB
          Andrew Berry

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: