Open leerho opened 1 month ago
I would suggest to test not by asserting a particular number, but by measuring the actual peak size. https://github.com/apache/datasketches-cpp/blob/76edd74f5db286b672c170a8ded4ce39b3a8800f/theta/test/theta_sketch_test.cpp#L561
good idea.
The function in /theta/Sketch::getCompactSketchMaxBytes(lgNomEntries) is computed incorrectly due to a misplaced right-parentheses. Ironically the test method that tests this function made the same mistake!
This function is also referenced by /theta/Sketches/ with the same name.
The Javadocs in both places are also incorrect.