I am very sorry, but I realized this problem while reviewing the algorithm these past two days. The current ReservoirItemsUnion implementation is missing some features compared to the Java reference implementation, and there are also some algorithmic simplification issues. Even though it passed the tests at the time, the tests seem to be incomplete.
I want to keep this issue open until I am certain that the ReservoirItemsUnion functionality is correctly implemented.
Again, I apologize for the inconvenience.
Remaining Work
Serialization
Update from bytes
Utility
Already Fixed
I am very sorry, but I realized this problem while reviewing the algorithm these past two days. The current
ReservoirItemsUnionimplementation is missing some features compared to the Java reference implementation, and there are also some algorithmic simplification issues. Even though it passed the tests at the time, the tests seem to be incomplete.I want to keep this issue open until I am certain that the
ReservoirItemsUnionfunctionality is correctly implemented.Again, I apologize for the inconvenience.
Remaining Work
Serialization
toByteArray(ArrayOfItemsSerDe)NewReservoirItemsUnionFromSlice(data, serde)→ Java:heapify(MemorySegment, ArrayOfItemsSerDe)Update from bytes
UpdateFromSlice(data, serde)→ Java:update(MemorySegment, ArrayOfItemsSerDe)Utility
toString()Already Fixed
downsampledCopy