commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1336123 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java
Date Wed, 09 May 2012 12:14:16 GMT
Author: erans
Date: Wed May  9 12:14:16 2012
New Revision: 1336123

URL: http://svn.apache.org/viewvc?rev=1336123&view=rev
Log:
"final", formatting.

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=1336123&r1=1336122&r2=1336123&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
Wed May  9 12:14:16 2012
@@ -280,8 +280,8 @@ public abstract class AbstractLeastSquar
      * if the covariance matrix cannot be computed.
      */
     public double[] getSigma() {
-        double[] sig = new double[cols];
-        double[][] cov = getCovariances();
+        final double[] sig = new double[cols];
+        final double[][] cov = getCovariances();
         for (int i = 0; i < sig.length; ++i) {
             sig[i] = FastMath.sqrt(cov[i][i]);
         }
@@ -291,9 +291,9 @@ public abstract class AbstractLeastSquar
     /** {@inheritDoc} */
     @Override
     public PointVectorValuePair optimize(int maxEval,
-                                            final DifferentiableMultivariateVectorFunction
f,
-                                            final double[] target, final double[] weights,
-                                            final double[] startPoint) {
+                                         final DifferentiableMultivariateVectorFunction f,
+                                         final double[] target, final double[] weights,
+                                         final double[] startPoint) {
         // Reset counter.
         jacobianEvaluations = 0;
 



Mime
View raw message