replaced calls to deprecated SummaryStatistics.newInstance() method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@610789 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc04cc5690
commit
6a366840f5
|
@ -200,7 +200,7 @@ public final class EmpiricalDistributionTest extends RetryTestCase {
|
|||
|
||||
private void tstGen(double tolerance)throws Exception {
|
||||
empiricalDistribution.load(url);
|
||||
SummaryStatistics stats = SummaryStatistics.newInstance();
|
||||
SummaryStatistics stats = new SummaryStatistics();
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
stats.addValue(empiricalDistribution.getNextValue());
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ public final class EmpiricalDistributionTest extends RetryTestCase {
|
|||
|
||||
private void tstDoubleGen(double tolerance)throws Exception {
|
||||
empiricalDistribution2.load(dataArray);
|
||||
SummaryStatistics stats = SummaryStatistics.newInstance();
|
||||
SummaryStatistics stats = new SummaryStatistics();
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
stats.addValue(empiricalDistribution2.getNextValue());
|
||||
}
|
||||
|
|
|
@ -381,7 +381,7 @@ public class RandomDataTest extends RetryTestCase {
|
|||
} catch (IllegalArgumentException ex) {
|
||||
;
|
||||
}
|
||||
SummaryStatistics u = SummaryStatistics.newInstance();
|
||||
SummaryStatistics u = new SummaryStatistics();
|
||||
for (int i = 0; i<largeSampleSize; i++) {
|
||||
u.addValue(randomData.nextGaussian(0,1));
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ public final class ValueServerTest extends RetryTestCase {
|
|||
vs.computeDistribution();
|
||||
assertTrue("empirical distribution property",
|
||||
vs.getEmpiricalDistribution() != null);
|
||||
SummaryStatistics stats = SummaryStatistics.newInstance();
|
||||
SummaryStatistics stats = new SummaryStatistics();
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
next = vs.getNext();
|
||||
stats.addValue(next);
|
||||
|
@ -76,7 +76,7 @@ public final class ValueServerTest extends RetryTestCase {
|
|||
tolerance);
|
||||
|
||||
vs.computeDistribution(500);
|
||||
stats = SummaryStatistics.newInstance();
|
||||
stats = new SummaryStatistics();
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
next = vs.getNext();
|
||||
stats.addValue(next);
|
||||
|
|
Loading…
Reference in New Issue