commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1074202 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java
Date Thu, 24 Feb 2011 16:35:36 GMT
Author: erans
Date: Thu Feb 24 16:35:36 2011
New Revision: 1074202

URL: http://svn.apache.org/viewvc?rev=1074202&view=rev
Log:
Wrong function.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java?rev=1074202&r1=1074201&r2=1074202&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/function/GaussianTest.java
Thu Feb 24 16:35:36 2011
@@ -71,10 +71,10 @@ public class GaussianTest {
 
         Assert.assertEquals(0, dfdx.value(Double.NEGATIVE_INFINITY), 0);
         Assert.assertEquals(0, dfdx.value(-Double.MAX_VALUE), 0);
-        Assert.assertEquals(0, f.value(-1e50), 0);
-        Assert.assertEquals(0, f.value(-1e2), 0);
-        Assert.assertEquals(0, f.value(1e2), 0);
-        Assert.assertEquals(0, f.value(1e50), 0);
+        Assert.assertEquals(0, dfdx.value(-1e50), 0);
+        Assert.assertEquals(0, dfdx.value(-1e2), 0);
+        Assert.assertEquals(0, dfdx.value(1e2), 0);
+        Assert.assertEquals(0, dfdx.value(1e50), 0);
         Assert.assertEquals(0, dfdx.value(Double.MAX_VALUE), 0);
         Assert.assertEquals(0, dfdx.value(Double.POSITIVE_INFINITY), 0);        
     }



Mime
View raw message