hyperminhash 0.2.3

Fast, constant-memory cardinality approximation
Documentation
1
2
3
4
5
6
#[test]
fn deserialize_is_stable() {
    // Ensure that a Sketch serialized once yields the same result forever...
    let sk = hyperminhash::Sketch::load(&include_bytes!("serialized.bin")[..]).unwrap();
    assert_eq!(sk.cardinality(), 9931.106244547593);
}