mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Everything works, and I just need to put the tests in the proper folder to get this functionality working.
This commit is contained in:
parent
7e07ce3cb1
commit
3ffb4cab64
4 changed files with 70 additions and 136 deletions
|
@ -53,6 +53,12 @@ class CardinalityCounter {
|
|||
uint8_t rank(uint64_t hash_modified);
|
||||
|
||||
public:
|
||||
/*
|
||||
* This will be used when cloning. The error margin will be 1.04/sqrt(m) with approximately 68%
|
||||
* probability.
|
||||
*/
|
||||
CardinalityCounter(uint64_t size);
|
||||
|
||||
/*
|
||||
* This will initialize the Cardinality counter.Based on the error_margin, the number of buckets
|
||||
* that need to be kept will be determined. Based on the max_size, the number of bits that will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue