commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1152585 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java
Date Sun, 31 Jul 2011 15:57:20 GMT
Author: psteitz
Date: Sun Jul 31 15:57:20 2011
New Revision: 1152585

URL: http://svn.apache.org/viewvc?rev=1152585&view=rev
Log:
Corrected observed/expected value label error.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java?rev=1152585&r1=1152584&r2=1152585&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/EmpiricalDistributionTest.java
Sun Jul 31 15:57:20 2011
@@ -233,8 +233,8 @@ public final class EmpiricalDistribution
         for (int i = 1; i < 1000; i++) {
             stats.addValue(empiricalDistribution.getNextValue());
         }
-        Assert.assertEquals("mean", stats.getMean(),5.069831575018909,tolerance);
-        Assert.assertEquals("std dev", stats.getStandardDeviation(),1.0173699343977738,tolerance);
+        Assert.assertEquals("mean", 5.069831575018909, stats.getMean(),tolerance);
+        Assert.assertEquals("std dev", 1.0173699343977738, stats.getStandardDeviation(),tolerance);
     }
 
     private void tstDoubleGen(double tolerance)throws Exception {
@@ -243,7 +243,7 @@ public final class EmpiricalDistribution
         for (int i = 1; i < 1000; i++) {
             stats.addValue(empiricalDistribution2.getNextValue());
         }
-        Assert.assertEquals("mean", stats.getMean(),5.069831575018909,tolerance);
-        Assert.assertEquals("std dev", stats.getStandardDeviation(),1.0173699343977738,tolerance);
+        Assert.assertEquals("mean", 5.069831575018909, stats.getMean(), tolerance);
+        Assert.assertEquals("std dev", 1.0173699343977738, stats.getStandardDeviation(),
tolerance);
     }
 }



Mime
View raw message