commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/math/src/test/org/apache/commons/math/stat/descriptive/moment VarianceTest.java
Date Mon, 11 Oct 2004 04:54:09 GMT
psteitz     2004/10/10 21:54:09

  Modified:    math/src/test/org/apache/commons/math/stat/descriptive/moment
                        VarianceTest.java
  Log:
  Improved coverage in population variance test.
  
  Revision  Changes    Path
  1.3       +5 -1      jakarta-commons/math/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java
  
  Index: VarianceTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/stat/descriptive/moment/VarianceTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- VarianceTest.java	10 Oct 2004 20:40:52 -0000	1.2
  +++ VarianceTest.java	11 Oct 2004 04:54:09 -0000	1.3
  @@ -82,6 +82,10 @@
           assertEquals(populationVariance(values), v1.getResult(), 1E-14);
           v1 = new Variance(false, m);
           assertEquals(populationVariance(values), v1.getResult(), 1E-14);     
  +        v1 = new Variance(false);
  +        assertEquals(populationVariance(values), v1.evaluate(values), 1E-14);
  +        v1.incrementAll(values);
  +        assertEquals(populationVariance(values), v1.getResult(), 1E-14);     
       }
       
       /**
  
  
  

---------------------------------------------------------------------
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