mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Merge remote-tracking branch 'origin/topic/bernhard/topk'
* origin/topic/bernhard/topk: 3 more functions to document. Conflicts: src/probabilistic/Topk.h
This commit is contained in:
commit
1b40412818
3 changed files with 28 additions and 3 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
2.1-1007 | 2013-08-01 15:41:54 -0700
|
||||||
|
|
||||||
|
* More function documentation. (Bernhard Amann)
|
||||||
|
|
||||||
2.1-1004 | 2013-08-01 14:37:43 -0700
|
2.1-1004 | 2013-08-01 14:37:43 -0700
|
||||||
|
|
||||||
* Adding a probabilistic data structure for computing "top k"
|
* Adding a probabilistic data structure for computing "top k"
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.1-1004
|
2.1-1007
|
||||||
|
|
|
@ -129,9 +129,30 @@ protected:
|
||||||
TopkVal();
|
TopkVal();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* Increment the counter for a specific element
|
||||||
|
*
|
||||||
|
* @param e element to increment counter for
|
||||||
|
*
|
||||||
|
* @param count increment counter by this much
|
||||||
|
*/
|
||||||
void IncrementCounter(Element* e, unsigned int count = 1);
|
void IncrementCounter(Element* e, unsigned int count = 1);
|
||||||
HashKey* GetHash(Val*) const; // this probably should go somewhere else.
|
|
||||||
void Typify(BroType*);
|
/**
|
||||||
|
* get the hashkey for a specific value
|
||||||
|
*
|
||||||
|
* @param v value to generate key for
|
||||||
|
*
|
||||||
|
* @returns HashKey for value
|
||||||
|
*/
|
||||||
|
HashKey* GetHash(Val* v) const; // this probably should go somewhere else.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the type that this TopK instance tracks
|
||||||
|
*
|
||||||
|
* @param t type that is tracked
|
||||||
|
*/
|
||||||
|
void Typify(BroType* t);
|
||||||
|
|
||||||
BroType* type;
|
BroType* type;
|
||||||
CompositeHash* hash;
|
CompositeHash* hash;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue