sketch_oxide 0.1.6

State-of-the-art DataSketches library (2025) - UltraLogLog, Binary Fuse Filters, DDSketch, and more
Documentation
//! Cardinality estimation algorithms
//!
//! This module provides probabilistic algorithms for counting unique items
//! in large data streams.
//!
//! # Algorithm Comparison
//!
//! | Algorithm | Space Efficiency | Accuracy | Use Case |
//! |-----------|------------------|----------|----------|
//! | UltraLogLog | Best (28% better than HLL) | ~1.04/√m | New applications |
//! | HyperLogLog | Good | ~1.04/√m | Ecosystem interop (Redis, Druid) |
//! | CpcSketch | Better than HLL | ~1/√m | Apache DataSketches compat |
//! | ThetaSketch | Good | ~1/√k | Set operations (union, intersection) |

mod cpc;
mod hyperloglog;
mod qsketch;
mod theta;
mod ultraloglog;

pub use cpc::CpcSketch;
pub use hyperloglog::HyperLogLog;
pub use qsketch::QSketch;
pub use theta::ThetaSketch;
pub use ultraloglog::UltraLogLog;

#[cfg(test)]
mod tests {
    #[test]
    fn test_module_exists() {
        // This test ensures the module compiles successfully
    }
}