Changed equality test for failing test. The previous change was simply wrong.
JIRA: MATH-588 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1240822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c0aa57b1be
commit
7282739422
|
@ -210,9 +210,9 @@ public abstract class UnivariateStatisticAbstractTest {
|
|||
// Compare result of weighted statistic computation with direct computation
|
||||
// on array of repeated values
|
||||
WeightedEvaluation weightedStatistic = (WeightedEvaluation) statistic;
|
||||
TestUtils.assertEquals(statistic.evaluate(repeatedValues),
|
||||
TestUtils.assertRelativelyEquals(statistic.evaluate(repeatedValues),
|
||||
weightedStatistic.evaluate(values, weights, 0, values.length),
|
||||
10E-14);
|
||||
10E-12);
|
||||
|
||||
// Check consistency of weighted evaluation methods
|
||||
Assert.assertEquals(weightedStatistic.evaluate(values, weights, 0, values.length),
|
||||
|
|
Loading…
Reference in New Issue