t-digest: Index out of bounds in MergingDigest
Hi,
The following variant of the testSmallCountQuantile test results in a java.lang.ArrayIndexOutOfBoundsException error. Dropping the last element will have the test pass.
@Test
public void testSmallCountQuantile2() {
List<Double> data = Lists.newArrayList(3.0, 3.1, 3.0, 3.0,
3.0, 3.0, 3.0, 3.0,
3.0, 3.0, 3.0, 3.0,
3.5, 3.3, 3.4, 3.5,
3.5, 4.0, 2.95, 3.18,
180.0, 3.0, 3.0, 3.0
, 3.0
);
TDigest td = new MergingDigest(1);
for (Double datum : data) {
td.add(datum);
}
}
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 27 (13 by maintainers)
Well, two ways. Honestly I think this library has been superceded by apache datasketches. What we did before I started work with datasketches was I patched the library and released it on Clojars under a different name.
If you are doing work in this area of course I have to recommend our data processing system 😃.
@cnuernber I would like to take you up on your offer.
Can you look at the current main branch plus live issues and identify what you would say are blockers for a point release?
If none and if this sounds like consensus, I will start the process with what we have.