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

Cost in least-squares fitting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3, 3.4, 3.4.1
    • 4.0
    • None
    • None

    Description

      In org.apache.commons.math4.fitting.leastsquares.AbstractEvaluation, the value returned by the "getCost" method is not consistent with the definition of "cost" in a least-squares problem: It is the sum of the squares of the residuals, but the method returns the square-root of that quantity.

      Attachments

        1. MATH-1206.patch
          0.9 kB
          Gilles Sadowski
        2. MATH-1206.patch
          4 kB
          Gilles Sadowski

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: