Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Fix compilation on Windows (#2072) | Ivan Nardi | 2023-08-14 |
| | |||
* | Modified definition of hll_add | Luca Deri | 2022-08-17 |
| | |||
* | Added HyperLogLog cardinality estimator API calls | Luca Deri | 2020-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); |