commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject [4/4] [math] Removed trailing spaces. No code change.
Date Fri, 27 Nov 2015 18:10:54 GMT
Removed trailing spaces. No code change.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/ff35e6f2
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/ff35e6f2
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/ff35e6f2

Branch: refs/heads/MATH_3_X
Commit: ff35e6f27ee4976f4091ebdd4c9b715134c35e11
Parents: 654d723
Author: Phil Steitz <phil.steitz@gmail.com>
Authored: Fri Nov 27 11:10:39 2015 -0700
Committer: Phil Steitz <phil.steitz@gmail.com>
Committed: Fri Nov 27 11:10:39 2015 -0700

----------------------------------------------------------------------
 .../math3/analysis/FunctionUtilsTest.java       |   8 +-
 .../DerivativeStructureTest.java                |  16 +--
 .../FiniteDifferencesDifferentiatorTest.java    |  14 +--
 .../differentiation/GradientFunctionTest.java   |   4 +-
 .../differentiation/JacobianFunctionTest.java   |   4 +-
 .../differentiation/SparseGradientTest.java     |   4 +-
 .../math3/analysis/function/GaussianTest.java   |   2 +-
 .../math3/analysis/function/LogisticTest.java   |   8 +-
 .../math3/analysis/function/SigmoidTest.java    |   2 +-
 .../analysis/function/StepFunctionTest.java     |   8 +-
 .../integration/MidPointIntegratorTest.java     |   4 +-
 .../BicubicSplineInterpolatingFunctionTest.java |  18 +--
 .../BicubicSplineInterpolatorTest.java          |   6 +-
 ...PolynomialBicubicSplineInterpolatorTest.java |   8 +-
 .../TricubicInterpolatingFunctionTest.java      |   4 +-
 ...TricubicSplineInterpolatingFunctionTest.java |  16 +--
 .../TricubicSplineInterpolatorTest.java         |  12 +-
 .../PolynomialSplineFunctionTest.java           |   2 +-
 .../polynomials/PolynomialsUtilsTest.java       |   2 +-
 .../commons/math3/complex/QuaternionTest.java   |   2 +-
 .../apache/commons/math3/dfp/DfpDecTest.java    |   6 +-
 .../apache/commons/math3/dfp/DfpMathTest.java   | 122 +++++++++----------
 .../distribution/BinomialDistributionTest.java  |   4 +-
 .../ConstantRealDistributionTest.java           |   4 +-
 .../EnumeratedIntegerDistributionTest.java      |   2 +-
 .../EnumeratedRealDistributionTest.java         |   8 +-
 .../distribution/GeometricDistributionTest.java |   2 +-
 .../HypergeometricDistributionTest.java         |  14 +--
 .../KolmogorovSmirnovDistributionTest.java      |   8 +-
 .../distribution/LevyDistributionTest.java      |   2 +-
 .../MultivariateNormalDistributionTest.java     |   2 +-
 .../distribution/PoissonDistributionTest.java   |   2 +-
 .../RealDistributionAbstractTest.java           |  12 +-
 .../math3/distribution/TDistributionTest.java   |   4 +-
 .../UniformRealDistributionTest.java            |  10 +-
 ...ormalMixtureExpectationMaximizationTest.java |  10 +-
 .../DimensionMismatchExceptionTest.java         |   2 +-
 .../MaxCountExceededExceptionTest.java          |   2 +-
 .../NonMonotonicSequenceExceptionTest.java      |   2 +-
 .../exception/NotPositiveExceptionTest.java     |   2 +-
 .../NotStrictlyPositiveExceptionTest.java       |   2 +-
 .../NumberIsTooLargeExceptionTest.java          |   2 +-
 .../NumberIsTooSmallExceptionTest.java          |   2 +-
 .../exception/OutOfRangeExceptionTest.java      |   2 +-
 .../TooManyEvaluationsExceptionTest.java        |   2 +-
 .../math3/exception/util/ArgUtilsTest.java      |   2 +-
 .../exception/util/ExceptionContextTest.java    |   2 +-
 .../commons/math3/filter/KalmanFilterTest.java  |  50 ++++----
 .../math3/fitting/GaussianCurveFitterTest.java  |  16 +--
 .../math3/fitting/GaussianFitterTest.java       |  16 +--
 .../math3/fitting/HarmonicCurveFitterTest.java  |   2 +-
 .../fitting/PolynomialCurveFitterTest.java      |   2 +-
 .../math3/fitting/SimpleCurveFitterTest.java    |   2 +-
 .../fitting/leastsquares/CircleProblem.java     |   2 +-
 .../fitting/leastsquares/CircleVectorial.java   |   2 +-
 .../math3/fitting/leastsquares/MinpackTest.java |   4 +-
 .../commons/math3/fraction/BigFractionTest.java |   4 +-
 .../math3/genetics/CycleCrossoverTest.java      |   4 +-
 .../math3/genetics/DummyListChromosome.java     |   2 +-
 .../genetics/ElitisticListPopulationTest.java   |  10 +-
 .../math3/genetics/ListPopulationTest.java      |  26 ++--
 .../math3/genetics/NPointCrossoverTest.java     |  16 +--
 .../math3/genetics/OrderedCrossoverTest.java    |   6 +-
 .../commons/math3/genetics/RandomKeyTest.java   |   2 +-
 .../math3/genetics/UniformCrossoverTest.java    |  14 +--
 .../euclidean/threed/FieldVector3DTest.java     |   6 +-
 .../geometry/euclidean/threed/LineTest.java     |   2 +-
 .../euclidean/threed/PolyhedronsSetTest.java    |  26 ++--
 .../geometry/euclidean/threed/RotationTest.java |   2 +-
 .../euclidean/threed/SphereGeneratorTest.java   |   2 +-
 .../threed/SphericalCoordinatesTest.java        |   2 +-
 .../geometry/euclidean/threed/SubLineTest.java  |   2 +-
 .../geometry/euclidean/threed/Vector3DTest.java |   6 +-
 .../euclidean/twod/DiskGeneratorTest.java       |   2 +-
 .../euclidean/twod/PolygonsSetTest.java         |  12 +-
 .../geometry/euclidean/twod/Vector2DTest.java   |   6 +-
 .../hull/ConvexHullGenerator2DAbstractTest.java |  18 +--
 .../geometry/partitioning/RegionDumper.java     |   2 +-
 .../geometry/partitioning/RegionParser.java     |   2 +-
 .../geometry/spherical/twod/CircleTest.java     |   4 +-
 .../math3/linear/Array2DRowRealMatrixTest.java  |   2 +-
 .../math3/linear/DiagonalMatrixTest.java        |   6 +-
 .../math3/linear/EigenDecompositionTest.java    |  20 +--
 .../math3/linear/HessenbergTransformerTest.java |  10 +-
 .../MatrixDimensionMismatchExceptionTest.java   |   2 +-
 .../commons/math3/linear/MatrixUtilsTest.java   |  16 +--
 .../math3/linear/QRDecompositionTest.java       |   2 +-
 .../commons/math3/linear/RRQRSolverTest.java    |   4 +-
 .../RectangularCholeskyDecompositionTest.java   |   2 +-
 .../math3/linear/SchurTransformerTest.java      |   6 +-
 .../ml/clustering/DBSCANClustererTest.java      |  10 +-
 .../clustering/KMeansPlusPlusClustererTest.java |  12 +-
 .../MultiKMeansPlusPlusClustererTest.java       |   2 +-
 .../evaluation/SumOfClusterVariancesTest.java   |   4 +-
 .../commons/math3/ml/neuralnet/NetworkTest.java |   4 +-
 .../ml/neuralnet/OffsetFeatureInitializer.java  |   2 +-
 .../neuralnet/sofm/KohonenTrainingTaskTest.java |   2 +-
 .../sofm/TravellingSalesmanSolver.java          |   2 +-
 .../commons/math3/ode/JacobianMatricesTest.java |   2 +-
 .../math3/ode/events/EventStateTest.java        |  16 +--
 .../nonstiff/HighamHall54IntegratorTest.java    |   2 +-
 .../sampling/StepNormalizerOutputTestBase.java  |   8 +-
 .../math3/optim/SimplePointCheckerTest.java     |   2 +-
 .../math3/optim/SimpleValueCheckerTest.java     |   2 +-
 .../math3/optim/linear/SimplexSolverTest.java   |  40 +++---
 .../scalar/noderiv/BOBYQAOptimizerTest.java     |  40 +++---
 .../scalar/noderiv/CMAESOptimizerTest.java      |  12 +-
 ...stractLeastSquaresOptimizerAbstractTest.java |   2 +-
 .../vector/jacobian/CircleProblem.java          |   2 +-
 .../nonlinear/vector/jacobian/MinpackTest.java  |   2 +-
 .../optim/univariate/BrentOptimizerTest.java    |   2 +-
 .../MultiStartUnivariateOptimizerTest.java      |   2 +-
 .../SimpleUnivariateValueCheckerTest.java       |   2 +-
 .../optimization/SimplePointCheckerTest.java    |   2 +-
 .../optimization/SimpleValueCheckerTest.java    |   2 +-
 .../direct/BOBYQAOptimizerTest.java             |  40 +++---
 .../optimization/direct/CMAESOptimizerTest.java |  14 +--
 .../fitting/GaussianFitterTest.java             |  16 +--
 ...stractLeastSquaresOptimizerAbstractTest.java |   2 +-
 ...NonLinearConjugateGradientOptimizerTest.java |   2 +-
 .../optimization/linear/SimplexSolverTest.java  |  26 ++--
 .../univariate/BrentOptimizerTest.java          |   2 +-
 .../SimpleUnivariateValueCheckerTest.java       |   2 +-
 .../UnivariateMultiStartOptimizerTest.java      |   2 +-
 .../apache/commons/math3/primes/PrimesTest.java |   2 +-
 .../random/AbstractRandomGeneratorTest.java     |   4 +-
 .../math3/random/BitsStreamGeneratorTest.java   |  16 +--
 .../CorrelatedRandomVectorGeneratorTest.java    |   8 +-
 .../math3/random/EmpiricalDistributionTest.java |  60 ++++-----
 .../random/HaltonSequenceGeneratorTest.java     |   4 +-
 .../math3/random/MersenneTwisterTest.java       |   4 +-
 .../commons/math3/random/RandomAdaptorTest.java |   6 +-
 .../random/RandomGeneratorAbstractTest.java     |   2 +-
 .../random/SobolSequenceGeneratorTest.java      |   8 +-
 .../math3/random/StableRandomGeneratorTest.java |   6 +-
 .../UnitSphereRandomVectorGeneratorTest.java    |   2 +-
 .../commons/math3/random/ValueServerTest.java   |   8 +-
 .../commons/math3/random/Well19937aTest.java    |   2 +-
 .../commons/math3/random/Well19937cTest.java    |   2 +-
 .../commons/math3/random/Well44497aTest.java    |   4 +-
 .../commons/math3/random/Well44497bTest.java    |   4 +-
 .../commons/math3/random/Well512aTest.java      |   2 +-
 .../commons/math3/special/BesselJTest.java      |   6 +-
 .../apache/commons/math3/special/ErfTest.java   |  54 ++++----
 .../commons/math3/stat/FrequencyTest.java       |  36 +++---
 .../commons/math3/stat/StatUtilsTest.java       |  16 +--
 .../stat/clustering/DBSCANClustererTest.java    |  10 +-
 .../clustering/KMeansPlusPlusClustererTest.java |   8 +-
 .../SpearmansRankCorrelationTest.java           |   4 +-
 .../correlation/StorelessCovarianceTest.java    |  10 +-
 .../descriptive/DescriptiveStatisticsTest.java  |   2 +-
 .../StatisticalSummaryValuesTest.java           |   2 +-
 ...torelessUnivariateStatisticAbstractTest.java |   2 +-
 .../stat/descriptive/SummaryStatisticsTest.java |  20 +--
 .../UnivariateStatisticAbstractTest.java        |   4 +-
 .../descriptive/rank/PSquarePercentileTest.java |   4 +-
 .../stat/descriptive/rank/PercentileTest.java   |   4 +-
 .../stat/descriptive/summary/ProductTest.java   |   2 +-
 .../stat/descriptive/summary/SumLogTest.java    |   4 +-
 .../stat/descriptive/summary/SumSqTest.java     |   2 +-
 .../math3/stat/descriptive/summary/SumTest.java |   2 +-
 .../commons/math3/stat/inference/GTestTest.java |  14 +--
 .../stat/inference/MannWhitneyUTestTest.java    |  14 +--
 .../math3/stat/inference/TestUtilsTest.java     |   6 +-
 .../inference/WilcoxonSignedRankTestTest.java   |  36 +++---
 .../stat/interval/AgrestiCoullIntervalTest.java |   2 +-
 .../BinomialConfidenceIntervalAbstractTest.java |   4 +-
 .../interval/ClopperPearsonIntervalTest.java    |   2 +-
 .../math3/stat/interval/IntervalUtilsTest.java  |   4 +-
 .../NormalApproximationIntervalTest.java        |   2 +-
 .../stat/interval/WilsonScoreIntervalTest.java  |   2 +-
 .../math3/stat/ranking/NaturalRankingTest.java  |  14 +--
 .../GLSMultipleLinearRegressionTest.java        |  44 +++----
 .../MillerUpdatingRegressionTest.java           |  34 +++---
 .../MultipleLinearRegressionAbstractTest.java   |  20 +--
 .../OLSMultipleLinearRegressionTest.java        |  88 ++++++-------
 .../stat/regression/SimpleRegressionTest.java   |   2 +-
 .../commons/math3/util/CombinationsTest.java    |   4 +-
 .../apache/commons/math3/util/FastMathTest.java |  26 ++--
 .../commons/math3/util/IncrementorTest.java     |   2 +-
 .../math3/util/ResizableDoubleArrayTest.java    |  18 +--
 181 files changed, 840 insertions(+), 840 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/FunctionUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/FunctionUtilsTest.java b/src/test/java/org/apache/commons/math3/analysis/FunctionUtilsTest.java
index 5e2bc96..8c66189 100644
--- a/src/test/java/org/apache/commons/math3/analysis/FunctionUtilsTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/FunctionUtilsTest.java
@@ -273,11 +273,11 @@ public class FunctionUtilsTest {
     public void testToDifferentiableMultivariateFunction() {
 
         MultivariateDifferentiableFunction hypot = new MultivariateDifferentiableFunction() {
-            
+
             public double value(double[] point) {
                 return FastMath.hypot(point[0], point[1]);
             }
-            
+
             public DerivativeStructure value(DerivativeStructure[] point) {
                 return DerivativeStructure.hypot(point[0], point[1]);
             }
@@ -300,7 +300,7 @@ public class FunctionUtilsTest {
     public void testToMultivariateDifferentiableFunction() {
 
         DifferentiableMultivariateFunction hypot = new DifferentiableMultivariateFunction() {
-            
+
             public double value(double[] point) {
                 return FastMath.hypot(point[0], point[1]);
             }
@@ -321,7 +321,7 @@ public class FunctionUtilsTest {
                     }
                 };
             }
-            
+
         };
 
         MultivariateDifferentiableFunction converted = FunctionUtils.toMultivariateDifferentiableFunction(hypot);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructureTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructureTest.java b/src/test/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructureTest.java
index 39b4d5f..91f2310 100644
--- a/src/test/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructureTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructureTest.java
@@ -375,7 +375,7 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                                         FastMath.abs(epsilon * dfdxdydz));
 
                 }
-                
+
             }
         }
     }
@@ -395,17 +395,17 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                         double f1 = 1 / (2 * FastMath.sqrt(x * y));
                         Assert.assertEquals(f1, f.getPartialDerivative(1), FastMath.abs(epsilon * f1));
                         if (f.getOrder() > 1) {
-                            double f2 = -f1 / (2 * x); 
+                            double f2 = -f1 / (2 * x);
                             Assert.assertEquals(f2, f.getPartialDerivative(2), FastMath.abs(epsilon * f2));
                             if (f.getOrder() > 2) {
-                                double f3 = (f0 + x / (2 * y * f0)) / (4 * x * x * x); 
+                                double f3 = (f0 + x / (2 * y * f0)) / (4 * x * x * x);
                                 Assert.assertEquals(f3, f.getPartialDerivative(3), FastMath.abs(epsilon * f3));
                             }
                         }
                     }
                 }
             }
-        }        
+        }
     }
 
     @Test
@@ -447,7 +447,7 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                         }
                     }
                 }
-            }        
+            }
         }
     }
 
@@ -1102,17 +1102,17 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                         double f1 = -x / (2 * y * y * f0);
                         Assert.assertEquals(f1, f.getPartialDerivative(1), FastMath.abs(epsilon * f1));
                         if (f.getOrder() > 1) {
-                            double f2 = (f0 - x / (4 * y * f0)) / (y * y); 
+                            double f2 = (f0 - x / (4 * y * f0)) / (y * y);
                             Assert.assertEquals(f2, f.getPartialDerivative(2), FastMath.abs(epsilon * f2));
                             if (f.getOrder() > 2) {
-                                double f3 = (x / (8 * y * f0) - 2 * f0) / (y * y * y); 
+                                double f3 = (x / (8 * y * f0) - 2 * f0) / (y * y * y);
                                 Assert.assertEquals(f3, f.getPartialDerivative(3), FastMath.abs(epsilon * f3));
                             }
                         }
                     }
                 }
             }
-        }        
+        }
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java b/src/test/java/org/apache/commons/math3/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
index 9702305..2e17796 100644
--- a/src/test/java/org/apache/commons/math3/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
@@ -153,7 +153,7 @@ public class FiniteDifferencesDifferentiatorTest {
         // the 1.0e-6 step size is far too small for finite differences in the quintic on this abscissa range for 7 points
         // the errors are huge!
         final double[] expectedBad = new double[] {
-            2.910e-11, 2.087e-5, 147.7, 3.820e7, 6.354e14, 6.548e19, 1.543e27            
+            2.910e-11, 2.087e-5, 147.7, 3.820e7, 6.354e14, 6.548e19, 1.543e27
         };
 
         for (int i = 0; i < maxErrorGood.length; ++i) {
@@ -255,11 +255,11 @@ public class FiniteDifferencesDifferentiatorTest {
         // here, we did set the bounds, so evaluations are done within domain
         // using f(0.0), f(0.1), f(0.2)
         Assert.assertEquals(slope, properlyBounded.value(tLow).getPartialDerivative(1), 1.0e-10);
-        
+
         // here, we did set the bounds, so evaluations are done within domain
         // using f(0.8), f(0.9), f(1.0)
         Assert.assertEquals(slope, properlyBounded.value(tHigh).getPartialDerivative(1), 1.0e-10);
-        
+
     }
 
     @Test
@@ -290,11 +290,11 @@ public class FiniteDifferencesDifferentiatorTest {
                 new FiniteDifferencesDifferentiator(7, 0.01);
         UnivariateDifferentiableVectorFunction f =
                 differentiator.differentiate(new UnivariateVectorFunction() {
-            
+
             public double[] value(double x) {
                 return new double[] { FastMath.cos(x), FastMath.sin(x) };
             }
-            
+
         });
 
         for (double x = -10; x < 10; x += 0.1) {
@@ -325,14 +325,14 @@ public class FiniteDifferencesDifferentiatorTest {
                 new FiniteDifferencesDifferentiator(7, 0.01);
         UnivariateDifferentiableMatrixFunction f =
                 differentiator.differentiate(new UnivariateMatrixFunction() {
-            
+
             public double[][] value(double x) {
                 return new double[][] {
                     { FastMath.cos(x),  FastMath.sin(x)  },
                     { FastMath.cosh(x), FastMath.sinh(x) }
                 };
             }
-            
+
         });
 
         for (double x = -1; x < 1; x += 0.02) {

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/differentiation/GradientFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/differentiation/GradientFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/differentiation/GradientFunctionTest.java
index 7faf9b6..18fbe1d 100644
--- a/src/test/java/org/apache/commons/math3/analysis/differentiation/GradientFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/differentiation/GradientFunctionTest.java
@@ -56,7 +56,7 @@ public class GradientFunctionTest {
     }
 
     private static class EuclideanDistance implements MultivariateDifferentiableFunction {
-        
+
         public double value(double[] point) {
             double d2 = 0;
             for (double x : point) {
@@ -64,7 +64,7 @@ public class GradientFunctionTest {
             }
             return FastMath.sqrt(d2);
         }
-        
+
         public DerivativeStructure value(DerivativeStructure[] point)
             throws DimensionMismatchException, MathIllegalArgumentException {
             DerivativeStructure d2 = point[0].getField().getZero();

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/differentiation/JacobianFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/differentiation/JacobianFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/differentiation/JacobianFunctionTest.java
index b7c00fe..15625a4 100644
--- a/src/test/java/org/apache/commons/math3/analysis/differentiation/JacobianFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/differentiation/JacobianFunctionTest.java
@@ -54,7 +54,7 @@ public class JacobianFunctionTest {
         public SphereMapping(final double radius) {
             this.radius = radius;
         }
-        
+
         public double[] value(double[] point) {
             final double cLat = FastMath.cos(point[0]);
             final double sLat = FastMath.sin(point[0]);
@@ -66,7 +66,7 @@ public class JacobianFunctionTest {
                 radius * sLat
             };
         }
-        
+
         public DerivativeStructure[] value(DerivativeStructure[] point) {
             final DerivativeStructure cLat = point[0].cos();
             final DerivativeStructure sLat = point[0].sin();

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/differentiation/SparseGradientTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/differentiation/SparseGradientTest.java b/src/test/java/org/apache/commons/math3/analysis/differentiation/SparseGradientTest.java
index 559da87..a6eac4f 100644
--- a/src/test/java/org/apache/commons/math3/analysis/differentiation/SparseGradientTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/differentiation/SparseGradientTest.java
@@ -308,7 +308,7 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                     Assert.assertEquals(dfdx, sg.getDerivative(0), FastMath.abs(epsilon * dfdx));
 
                 }
-                
+
             }
         }
     }
@@ -352,7 +352,7 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                         Assert.assertEquals(dfdz, f.getDerivative(2), FastMath.abs(epsilon * dfdz));
                     }
                 }
-            }        
+            }
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/function/GaussianTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/function/GaussianTest.java b/src/test/java/org/apache/commons/math3/analysis/function/GaussianTest.java
index ef7536d..c580cf0 100644
--- a/src/test/java/org/apache/commons/math3/analysis/function/GaussianTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/function/GaussianTest.java
@@ -80,7 +80,7 @@ public class GaussianTest {
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, 1e2)).getPartialDerivative(1), 0);
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, 1e50)).getPartialDerivative(1), 0);
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.MAX_VALUE)).getPartialDerivative(1), 0);
-        Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.POSITIVE_INFINITY)).getPartialDerivative(1), 0);        
+        Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.POSITIVE_INFINITY)).getPartialDerivative(1), 0);
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/function/LogisticTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/function/LogisticTest.java b/src/test/java/org/apache/commons/math3/analysis/function/LogisticTest.java
index f721719..0e992d2 100644
--- a/src/test/java/org/apache/commons/math3/analysis/function/LogisticTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/function/LogisticTest.java
@@ -87,7 +87,7 @@ public class LogisticTest {
 
         final Logistic f = new Logistic(k, 0, 1, 1, a, 1);
         final Sigmoid g = new Sigmoid(a, k);
-        
+
         final double min = -10;
         final double max = 10;
         final double n = 20;
@@ -147,7 +147,7 @@ public class LogisticTest {
         final Logistic.Parametric f = new Logistic.Parametric();
         // Compare using the "Sigmoid" function.
         final Sigmoid.Parametric g = new Sigmoid.Parametric();
-        
+
         final double x = 0.12345;
         final double[] gf = f.gradient(x, new double[] {k, 0, 1, 1, a, 1});
         final double[] gg = g.gradient(x, new double[] {a, k});
@@ -166,7 +166,7 @@ public class LogisticTest {
         final double n = 3.4;
 
         final Logistic.Parametric f = new Logistic.Parametric();
-        
+
         final double x = m - 1;
         final double qExp1 = 2;
 
@@ -186,7 +186,7 @@ public class LogisticTest {
         final double n = 3.4;
 
         final Logistic.Parametric f = new Logistic.Parametric();
-        
+
         final double x = 0;
         final double qExp1 = 2;
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/function/SigmoidTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/function/SigmoidTest.java b/src/test/java/org/apache/commons/math3/analysis/function/SigmoidTest.java
index 59f6312..b1e505c 100644
--- a/src/test/java/org/apache/commons/math3/analysis/function/SigmoidTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/function/SigmoidTest.java
@@ -70,7 +70,7 @@ public class SigmoidTest {
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, 1e3)).getPartialDerivative(1), 0);
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, 1e50)).getPartialDerivative(1), 0);
         Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.MAX_VALUE)).getPartialDerivative(1), 0);
-        Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.POSITIVE_INFINITY)).getPartialDerivative(1), 0);        
+        Assert.assertEquals(0, f.value(new DerivativeStructure(1, 1, 0, Double.POSITIVE_INFINITY)).getPartialDerivative(1), 0);
     }
 
     @Test(expected=NullArgumentException.class)

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/function/StepFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/function/StepFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/function/StepFunctionTest.java
index 247a0a9..92a2097 100644
--- a/src/test/java/org/apache/commons/math3/analysis/function/StepFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/function/StepFunctionTest.java
@@ -78,7 +78,7 @@ public class StepFunctionTest {
         Assert.assertEquals(51.2, f.value(30), EPS);
         Assert.assertEquals(51.2, f.value(Double.POSITIVE_INFINITY), EPS);
     }
-    
+
     @Test
     public void testEndpointBehavior() {
         final double[] x = {0, 1, 2, 3};
@@ -93,15 +93,15 @@ public class StepFunctionTest {
         for (int i = 0; i < x.length; i++) {
            Assert.assertEquals(y[i], f.value(x[i]), EPS);
            if (i > 0) {
-               Assert.assertEquals(y[i - 1], f.value(x[i] - 0.5), EPS); 
+               Assert.assertEquals(y[i - 1], f.value(x[i] - 0.5), EPS);
            } else {
-               Assert.assertEquals(y[0], f.value(x[i] - 0.5), EPS); 
+               Assert.assertEquals(y[0], f.value(x[i] - 0.5), EPS);
            }
         }
     }
 
     @Test
-    public void testHeaviside() {   
+    public void testHeaviside() {
         final UnivariateFunction h = new StepFunction(new double[] {-1, 0},
                                                           new double[] {0, 1});
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/integration/MidPointIntegratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/integration/MidPointIntegratorTest.java b/src/test/java/org/apache/commons/math3/analysis/integration/MidPointIntegratorTest.java
index 36daa3e..c6f9ca8 100644
--- a/src/test/java/org/apache/commons/math3/analysis/integration/MidPointIntegratorTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/integration/MidPointIntegratorTest.java
@@ -41,7 +41,7 @@ public final class MidPointIntegratorTest {
     public void testLowAccuracy() {
         UnivariateFunction f = new QuinticFunction();
         UnivariateIntegrator integrator = new MidPointIntegrator(0.01, 1.0e-10, 2, 4);
-        
+
         double min = -10;
         double max =  -9;
         double expected = -3697001.0 / 48.0;
@@ -60,7 +60,7 @@ public final class MidPointIntegratorTest {
     public void testSinFunction() {
         UnivariateFunction f = new Sin();
         UnivariateIntegrator integrator = new MidPointIntegrator();
-        
+
         double min = 0;
         double max = FastMath.PI;
         double expected = 2;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
index 8c78aed..24aa0f4 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunctionTest.java
@@ -29,7 +29,7 @@ import org.junit.Ignore;
 
 /**
  * Test case for the bicubic function.
- * 
+ *
  */
 public final class BicubicSplineInterpolatingFunctionTest {
     /**
@@ -44,7 +44,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
         @SuppressWarnings("unused")
         BivariateFunction bcf = new BicubicSplineInterpolatingFunction(xval, yval, zval,
                                                                            zval, zval, zval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             bcf = new BicubicSplineInterpolatingFunction(wxval, yval, zval, zval, zval, zval);
@@ -239,7 +239,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
                                                                            dZdX, dZdY, dZdXdY);
         double x, y;
         double expected, result;
-        
+
         x = 4;
         y = -3;
         expected = f.value(x, y);
@@ -295,7 +295,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
             };
         Assert.assertEquals("dFdX", derivative.value(x, y),
                             f.partialDerivativeX().value(x, y), tol);
-        
+
         derivative = new BivariateFunction() {
                 public double value(double x, double y) {
                     final double x2 = x * x;
@@ -385,7 +385,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
         BivariateFunction dfdX = new BivariateFunction() {
                 public double value(double x, double y) {
                     final double x2 = x * x;
-                    final double y2 = y * y;                    
+                    final double y2 = y * y;
                     return - 3 - y + 4 * x + 8 * x * y - y2 - 9 * x2;
                 }
             };
@@ -399,7 +399,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
         BivariateFunction dfdY = new BivariateFunction() {
                 public double value(double x, double y) {
                     final double x2 = x * x;
-                    final double y2 = y * y;                    
+                    final double y2 = y * y;
                     return 2 - x - 6 * y + 4 * x2 - 2 * x * y + 3 * y2;
                 }
             };
@@ -432,7 +432,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
             x = val[i];
             for (int j = 0; j < sz; j++) {
                 y = val[j];
-                
+
                 expected = dfdX.value(x, y);
                 result = bcf.partialDerivativeX(x, y);
                 Assert.assertEquals(x + " " + y + " dFdX", expected, result, tol);
@@ -440,7 +440,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
                 expected = dfdY.value(x, y);
                 result = bcf.partialDerivativeY(x, y);
                 Assert.assertEquals(x + " " + y + " dFdY", expected, result, tol);
-                
+
                 expected = d2fdXdY.value(x, y);
                 result = bcf.partialDerivativeXY(x, y);
                 Assert.assertEquals(x + " " + y + " d2FdXdY", expected, result, tol);
@@ -637,7 +637,7 @@ public final class BicubicSplineInterpolatingFunctionTest {
         Assert.assertTrue(bcf.isValidPoint(x, y));
         // Ensure that no exception is thrown.
         bcf.value(x, y);
- 
+
         final double xRange = xMax - xMin;
         final double yRange = yMax - yMin;
         x = xMin + xRange / 3.4;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatorTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatorTest.java
index c4a56bb..3a3852f 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatorTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatorTest.java
@@ -27,7 +27,7 @@ import org.junit.Test;
 
 /**
  * Test case for the bicubic interpolator.
- * 
+ *
  */
 public final class BicubicSplineInterpolatorTest {
     /**
@@ -40,10 +40,10 @@ public final class BicubicSplineInterpolatorTest {
         double[][] zval = new double[xval.length][yval.length];
 
         BivariateGridInterpolator interpolator = new BicubicSplineInterpolator();
-        
+
         @SuppressWarnings("unused")
         BivariateFunction p = interpolator.interpolate(xval, yval, zval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             p = interpolator.interpolate(wxval, yval, zval);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolatorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolatorTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolatorTest.java
index 51c9760..1977b11 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolatorTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/SmoothingPolynomialBicubicSplineInterpolatorTest.java
@@ -25,7 +25,7 @@ import org.junit.Test;
 
 /**
  * Test case for the smoothing bicubic interpolator.
- * 
+ *
  */
 public final class SmoothingPolynomialBicubicSplineInterpolatorTest {
     /**
@@ -38,10 +38,10 @@ public final class SmoothingPolynomialBicubicSplineInterpolatorTest {
         double[][] zval = new double[xval.length][yval.length];
 
         BivariateGridInterpolator interpolator = new SmoothingPolynomialBicubicSplineInterpolator(0);
-        
+
         @SuppressWarnings("unused")
         BivariateFunction p = interpolator.interpolate(xval, yval, zval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             p = interpolator.interpolate(wxval, yval, zval);
@@ -109,7 +109,7 @@ public final class SmoothingPolynomialBicubicSplineInterpolatorTest {
         BivariateFunction p = interpolator.interpolate(xval, yval, zval);
         double x, y;
         double expected, result;
-        
+
         x = 4;
         y = -3;
         expected = f.value(x, y);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicInterpolatingFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicInterpolatingFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicInterpolatingFunctionTest.java
index 9760555..0b5a3e5 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicInterpolatingFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicInterpolatingFunctionTest.java
@@ -29,7 +29,7 @@ import org.junit.Test;
 
 /**
  * Test case for the bicubic function.
- * 
+ *
  */
 public final class TricubicInterpolatingFunctionTest {
     /**
@@ -46,7 +46,7 @@ public final class TricubicInterpolatingFunctionTest {
         TrivariateFunction tcf = new TricubicInterpolatingFunction(xval, yval, zval,
                                                                    fval, fval, fval, fval,
                                                                    fval, fval, fval, fval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             tcf = new TricubicInterpolatingFunction(wxval, yval, zval,

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
index 90bce9e..c6ee8af 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatingFunctionTest.java
@@ -25,7 +25,7 @@ import org.junit.Test;
 
 /**
  * Test case for the bicubic function.
- * 
+ *
  */
 public final class TricubicSplineInterpolatingFunctionTest {
     /**
@@ -42,7 +42,7 @@ public final class TricubicSplineInterpolatingFunctionTest {
         TrivariateFunction tcf = new TricubicSplineInterpolatingFunction(xval, yval, zval,
                                                                              fval, fval, fval, fval,
                                                                              fval, fval, fval, fval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             tcf = new TricubicSplineInterpolatingFunction(wxval, yval, zval,
@@ -383,19 +383,19 @@ public final class TricubicSplineInterpolatingFunctionTest {
         double[] xval = new double[] {3, 4, 5, 6.5};
         double[] yval = new double[] {-4, -3, -1, 2, 2.5};
         double[] zval = new double[] {-12, -8, -5.5, -3, 0, 4};
-        
+
         final double a = 0.2;
         final double omega = 0.5;
         final double kx = 2;
         final double ky = 1;
-        
+
         // Function values
         TrivariateFunction f = new TrivariateFunction() {
                 public double value(double x, double y, double z) {
                     return a * FastMath.cos(omega * z - kx * x - ky * y);
                 }
             };
-        
+
         double[][][] fval = new double[xval.length][yval.length][zval.length];
         for (int i = 0; i < xval.length; i++) {
             for (int j = 0; j < yval.length; j++) {
@@ -404,7 +404,7 @@ public final class TricubicSplineInterpolatingFunctionTest {
                 }
             }
         }
-        
+
         // Partial derivatives with respect to x
         double[][][] dFdX = new double[xval.length][yval.length][zval.length];
         TrivariateFunction dFdX_f = new TrivariateFunction() {
@@ -419,7 +419,7 @@ public final class TricubicSplineInterpolatingFunctionTest {
                 }
             }
         }
-            
+
         // Partial derivatives with respect to y
         double[][][] dFdY = new double[xval.length][yval.length][zval.length];
         TrivariateFunction dFdY_f = new TrivariateFunction() {
@@ -516,7 +516,7 @@ public final class TricubicSplineInterpolatingFunctionTest {
                                                                              d3FdXdYdZ);
         double x, y, z;
         double expected, result;
-        
+
         x = 4;
         y = -3;
         z = 0;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatorTest.java b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatorTest.java
index 6de42a2..a747cca 100644
--- a/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatorTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/interpolation/TricubicSplineInterpolatorTest.java
@@ -26,7 +26,7 @@ import org.junit.Ignore;
 
 /**
  * Test case for the tricubic interpolator.
- * 
+ *
  */
 public final class TricubicSplineInterpolatorTest {
     /**
@@ -40,10 +40,10 @@ public final class TricubicSplineInterpolatorTest {
         double[][][] fval = new double[xval.length][yval.length][zval.length];
 
         TrivariateGridInterpolator interpolator = new TricubicSplineInterpolator();
-        
+
         @SuppressWarnings("unused")
         TrivariateFunction p = interpolator.interpolate(xval, yval, zval, fval);
-        
+
         double[] wxval = new double[] {3, 2, 5, 6.5};
         try {
             p = interpolator.interpolate(wxval, yval, zval, fval);
@@ -121,7 +121,7 @@ public final class TricubicSplineInterpolatorTest {
         TrivariateFunction p = interpolator.interpolate(xval, yval, zval, fval);
         double x, y, z;
         double expected, result;
-        
+
         x = 4;
         y = -3;
         z = 0;
@@ -169,7 +169,7 @@ public final class TricubicSplineInterpolatorTest {
                     return a * FastMath.cos(omega * z - kx * x - ky * y);
                 }
             };
-        
+
         double[][][] fval = new double[xval.length][yval.length][zval.length];
         for (int i = 0; i < xval.length; i++) {
             for (int j = 0; j < yval.length; j++) {
@@ -184,7 +184,7 @@ public final class TricubicSplineInterpolatorTest {
         TrivariateFunction p = interpolator.interpolate(xval, yval, zval, fval);
         double x, y, z;
         double expected, result;
-        
+
         x = 4;
         y = -3;
         z = 0;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java b/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
index b353a73..708968a 100644
--- a/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialSplineFunctionTest.java
@@ -151,7 +151,7 @@ public class PolynomialSplineFunctionTest {
         Assert.assertTrue(spline.isValidPoint(x));
         // Ensure that no exception is thrown.
         spline.value(x);
- 
+
         final double xRange = xMax - xMin;
         x = xMin + xRange / 3.4;
         Assert.assertTrue(spline.isValidPoint(x));

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java b/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
index e87804b..0997fd3 100644
--- a/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
+++ b/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
@@ -329,7 +329,7 @@ public class PolynomialsUtilsTest {
         PolynomialFunction f1xM1
             = new PolynomialFunction(PolynomialsUtils.shift(f1x.getCoefficients(), -1));
         checkPolynomial(f1xM1, "2 - 3 x + 2 x^2");
-        
+
         PolynomialFunction f1x3
             = new PolynomialFunction(PolynomialsUtils.shift(f1x.getCoefficients(), 3));
         checkPolynomial(f1x3, "22 + 13 x + 2 x^2");

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/complex/QuaternionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/complex/QuaternionTest.java b/src/test/java/org/apache/commons/math3/complex/QuaternionTest.java
index b81e260..0f9cf3a 100644
--- a/src/test/java/org/apache/commons/math3/complex/QuaternionTest.java
+++ b/src/test/java/org/apache/commons/math3/complex/QuaternionTest.java
@@ -84,7 +84,7 @@ public class QuaternionTest {
     public void testWrongDimension() {
         new Quaternion(new double[] { 1, 2 });
     }
-    
+
     @Test
     public final void testConjugate() {
         final double q0 = 2;

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/dfp/DfpDecTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/dfp/DfpDecTest.java b/src/test/java/org/apache/commons/math3/dfp/DfpDecTest.java
index fc65fd7..2f4d33c 100644
--- a/src/test/java/org/apache/commons/math3/dfp/DfpDecTest.java
+++ b/src/test/java/org/apache/commons/math3/dfp/DfpDecTest.java
@@ -44,13 +44,13 @@ public class DfpDecTest {
         ninf    = null;
     }
 
-    // Generic test function.  Takes params x and y and tests them for 
+    // Generic test function.  Takes params x and y and tests them for
     // equality.  Then checks the status flags against the flags argument.
     // If the test fail, it prints the desc string
     private void test(Dfp x, Dfp y, int flags, String desc) {
         boolean b = x.equals(y);
 
-        if (!x.equals(y) && !x.unequal(y))  // NaNs involved 
+        if (!x.equals(y) && !x.unequal(y))  // NaNs involved
             b = (x.toString().equals(y.toString()));
 
         if (x.equals(new DfpDec(field, 0)))  // distinguish +/- zero
@@ -553,7 +553,7 @@ public class DfpDecTest {
              new DfpDec(field, "-0"),
              DfpField.FLAG_UNDERFLOW|DfpField.FLAG_INEXACT, "Next After #12");
 
-        test(new DfpDec(field, "1e-131092").nextAfter(ninf), 
+        test(new DfpDec(field, "1e-131092").nextAfter(ninf),
              new DfpDec(field, "0"),
              DfpField.FLAG_UNDERFLOW|DfpField.FLAG_INEXACT, "Next After #13");
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/dfp/DfpMathTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/dfp/DfpMathTest.java b/src/test/java/org/apache/commons/math3/dfp/DfpMathTest.java
index 832a808..c61cfbc 100644
--- a/src/test/java/org/apache/commons/math3/dfp/DfpMathTest.java
+++ b/src/test/java/org/apache/commons/math3/dfp/DfpMathTest.java
@@ -53,14 +53,14 @@ public class DfpMathTest {
         qnan = null;
     }
 
-    // Generic test function.  Takes params x and y and tests them for 
+    // Generic test function.  Takes params x and y and tests them for
     // equality.  Then checks the status flags against the flags argument.
     // If the test fail, it prints the desc string
     private void test(Dfp x, Dfp y, int flags, String desc)
     {
         boolean b = x.equals(y);
 
-        if (!x.equals(y) && !x.unequal(y))  // NaNs involved 
+        if (!x.equals(y) && !x.unequal(y))  // NaNs involved
             b = (x.toString().equals(y.toString()));
 
         if (x.equals(factory.newDfp("0")))  // distinguish +/- zero
@@ -75,109 +75,109 @@ public class DfpMathTest {
     }
 
     @Test
-    public void testPow()  
+    public void testPow()
     {
         // Test special cases  exponent of zero
-        test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("0")),
+             factory.newDfp("1"),
              0, "pow #1");
 
-        test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("-0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("-0")),
+             factory.newDfp("1"),
              0, "pow #2");
 
-        test(DfpMath.pow(factory.newDfp("2"), factory.newDfp("0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(factory.newDfp("2"), factory.newDfp("0")),
+             factory.newDfp("1"),
              0, "pow #3");
 
-        test(DfpMath.pow(factory.newDfp("-2"), factory.newDfp("-0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(factory.newDfp("-2"), factory.newDfp("-0")),
+             factory.newDfp("1"),
              0, "pow #4");
 
-        test(DfpMath.pow(pinf, factory.newDfp("-0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(pinf, factory.newDfp("-0")),
+             factory.newDfp("1"),
              0, "pow #5");
 
         test(DfpMath.pow(pinf, factory.newDfp("0")),
-             factory.newDfp("1"), 
+             factory.newDfp("1"),
              0, "pow #6");
 
-        test(DfpMath.pow(ninf, factory.newDfp("-0")),      
-             factory.newDfp("1"), 
+        test(DfpMath.pow(ninf, factory.newDfp("-0")),
+             factory.newDfp("1"),
              0, "pow #7");
 
         test(DfpMath.pow(ninf, factory.newDfp("0")),
-             factory.newDfp("1"), 
+             factory.newDfp("1"),
              0, "pow #8");
 
         test(DfpMath.pow(qnan, factory.newDfp("0")),
-             factory.newDfp("1"), 
+             factory.newDfp("1"),
              0, "pow #8");
 
         // exponent of one
         test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("1")),
-             factory.newDfp("0"), 
+             factory.newDfp("0"),
              0, "pow #9");
 
-        test(DfpMath.pow(factory.newDfp("-0"), factory.newDfp("1")),      
-             factory.newDfp("-0"), 
+        test(DfpMath.pow(factory.newDfp("-0"), factory.newDfp("1")),
+             factory.newDfp("-0"),
              0, "pow #10");
 
         test(DfpMath.pow(factory.newDfp("2"), factory.newDfp("1")),
-             factory.newDfp("2"), 
+             factory.newDfp("2"),
              0, "pow #11");
 
         test(DfpMath.pow(factory.newDfp("-2"), factory.newDfp("1")),
-             factory.newDfp("-2"), 
+             factory.newDfp("-2"),
              0, "pow #12");
 
-        test(DfpMath.pow(pinf, factory.newDfp("1")),      
-             pinf, 
+        test(DfpMath.pow(pinf, factory.newDfp("1")),
+             pinf,
              0, "pow #13");
 
         test(DfpMath.pow(ninf, factory.newDfp("1")),
-             ninf, 
+             ninf,
              0, "pow #14");
 
         test(DfpMath.pow(qnan, factory.newDfp("1")),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #14.1");
 
         // exponent of NaN
         test(DfpMath.pow(factory.newDfp("0"), qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #15");
 
-        test(DfpMath.pow(factory.newDfp("-0"), qnan),      
-             qnan, 
+        test(DfpMath.pow(factory.newDfp("-0"), qnan),
+             qnan,
              DfpField.FLAG_INVALID, "pow #16");
 
         test(DfpMath.pow(factory.newDfp("2"), qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #17");
 
         test(DfpMath.pow(factory.newDfp("-2"), qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #18");
 
-        test(DfpMath.pow(pinf, qnan),      
-             qnan, 
+        test(DfpMath.pow(pinf, qnan),
+             qnan,
              DfpField.FLAG_INVALID, "pow #19");
 
         test(DfpMath.pow(ninf, qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #20");
 
         test(DfpMath.pow(qnan, qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #21");
 
         // radix of NaN
         test(DfpMath.pow(qnan, factory.newDfp("1")),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #22");
 
-        test(DfpMath.pow(qnan, factory.newDfp("-1")),      
+        test(DfpMath.pow(qnan, factory.newDfp("-1")),
              qnan,
              DfpField.FLAG_INVALID, "pow #23");
 
@@ -186,19 +186,19 @@ public class DfpMathTest {
              DfpField.FLAG_INVALID, "pow #24");
 
         test(DfpMath.pow(qnan, ninf),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #25");
 
         test(DfpMath.pow(qnan, qnan),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #26");
 
         // (x > 1) ^ pinf = pinf,    (x < -1) ^ pinf = pinf
         test(DfpMath.pow(factory.newDfp("2"), pinf),
-             pinf, 
+             pinf,
              0, "pow #27");
 
-        test(DfpMath.pow(factory.newDfp("-2"), pinf),      
+        test(DfpMath.pow(factory.newDfp("-2"), pinf),
              pinf,
              0, "pow #28");
 
@@ -207,15 +207,15 @@ public class DfpMathTest {
              0, "pow #29");
 
         test(DfpMath.pow(ninf, pinf),
-             pinf, 
+             pinf,
              0, "pow #30");
 
         // (x > 1) ^ ninf = +0,    (x < -1) ^ ninf = +0
         test(DfpMath.pow(factory.newDfp("2"), ninf),
-             factory.getZero(), 
+             factory.getZero(),
              0, "pow #31");
 
-        test(DfpMath.pow(factory.newDfp("-2"), ninf),      
+        test(DfpMath.pow(factory.newDfp("-2"), ninf),
              factory.getZero(),
              0, "pow #32");
 
@@ -224,41 +224,41 @@ public class DfpMathTest {
              0, "pow #33");
 
         test(DfpMath.pow(ninf, ninf),
-             factory.getZero(), 
+             factory.getZero(),
              0, "pow #34");
 
         // (-1 < x < 1) ^ pinf = 0
         test(DfpMath.pow(factory.newDfp("0.5"), pinf),
-             factory.getZero(), 
+             factory.getZero(),
              0, "pow #35");
 
-        test(DfpMath.pow(factory.newDfp("-0.5"), pinf),      
+        test(DfpMath.pow(factory.newDfp("-0.5"), pinf),
              factory.getZero(),
              0, "pow #36");
 
-        // (-1 < x < 1) ^ ninf = pinf 
+        // (-1 < x < 1) ^ ninf = pinf
         test(DfpMath.pow(factory.newDfp("0.5"), ninf),
-             pinf, 
+             pinf,
              0, "pow #37");
 
-        test(DfpMath.pow(factory.newDfp("-0.5"), ninf),      
+        test(DfpMath.pow(factory.newDfp("-0.5"), ninf),
              pinf,
              0, "pow #38");
 
         // +/- 1  ^ +/-inf  = NaN
         test(DfpMath.pow(factory.getOne(), pinf),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #39");
 
-        test(DfpMath.pow(factory.getOne(), ninf),      
+        test(DfpMath.pow(factory.getOne(), ninf),
              qnan,
              DfpField.FLAG_INVALID, "pow #40");
 
         test(DfpMath.pow(factory.newDfp("-1"), pinf),
-             qnan, 
+             qnan,
              DfpField.FLAG_INVALID, "pow #41");
 
-        test(DfpMath.pow(factory.getOne().negate(), ninf),      
+        test(DfpMath.pow(factory.getOne().negate(), ninf),
              qnan,
              DfpField.FLAG_INVALID, "pow #42");
 
@@ -352,7 +352,7 @@ public class DfpMathTest {
              factory.newDfp("-0"),
              DfpField.FLAG_INEXACT, "pow #62");
 
-        // pinf  ^ +anything   = pinf 
+        // pinf  ^ +anything   = pinf
         test(DfpMath.pow(pinf, factory.newDfp("3")),
              pinf,
              0, "pow #63");
@@ -369,7 +369,7 @@ public class DfpMathTest {
              pinf,
              0, "pow #66");
 
-        // pinf  ^ -anything   = +0 
+        // pinf  ^ -anything   = +0
 
         test(DfpMath.pow(pinf, factory.newDfp("-3")),
              factory.getZero(),
@@ -442,7 +442,7 @@ public class DfpMathTest {
              factory.newDfp("-0"),
              DfpField.FLAG_INEXACT, "pow #82");
 
-        // -anything ^ integer 
+        // -anything ^ integer
         test(DfpMath.pow(factory.newDfp("-2"), factory.newDfp("3")),
              factory.newDfp("-8"),
              DfpField.FLAG_INEXACT, "pow #83");
@@ -467,7 +467,7 @@ public class DfpMathTest {
 
         // Some fractional cases.
         test(DfpMath.pow(factory.newDfp("2"),factory.newDfp("1.5")),
-             factory.newDfp("2.8284271247461901"), 
+             factory.newDfp("2.8284271247461901"),
              DfpField.FLAG_INEXACT, "pow #88");
     }
 
@@ -543,10 +543,10 @@ public class DfpMathTest {
              DfpField.FLAG_INEXACT, "sin #17");
 
         test(DfpMath.sin(factory.newDfp("0.7")),
-             factory.newDfp("0.64421768723769105367"),  
+             factory.newDfp("0.64421768723769105367"),
              DfpField.FLAG_INEXACT, "sin #18");
 
-        test(DfpMath.sin(factory.newDfp("0.8")),        
+        test(DfpMath.sin(factory.newDfp("0.8")),
              factory.newDfp("0.71735609089952276163"),
              DfpField.FLAG_INEXACT, "sin #19");
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/BinomialDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/BinomialDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/BinomialDistributionTest.java
index d6cb294..3817f88 100644
--- a/src/test/java/org/apache/commons/math3/distribution/BinomialDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/BinomialDistributionTest.java
@@ -29,7 +29,7 @@ public class BinomialDistributionTest extends IntegerDistributionAbstractTest {
     public BinomialDistributionTest() {
         setTolerance(1e-12);
     }
-    
+
     // -------------- Implementations for abstract methods
     // -----------------------
 
@@ -45,7 +45,7 @@ public class BinomialDistributionTest extends IntegerDistributionAbstractTest {
         return new int[] { -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };
     }
 
-    /** 
+    /**
      * Creates the default probability density test expected values.
      * Reference values are from R, version 2.15.3.
      */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/ConstantRealDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/ConstantRealDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/ConstantRealDistributionTest.java
index 1f3edb7..2eea53c 100644
--- a/src/test/java/org/apache/commons/math3/distribution/ConstantRealDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/ConstantRealDistributionTest.java
@@ -58,7 +58,7 @@ public class ConstantRealDistributionTest extends RealDistributionAbstractTest {
     public double[] makeDensityTestValues() {
         return new double[] {0, 0, 1};
     }
-    
+
     /** Override default test, verifying that inverse cum is constant */
     @Override
     @Test
@@ -86,6 +86,6 @@ public class ConstantRealDistributionTest extends RealDistributionAbstractTest {
         for (int i = 0; i < 10; i++) {
             Assert.assertEquals(0, dist.sample(), 0);
         }
-        
+
     }
 }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
index 6948875..85aa5af 100644
--- a/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
@@ -168,7 +168,7 @@ public class EnumeratedIntegerDistributionTest {
         Assert.assertEquals(testDistribution.getNumericalVariance(),
                 sumOfSquares / n - FastMath.pow(sum / n, 2), 1e-2);
     }
-    
+
     @Test
     public void testCreateFromIntegers() {
         final int[] data = new int[] {0, 1, 1, 2, 2, 2};

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/EnumeratedRealDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/EnumeratedRealDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/EnumeratedRealDistributionTest.java
index 4103c0b..e9155fe 100644
--- a/src/test/java/org/apache/commons/math3/distribution/EnumeratedRealDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/EnumeratedRealDistributionTest.java
@@ -33,7 +33,7 @@ import org.junit.Test;
 
 /**
  * Test class for {@link EnumeratedRealDistribution}.
- * 
+ *
  */
 public class EnumeratedRealDistributionTest {
 
@@ -240,11 +240,11 @@ public class EnumeratedRealDistributionTest {
         //                      14  18 21     28 31 33
         //
         // sum  = 4+5+0+3+1+3 = 16
-        
+
         EnumeratedRealDistribution distribution = new EnumeratedRealDistribution(
                 new double[] { 14.0, 18.0, 21.0, 28.0, 31.0, 33.0 },
                 new double[] { 4.0 / 16.0, 5.0 / 16.0, 0.0 / 16.0, 3.0 / 16.0, 1.0 / 16.0, 3.0 / 16.0 });
-        
+
         assertEquals(14.0, distribution.inverseCumulativeProbability(0.0000), 0.0);
         assertEquals(14.0, distribution.inverseCumulativeProbability(0.2500), 0.0);
         assertEquals(33.0, distribution.inverseCumulativeProbability(1.0000), 0.0);
@@ -256,7 +256,7 @@ public class EnumeratedRealDistributionTest {
         assertEquals(18.0, distribution.inverseCumulativeProbability(0.5625), 0.0);
         assertEquals(28.0, distribution.inverseCumulativeProbability(0.7500), 0.0);
     }
-    
+
     @Test
     public void testCreateFromDoubles() {
         final double[] data = new double[] {0, 1, 1, 2, 2, 2};

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/GeometricDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/GeometricDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/GeometricDistributionTest.java
index 2795ead..4d88911 100644
--- a/src/test/java/org/apache/commons/math3/distribution/GeometricDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/GeometricDistributionTest.java
@@ -31,7 +31,7 @@ public class GeometricDistributionTest extends IntegerDistributionAbstractTest {
     public GeometricDistributionTest() {
         setTolerance(1e-12);
     }
-    
+
     // -------------- Implementations for abstract methods --------------------
 
     /** Creates the default discrete distribution instance to use in tests. */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/HypergeometricDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/HypergeometricDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/HypergeometricDistributionTest.java
index a5adbc2..465c3bf 100644
--- a/src/test/java/org/apache/commons/math3/distribution/HypergeometricDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/HypergeometricDistributionTest.java
@@ -39,7 +39,7 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
     public HypergeometricDistributionTest() {
         setTolerance(1e-12);
     }
-    
+
     //-------------- Implementations for abstract methods -----------------------
 
     /** Creates the default discrete distribution instance to use in tests. */
@@ -54,7 +54,7 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
         return new int[] {-1, 0, 1, 2, 3, 4, 5, 10};
     }
 
-    /** 
+    /**
      * Creates the default probability density test expected values
      * Reference values are from R, version 2.15.3.
      */
@@ -64,7 +64,7 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
             0.0992063492063, 0.00396825396825, 0d};
     }
 
-    /** 
+    /**
      * Creates the default probability log density test expected values
      * Reference values are from R, version 2.14.1.
      */
@@ -81,7 +81,7 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
         return makeDensityTestPoints();
     }
 
-    /** 
+    /**
      * Creates the default cumulative probability density test expected values
      * Reference values are from R, version 2.15.3.
      */
@@ -290,7 +290,7 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
         Assert.assertEquals(dist.getNumericalMean(), 55d * 200d / 3000d, tol);
         Assert.assertEquals(dist.getNumericalVariance(), ( 200d * 55d * (3000d - 200d) * (3000d - 55d) ) / ( (3000d * 3000d * 2999d) ), tol);
     }
-    
+
     @Test
     public void testMath644() {
         int N = 14761461;  // population
@@ -299,10 +299,10 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
 
         int k = 0;
         final HypergeometricDistribution dist = new HypergeometricDistribution(N, m, n);
-        
+
         Assert.assertTrue(Precision.compareTo(1.0, dist.upperCumulativeProbability(k), 1) == 0);
         Assert.assertTrue(Precision.compareTo(dist.cumulativeProbability(k), 0.0, 1) > 0);
-        
+
         // another way to calculate the upper cumulative probability
         double upper = 1.0 - dist.cumulativeProbability(k) + dist.probability(k);
         Assert.assertTrue(Precision.compareTo(1.0, upper, 1) == 0);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistributionTest.java
index 53f4ff8..2ff4bd5 100644
--- a/src/test/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/KolmogorovSmirnovDistributionTest.java
@@ -26,18 +26,18 @@ import org.junit.Test;
  */
 @Deprecated
 public class KolmogorovSmirnovDistributionTest {
-    
+
     private static final double TOLERANCE = 10e-10;
 
     @Test
     public void testCumulativeDensityFunction() {
-        
+
         KolmogorovSmirnovDistribution dist;
-        
+
         /* The code below is generated using the R-script located in
          * /src/test/R/KolmogorovSmirnovDistributionTestCases.R
          */
-        
+
         /* R version 2.11.1 (2010-05-31) */
 
 

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/LevyDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/LevyDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/LevyDistributionTest.java
index 3c32b9e..55c92c0 100644
--- a/src/test/java/org/apache/commons/math3/distribution/LevyDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/LevyDistributionTest.java
@@ -68,7 +68,7 @@ public class LevyDistributionTest extends RealDistributionAbstractTest {
         };
     }
 
-    /** 
+    /**
      * Creates the default logarithmic probability density test expected values.
      * Reference values are from R, version 2.14.1.
      */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/MultivariateNormalDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/MultivariateNormalDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/MultivariateNormalDistributionTest.java
index f044cbd..2bd149d 100644
--- a/src/test/java/org/apache/commons/math3/distribution/MultivariateNormalDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/MultivariateNormalDistributionTest.java
@@ -137,7 +137,7 @@ public class MultivariateNormalDistributionTest {
     public void testUnivariateDistribution() {
         final double[] mu = { -1.5 };
         final double[][] sigma = { { 1 } };
- 
+
         final MultivariateNormalDistribution multi = new MultivariateNormalDistribution(mu, sigma);
 
         final NormalDistribution uni = new NormalDistribution(mu[0], sigma[0][0]);

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/PoissonDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/PoissonDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/PoissonDistributionTest.java
index 63518d2..736b84a 100644
--- a/src/test/java/org/apache/commons/math3/distribution/PoissonDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/PoissonDistributionTest.java
@@ -66,7 +66,7 @@ public class PoissonDistributionTest extends IntegerDistributionAbstractTest {
                 0.156293451851d, 0.00529247667642d, 8.27746364655e-09};
     }
 
-    /** 
+    /**
      * Creates the default logarithmic probability density test expected values.
      * Reference values are from R, version 2.14.1.
      */

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/RealDistributionAbstractTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/RealDistributionAbstractTest.java b/src/test/java/org/apache/commons/math3/distribution/RealDistributionAbstractTest.java
index 4fa94a9..4ca1fb8 100644
--- a/src/test/java/org/apache/commons/math3/distribution/RealDistributionAbstractTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/RealDistributionAbstractTest.java
@@ -325,7 +325,7 @@ public abstract class RealDistributionAbstractTest {
             // expected
         }
     }
-    
+
     /**
      * Test sampling
      */
@@ -342,7 +342,7 @@ public abstract class RealDistributionAbstractTest {
         }
         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
     }
-    
+
     /**
      * Verify that density integrals match the distribution.
      * The (filtered, sorted) cumulativeTestPoints array is used to source
@@ -381,7 +381,7 @@ public abstract class RealDistributionAbstractTest {
                                     integrationTestPoints.get(i)), tol);
         }
     }
-    
+
     /**
      * Verify that isSupportLowerBoundInclusvie returns true iff the lower bound
      * is finite and density is non-NaN, non-infinite there.
@@ -395,9 +395,9 @@ public abstract class RealDistributionAbstractTest {
                 !Double.isInfinite(lowerBound) && !Double.isNaN(result) &&
                 !Double.isInfinite(result),
                 distribution.isSupportLowerBoundInclusive());
-         
+
     }
-    
+
     /**
      * Verify that isSupportUpperBoundInclusvie returns true iff the upper bound
      * is finite and density is non-NaN, non-infinite there.
@@ -411,7 +411,7 @@ public abstract class RealDistributionAbstractTest {
                 !Double.isInfinite(upperBound) && !Double.isNaN(result) &&
                 !Double.isInfinite(result),
                 distribution.isSupportUpperBoundInclusive());
-         
+
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/TDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/TDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/TDistributionTest.java
index 2f50b70..c186f33 100644
--- a/src/test/java/org/apache/commons/math3/distribution/TDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/TDistributionTest.java
@@ -100,7 +100,7 @@ public class TDistributionTest extends RealDistributionAbstractTest {
                 new double[] {Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY});
         verifyInverseCumulativeProbabilities();
     }
-    
+
     @Test
     public void testCumulativeProbablilityExtremes() {
         TDistribution dist;
@@ -110,7 +110,7 @@ public class TDistributionTest extends RealDistributionAbstractTest {
                 dist.cumulativeProbability(Double.POSITIVE_INFINITY), Double.MIN_VALUE);
             Assert.assertEquals(0,
                 dist.cumulativeProbability(Double.NEGATIVE_INFINITY), Double.MIN_VALUE);
-        }   
+        }
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/UniformRealDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/UniformRealDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/UniformRealDistributionTest.java
index 29f6a85..7bf3f4b 100644
--- a/src/test/java/org/apache/commons/math3/distribution/UniformRealDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/UniformRealDistributionTest.java
@@ -110,15 +110,15 @@ public class UniformRealDistributionTest extends RealDistributionAbstractTest {
         Assert.assertEquals(dist.getNumericalMean(), 0.375, 0);
         Assert.assertEquals(dist.getNumericalVariance(), 0.2552083333333333, 0);
     }
-    
-    /** 
-     * Check accuracy of analytical inverse CDF. Fails if a solver is used 
-     * with the default accuracy. 
+
+    /**
+     * Check accuracy of analytical inverse CDF. Fails if a solver is used
+     * with the default accuracy.
      */
     @Test
     public void testInverseCumulativeDistribution() {
         UniformRealDistribution dist = new UniformRealDistribution(0, 1e-9);
-        
+
         Assert.assertEquals(2.5e-10, dist.inverseCumulativeProbability(0.25), 0);
     }
 }

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximizationTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximizationTest.java b/src/test/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximizationTest.java
index 75328fc..cfb2619 100644
--- a/src/test/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximizationTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/fitting/MultivariateNormalMixtureExpectationMaximizationTest.java
@@ -180,10 +180,10 @@ public class MultivariateNormalMixtureExpectationMaximizationTest {
                 .getComponents()) {
             Assert.assertEquals(correctWeights[i], component.getFirst(),
                     Math.ulp(1d));
-            
+
             final double[] means = component.getValue().getMeans();
             Assert.assertTrue(Arrays.equals(correctMeans[i], means));
-            
+
             final RealMatrix covMat = component.getValue().getCovariances();
             Assert.assertEquals(correctCovMats[i], covMat);
             i++;
@@ -197,12 +197,12 @@ public class MultivariateNormalMixtureExpectationMaximizationTest {
         final double[][] data = getTestSamples();
         final double correctLogLikelihood = -4.292431006791994;
         final double[] correctWeights = new double[] { 0.2962324189652912, 0.7037675810347089 };
-        
+
         final double[][] correctMeans = new double[][]{
             {-1.4213112715121132, 1.6924690505757753},
             {4.213612224374709, 7.975621325853645}
         };
-        
+
         final RealMatrix[] correctCovMats = new Array2DRowRealMatrix[2];
         correctCovMats[0] = new Array2DRowRealMatrix(new double[][] {
             { 1.739356907285747, -0.5867644251487614 },
@@ -211,7 +211,7 @@ public class MultivariateNormalMixtureExpectationMaximizationTest {
         correctCovMats[1] = new Array2DRowRealMatrix(new double[][] {
             { 4.245384898007161, 2.5797798966382155 },
             { 2.5797798966382155, 3.9200272522448367 } });
-        
+
         final MultivariateNormalDistribution[] correctMVNs = new MultivariateNormalDistribution[2];
         correctMVNs[0] = new MultivariateNormalDistribution(correctMeans[0], correctCovMats[0].getData());
         correctMVNs[1] = new MultivariateNormalDistribution(correctMeans[1], correctCovMats[1].getData());

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/DimensionMismatchExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/DimensionMismatchExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/DimensionMismatchExceptionTest.java
index 3ac51e9..4073bfe 100644
--- a/src/test/java/org/apache/commons/math3/exception/DimensionMismatchExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/DimensionMismatchExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link DimensionMismatchException}.
- * 
+ *
  */
 public class DimensionMismatchExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/MaxCountExceededExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/MaxCountExceededExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/MaxCountExceededExceptionTest.java
index ba0de1e..1a96d35 100644
--- a/src/test/java/org/apache/commons/math3/exception/MaxCountExceededExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/MaxCountExceededExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link MaxCountExceededException}.
- * 
+ *
  */
 public class MaxCountExceededExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/NonMonotonicSequenceExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/NonMonotonicSequenceExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/NonMonotonicSequenceExceptionTest.java
index 42c5460..08981dc 100644
--- a/src/test/java/org/apache/commons/math3/exception/NonMonotonicSequenceExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/NonMonotonicSequenceExceptionTest.java
@@ -23,7 +23,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link NonMonotonicSequenceException}.
- * 
+ *
  */
 public class NonMonotonicSequenceExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/NotPositiveExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/NotPositiveExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/NotPositiveExceptionTest.java
index 6e4106c..d2fe973 100644
--- a/src/test/java/org/apache/commons/math3/exception/NotPositiveExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/NotPositiveExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link NotPositiveException}.
- * 
+ *
  */
 public class NotPositiveExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/NotStrictlyPositiveExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/NotStrictlyPositiveExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/NotStrictlyPositiveExceptionTest.java
index e313b15..d9c7bec 100644
--- a/src/test/java/org/apache/commons/math3/exception/NotStrictlyPositiveExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/NotStrictlyPositiveExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link NotStrictlyPositiveException}.
- * 
+ *
  */
 public class NotStrictlyPositiveExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/NumberIsTooLargeExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/NumberIsTooLargeExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/NumberIsTooLargeExceptionTest.java
index 5ebe49d..15c8820 100644
--- a/src/test/java/org/apache/commons/math3/exception/NumberIsTooLargeExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/NumberIsTooLargeExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link NumberIsTooLargeException}.
- * 
+ *
  */
 public class NumberIsTooLargeExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/NumberIsTooSmallExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/NumberIsTooSmallExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/NumberIsTooSmallExceptionTest.java
index b70032f..5e2295f 100644
--- a/src/test/java/org/apache/commons/math3/exception/NumberIsTooSmallExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/NumberIsTooSmallExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link NumberIsTooSmallException}.
- * 
+ *
  */
 public class NumberIsTooSmallExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/OutOfRangeExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/OutOfRangeExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/OutOfRangeExceptionTest.java
index deda254..21954e2 100644
--- a/src/test/java/org/apache/commons/math3/exception/OutOfRangeExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/OutOfRangeExceptionTest.java
@@ -21,7 +21,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link OutOfRangeException}.
- * 
+ *
  */
 public class OutOfRangeExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/TooManyEvaluationsExceptionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/TooManyEvaluationsExceptionTest.java b/src/test/java/org/apache/commons/math3/exception/TooManyEvaluationsExceptionTest.java
index c21775e..596c469 100644
--- a/src/test/java/org/apache/commons/math3/exception/TooManyEvaluationsExceptionTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/TooManyEvaluationsExceptionTest.java
@@ -23,7 +23,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link TooManyEvaluationsException}.
- * 
+ *
  */
 public class TooManyEvaluationsExceptionTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/util/ArgUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/util/ArgUtilsTest.java b/src/test/java/org/apache/commons/math3/exception/util/ArgUtilsTest.java
index d07708f..95dce1d 100644
--- a/src/test/java/org/apache/commons/math3/exception/util/ArgUtilsTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/util/ArgUtilsTest.java
@@ -24,7 +24,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link ArgUtils}.
- * 
+ *
  */
 public class ArgUtilsTest {
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/ff35e6f2/src/test/java/org/apache/commons/math3/exception/util/ExceptionContextTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/exception/util/ExceptionContextTest.java b/src/test/java/org/apache/commons/math3/exception/util/ExceptionContextTest.java
index 91fe804..17a2163 100644
--- a/src/test/java/org/apache/commons/math3/exception/util/ExceptionContextTest.java
+++ b/src/test/java/org/apache/commons/math3/exception/util/ExceptionContextTest.java
@@ -29,7 +29,7 @@ import org.junit.Test;
 
 /**
  * Test for {@link ExceptionContext}.
- * 
+ *
  */
 public class ExceptionContextTest {
     @Test


Mime
View raw message