mirror of
https://github.com/apache/commons-math.git
synced 2025-02-07 18:49:40 +00:00
Corrected observed/expected value label error.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06ddf2d772
commit
20b4584303
@ -233,8 +233,8 @@ public final class EmpiricalDistributionTest {
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
stats.addValue(empiricalDistribution.getNextValue());
|
||||
}
|
||||
Assert.assertEquals("mean", stats.getMean(),5.069831575018909,tolerance);
|
||||
Assert.assertEquals("std dev", stats.getStandardDeviation(),1.0173699343977738,tolerance);
|
||||
Assert.assertEquals("mean", 5.069831575018909, stats.getMean(),tolerance);
|
||||
Assert.assertEquals("std dev", 1.0173699343977738, stats.getStandardDeviation(),tolerance);
|
||||
}
|
||||
|
||||
private void tstDoubleGen(double tolerance)throws Exception {
|
||||
@ -243,7 +243,7 @@ public final class EmpiricalDistributionTest {
|
||||
for (int i = 1; i < 1000; i++) {
|
||||
stats.addValue(empiricalDistribution2.getNextValue());
|
||||
}
|
||||
Assert.assertEquals("mean", stats.getMean(),5.069831575018909,tolerance);
|
||||
Assert.assertEquals("std dev", stats.getStandardDeviation(),1.0173699343977738,tolerance);
|
||||
Assert.assertEquals("mean", 5.069831575018909, stats.getMean(), tolerance);
|
||||
Assert.assertEquals("std dev", 1.0173699343977738, stats.getStandardDeviation(), tolerance);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user