Author: luc
Date: Thu Jan 10 05:57:14 2008
New Revision: 610798
URL: http://svn.apache.org/viewvc?rev=610798&view=rev
Log:
replaced calls to deprecated SummaryStatistics.newInstance() method
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java?rev=610798&r1=610797&r2=610798&view=diff
==============================================================================
---
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
(original)
+++
commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
Thu Jan 10 05:57:14 2008
@@ -24,7 +24,6 @@
import java.io.InputStreamReader;
import org.apache.commons.math.stat.descriptive.SummaryStatistics;
-import org.apache.commons.math.stat.descriptive.SummaryStatisticsImpl;
import org.apache.commons.math.stat.descriptive.DescriptiveStatistics;
/**
@@ -65,7 +64,7 @@
* and use single pass algorithms to compute statistics
*/
public void testSummaryStatistics() throws Exception {
- SummaryStatistics u =
SummaryStatistics.newInstance(SummaryStatisticsImpl.class);
+ SummaryStatistics u = new SummaryStatistics();
loadStats("data/PiDigits.txt", u);
assertEquals("PiDigits: std", std, u.getStandardDeviation(), 1E-13);
assertEquals("PiDigits: mean", mean, u.getMean(), 1E-13);
@@ -93,7 +92,7 @@
*/
public void testDescriptiveStatistics() throws Exception {
- DescriptiveStatistics u = DescriptiveStatistics.newInstance();
+ DescriptiveStatistics u = new DescriptiveStatistics();
loadStats("data/PiDigits.txt", u);
assertEquals("PiDigits: std", std, u.getStandardDeviation(), 1E-14);