commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1364453 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java
Date Sun, 22 Jul 2012 22:45:16 GMT
Author: erans
Date: Sun Jul 22 22:45:15 2012
New Revision: 1364453

URL: http://svn.apache.org/viewvc?rev=1364453&view=rev
Log:
Fixed CheckStyle warnings.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java?rev=1364453&r1=1364452&r2=1364453&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java
Sun Jul 22 22:45:15 2012
@@ -38,7 +38,7 @@ import org.apache.commons.math3.util.Fas
 public class IterativeLegendreGaussIntegrator
     extends BaseAbstractUnivariateIntegrator {
     /** Factory that computes the points and weights. */
-    private static final GaussIntegratorFactory factory
+    private static final GaussIntegratorFactory FACTORY
         = new GaussIntegratorFactory();
     /** Number of integration points (per interval). */
     private final int numberOfPoints;
@@ -117,7 +117,7 @@ public class IterativeLegendreGaussInteg
                              getRelativeAccuracy() * (FastMath.abs(oldt) + FastMath.abs(t))
* 0.5);
 
             // check convergence
-            if (iterations.getCount() + 1 >= getMinimalIterationCount() && 
+            if (iterations.getCount() + 1 >= getMinimalIterationCount() &&
                 delta <= limit) {
                 return t;
             }
@@ -146,7 +146,7 @@ public class IterativeLegendreGaussInteg
                     return computeObjectiveValue(x);
                 }
             };
-        
+
         final double min = getMin();
         final double max = getMax();
         final double step = (max - min) / n;
@@ -156,7 +156,7 @@ public class IterativeLegendreGaussInteg
             // Integrate over each sub-interval [a, b].
             final double a = min + i * step;
             final double b = a + step;
-            final GaussIntegrator g = factory.legendreHighPrecision(numberOfPoints, a, b);
+            final GaussIntegrator g = FACTORY.legendreHighPrecision(numberOfPoints, a, b);
             sum += g.integrate(f);
         }
 



Mime
View raw message