diff options
author | Luca Deri <deri@ntop.org> | 2023-07-13 21:54:51 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-07-13 21:54:51 +0200 |
commit | 1f55dc511f9eb4e2bc8f880f1599f01c527a6397 (patch) | |
tree | ac48162be9a38d7ffdca002efd03cdb549c01b21 /src/include/ndpi_typedefs.h | |
parent | bd0fcb2e62e5fa1fb3f4342e605e15f1f4920efc (diff) |
Implemented Count-Min Sketch [count how many times a value has been observed]
- ndpi_cm_sketch_init()
- ndpi_cm_sketch_add()
- ndpi_cm_sketch_count()
- ndpi_cm_sketch_destroy()
Diffstat (limited to 'src/include/ndpi_typedefs.h')
-rw-r--r-- | src/include/ndpi_typedefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index e3a649892..373a704da 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1897,6 +1897,12 @@ struct ndpi_hll { u_int8_t *registers; }; +struct ndpi_cm_sketch { + u_int16_t num_hashes; /* depth: Number of hash tables */ + u_int32_t num_hash_buckets; /* Number pf nuckets of each hash */ + u_int32_t *tables; +}; + /* **************************************** */ enum ndpi_bin_family { |