commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1200393 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math: linear/ optimization/direct/ optimization/general/ random/
Date Thu, 10 Nov 2011 15:52:31 GMT
Author: sebb
Date: Thu Nov 10 15:52:30 2011
New Revision: 1200393

URL: http://svn.apache.org/viewvc?rev=1200393&view=rev
Log:
Unused

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizerTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java?rev=1200393&r1=1200392&r2=1200393&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
Thu Nov 10 15:52:30 2011
@@ -952,9 +952,7 @@ public class SparseRealVectorTest {
         v1.setEntry(1, 3);
         v1.setEntry(2, 0);
 
-        RealVector w;
-
-        w = u.ebeMultiply(v1);
-        w = u.ebeDivide(v1);
+        u.ebeMultiply(v1);
+        u.ebeDivide(v1);
     }
 }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizerTest.java?rev=1200393&r1=1200392&r2=1200393&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizerTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizerTest.java
Thu Nov 10 15:52:30 2011
@@ -58,7 +58,6 @@ public class BOBYQAOptimizerTest {
     @Test(expected=NumberIsTooSmallException.class)
     public void testProblemDimensionTooSmall() {
         double[] startPoint = point(1, 0.5);
-        double[][] boundaries = null;
         doTest(new Rosen(), startPoint, null,
                GoalType.MINIMIZE,
                1e-13, 1e-6, 2000, null);
@@ -429,7 +428,7 @@ public class BOBYQAOptimizerTest {
     }
 
     private static class DiffPow implements MultivariateRealFunction {
-        private int fcount = 0;
+//        private int fcount = 0;
         public double value(double[] x) {
             double f = 0;
             for (int i = 0; i < x.length; ++i)

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java?rev=1200393&r1=1200392&r2=1200393&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java
Thu Nov 10 15:52:30 2011
@@ -211,13 +211,12 @@ public class LevenbergMarquardtOptimizer
         }, new double[] { 1, 1, 1 });
 
         LevenbergMarquardtOptimizer optimizer = new LevenbergMarquardtOptimizer();
-        VectorialPointValuePair optimum
-            = optimizer.optimize(100, problem, problem.target,
-                                 new double[] { 1, 1, 1 },
-                                 new double[] { 0, 0, 0 });
+        optimizer.optimize(100, problem, problem.target,
+                             new double[] { 1, 1, 1 },
+                             new double[] { 0, 0, 0 });
         Assert.assertTrue(FastMath.sqrt(problem.target.length) * optimizer.getRMS() >
0.6);
 
-        final double[][] m = optimizer.getCovariances();
+        optimizer.getCovariances();
     }
 
     @Test

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java?rev=1200393&r1=1200392&r2=1200393&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/StableRandomGeneratorTest.java
Thu Nov 10 15:52:30 2011
@@ -94,7 +94,7 @@ public class StableRandomGeneratorTest e
      */
     public void testAlphaRangeBelowZero() {
         try {
-            StableRandomGenerator generator = new StableRandomGenerator(rg,
+            new StableRandomGenerator(rg,
                     -1.0, 0.0);
         } catch (OutOfRangeException e) {
             assertEquals(-1.0, e.getArgument());
@@ -103,7 +103,7 @@ public class StableRandomGeneratorTest e
 
     public void testAlphaRangeAboveTwo() {
         try {
-            StableRandomGenerator generator = new StableRandomGenerator(rg,
+            new StableRandomGenerator(rg,
                     3.0, 0.0);
         } catch (OutOfRangeException e) {
             assertEquals(3.0, e.getArgument());
@@ -112,7 +112,7 @@ public class StableRandomGeneratorTest e
 
     public void testBetaRangeBelowMinusOne() {
         try {
-            StableRandomGenerator generator = new StableRandomGenerator(rg,
+            new StableRandomGenerator(rg,
                     1.0, -2.0);
         } catch (OutOfRangeException e) {
             assertEquals(-2.0, e.getArgument());
@@ -121,7 +121,7 @@ public class StableRandomGeneratorTest e
 
     public void testBetaRangeAboveOne() {
         try {
-            StableRandomGenerator generator = new StableRandomGenerator(rg,
+            new StableRandomGenerator(rg,
                     1.0, 2.0);
         } catch (OutOfRangeException e) {
             assertEquals(2.0, e.getArgument());



Mime
View raw message