mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
and const 2 more functions
This commit is contained in:
parent
c0f780c728
commit
ecc20b932a
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
using namespace probabilistic;
|
||||
|
||||
int CardinalityCounter::OptimalB(double error, double confidence)
|
||||
int CardinalityCounter::OptimalB(double error, double confidence) const
|
||||
{
|
||||
double initial_estimate = 2 * (log(1.04) - log(error)) / log(2);
|
||||
int answer = (int) floor(initial_estimate);
|
||||
|
@ -87,7 +87,7 @@ CardinalityCounter::~CardinalityCounter()
|
|||
delete [] buckets;
|
||||
}
|
||||
|
||||
uint8_t CardinalityCounter::Rank(uint64 hash_modified)
|
||||
uint8_t CardinalityCounter::Rank(uint64 hash_modified) const
|
||||
{
|
||||
uint8_t answer = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue