commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@apache.org
Subject cvs commit: jakarta-commons-sandbox/math/src/test/org/apache/commons/math RandomDataTest.java
Date Thu, 22 May 2003 15:31:38 GMT
tobrien     2003/05/22 08:31:38

  Modified:    math/src/test/org/apache/commons/math RandomDataTest.java
  Log:
  RandomDataTest.testNextGaussian() was using Univarite.getN().  Added
  an explicit cast from int to double.  Test now succeeds.
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-commons-sandbox/math/src/test/org/apache/commons/math/RandomDataTest.java
  
  Index: RandomDataTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/src/test/org/apache/commons/math/RandomDataTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RandomDataTest.java	18 May 2003 00:58:52 -0000	1.1
  +++ RandomDataTest.java	22 May 2003 15:31:38 -0000	1.2
  @@ -406,7 +406,7 @@
           }
           double xbar = u.getMean();
           double s = u.getStandardDeviation();
  -        double n = u.getN(); 
  +        double n = (double) u.getN(); 
           /* t-test at .001-level TODO: replace with externalized t-test, with
            * test statistic defined in TestStatistic
            */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message