tisonkun opened a new pull request, #401: URL: https://github.com/apache/datasketches-rust/pull/401
Add `UddSketch` behind the `uddsketch` feature for reproducible quantile estimation over finite `f64` streams, based on [UDDSketch](https://arxiv.org/abs/2004.08604) and its [mergeability analysis](https://arxiv.org/abs/2101.06758). - **Deterministic mapping and uniform collapse**: Positive and negative magnitudes are mapped with a 17-anchor Q52 fixed-point binary logarithm over basic IEEE-754 arithmetic, keeping exact zeros in a dedicated counter and tracking exact stream extrema. When occupied nonzero buckets exceed `max_buckets`, all buckets collapse uniformly two-by-two via signed integer shifts, preserving identical states, serialized bytes, and quantile estimates across input permutations, partitions, and merge trees. - **Storage and queries**: Retained `(key, count)` buckets stay sorted with a monotonic tail fast path, a lazy open-addressed hash index above 32 buckets, and in-place backward merging. Queries target the lower discrete quantile `floor(q * (total_weight - 1))`, returning exact extrema at `0.0` and `1.0`, `0.0` in the zero bucket, and harmonic-mean bucket representatives bounded by `alpha()`. - **Serialization and benchmarks**: Add `Family::UDDSKETCH` (`24`) binary serialization with full header, budget, ordering, weight, and extrema validation, `datagen` snapshot generation (`uddsketch_n{0..1000000}_rust.sk`), integration and corruption tests, and fixed-workload benchmarks. -- 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]
