Struct bloom_filters::CountingBloomFilter
source · pub struct CountingBloomFilter<BHK: BuildHashKernels> { /* private fields */ }
Implementations§
source§impl<BHK: BuildHashKernels> Filter<BHK>
impl<BHK: BuildHashKernels> Filter<BHK>
sourcepub fn new(
items_count: usize,
bucket_size: u8,
fp_rate: f64,
build_hash_kernels: BHK
) -> Self
pub fn new(
items_count: usize,
bucket_size: u8,
fp_rate: f64,
build_hash_kernels: BHK
) -> Self
Create a new bloom filter structure. items_count is an estimation of the maximum number of items to store. bucket_size is the specified number of bits fp_rate is the wanted rate of false positives, in ]0.0, 1.0[