Everything works, and I just need to put the tests in the proper folder to get this functionality working.

This commit is contained in:
Soumya Basu 2012-08-30 01:09:44 -07:00
parent 7e07ce3cb1
commit 3ffb4cab64
4 changed files with 70 additions and 136 deletions

View file

@ -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