Skip to content

Commit

Permalink
MAHOUT-1411: Random test failures from TDigestTest
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/mahout/trunk@1562146 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
smarthi committed Jan 28, 2014
1 parent 027a608 commit d520367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Mahout Change Log

Release 0.9 - unreleased

MAHOUT-1411: Random test failures from TDigestTest (smarthi)

MAHOUT-1410: clusteredPoints do not contain a vector id (smarthi, Andrew Musselman)

MAHOUT-1409: MatrixVectorView has index check error (tdunning)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,11 @@ private void runTest(AbstractContinousDistribution gen, double sizeGuide, double
double q = qValues[i];
double estimate = dist.cdf(x);
errorDump.printf("%s\t%s\t%.8g\t%.8f\t%.8f\n", tag, "cdf", x, q, estimate - q);
assertEquals(q, estimate, 0.005);
assertEquals(q, estimate, 0.006);

estimate = cdf(dist.quantile(q), data);
errorDump.printf("%s\t%s\t%.8g\t%.8f\t%.8f\n", tag, "quantile", x, q, estimate - q);
assertEquals(q, estimate, 0.005);
assertEquals(q, estimate, 0.006);
}

if (recordAllData) {
Expand Down

0 comments on commit d520367

Please sign in to comment.