commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1423687 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java
Date Tue, 18 Dec 2012 21:56:19 GMT
Author: erans
Date: Tue Dec 18 21:56:18 2012
New Revision: 1423687

URL: http://svn.apache.org/viewvc?rev=1423687&view=rev
Log:
MATH-922
Parent's field must be updated by subclass.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java?rev=1423687&r1=1423686&r2=1423687&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/GaussNewtonOptimizer.java
Tue Dec 18 21:56:18 2012
@@ -183,6 +183,8 @@ public class GaussNewtonOptimizer extend
                 converged = checker.converged(iter, previous, current);
                 if (converged) {
                     cost = computeCost(currentResiduals);
+                    // Update (deprecated) "point" field.
+                    point = current.getPoint();
                     return current;
                 }
             }



Mime
View raw message