aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party/include/hll.h
Commit message (Collapse)AuthorAge
* Fix compilation on Windows (#2072)Ivan Nardi2023-08-14
|
* Modified definition of hll_addLuca Deri2022-08-17
|
* Added HyperLogLog cardinality estimator API callsLuca Deri2020-06-10
/* Memory lifecycle */ int ndpi_hll_init(struct ndpi_hll *hll, u_int8_t bits); void ndpi_hll_destroy(struct ndpi_hll *hll); /* Add values */ void ndpi_hll_add(struct ndpi_hll *hll, const char *data, size_t data_len); void ndpi_hll_add_number(struct ndpi_hll *hll, u_int32_t value) ; /* Get cardinality estimation */ double ndpi_hll_count(struct ndpi_hll *hll);