commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1295552 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java
Date Thu, 01 Mar 2012 13:14:32 GMT
Author: erans
Date: Thu Mar  1 13:14:32 2012
New Revision: 1295552

URL: http://svn.apache.org/viewvc?rev=1295552&view=rev
Log:
Removed unused variable (discovered by "FindBugs").

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

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java?rev=1295552&r1=1295551&r2=1295552&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java
Thu Mar  1 13:14:32 2012
@@ -69,8 +69,6 @@ public abstract class AbstractLeastSquar
     protected double[] point;
     /** Current objective function value. */
     protected double[] objective;
-    /** Current residuals. */
-    protected double[] residuals;
     /** Weighted residuals */
     protected double[] weightedResiduals;
     /** Cost value (square root of the sum of the residuals). */
@@ -261,7 +259,6 @@ public abstract class AbstractLeastSquar
 
         // Store least squares problem characteristics.
         jF = f.jacobian();
-        this.residuals = new double[target.length];
 
         // Arrays shared with the other private methods.
         point = startPoint.clone();



Mime
View raw message