thomasrebele commented on issue #700:
URL:
https://github.com/apache/datasketches-java/issues/700#issuecomment-3647377762
I've created a small demo of my issue. Consider the following code:
```
@Test
public void missingInterpolationDemo() {
KllFloatsSketch kll = KllFloatsSketch.newHeapInstance();
for(int i=0; i<100_000; i++) {
kll.update((float)i);
}
for(int i=1000; i<2000; i++) {
System.out.println(kll.getSortedView().getRank((float)i, EXCLUSIVE));
}
}
```
I need an output similar to the following
```
0.01
0.01001
0.01002
0.01003
...
```
I.e., every entry should be 0.00001 bigger than the previous entry (modulo
some errors due to the randomness of KLL).
The `getRank(...)` function is not interpolated, so instead I get an output
```
0.01024
0.01024
0.01024
... (0.01024 occurs 139 times in total)
0.0128
0.0128
0.0128
... (0.0128 occurs 255 times in total)
0.01536
0.01536
0.01536
256 0.01536
256 0.01792
94 0.02048
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]