Status: Unstable
Warning: This API is available and tested, but not yet integrated into the primary structured framework surfaces.
K-minimum values cardinality estimator.
KMV<H = DefaultXxHasher>
fn default() -> Self
fn new(k: usize) -> Selffn insert(&mut self, item: &DataInput)
fn insert_by_hash(&mut self, hash_value: u64)fn estimate(&mut self) -> f64fn merge(&mut self, other: &mut KMV<H>)fn serialize_to_bytes(&self) -> Result<Vec<u8>, RmpEncodeError>
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, RmpDecodeError>use asap_sketchlib::{KMV, DataInput};
let mut kmv = KMV::new(1024);
kmv.insert(&DataInput::U64(1));
let _ = kmv.estimate();- Not currently part of primary framework wrappers.
Unstable; retained for compatibility visibility.