src/probabilistic/BloomFilter.cc
void CountingBloomFilter::Add(const zeek::detail::HashKey* key)
	{
	detail::Hasher::digest_vector h = hasher->Hash(key);

	for ( size_t i = 0; i < h.size(); ++i )
		cells->Increment(h[i] % cells->Size());
	}
// TODO: Use partitioning in add/count to allow for reusing CMS bounds.
Use partitioning in add/count to allow for reusing CMS bounds.
Use partitioning in add / count to allow for reusing CMS bounds .
void CountingBloomFilter::Add(const zeek::detail::HashKey* key)
	{
	detail::Hasher::digest_vector h = hasher->Hash(key);
	for ( size_t i = 0; i < h.size(); ++i )
		cells->Increment(h[i] % cells->Size());
	}
void CountingBloomFilter :: Add ( const zeek :: detail :: HashKey * key ) { detail :: Hasher :: digest_vector h = hasher -> Hash ( key ) ; for ( size_t i = 0 ; i < h . size ( ) ; ++ i ) cells -> Increment ( h [ i ] % cells -> Size ( ) ) ; }
TODO: Use partitioning in add/count to allow for reusing CMS bounds.
TODO : Use partitioning in add / count to allow for reusing CMS bounds .