All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
Akumuli::QP::CountingSketch Struct Reference

Public Member Functions

 CountingSketch (HashFnFamily const &hf)
 CountingSketch (CountingSketch const &cs)
void _update_sum ()
void add (uint64_t id, double value)
double estimateF2 () const
 Second moment estimator.
double estimate (uint64_t id) const
 Unbiased value estimator.
void diff (CountingSketch const &lhs, CountingSketch const &rhs)
 current sketch <- absolute difference between two arguments
void add (CountingSketch const &val)
 Add sketch.
void sub (CountingSketch const &val)
 Substract sketch.
void mul (double value)
 Multiply sketch by value.
void mul (CountingSketch const &value)
 Multiply by another sketch.
void div (CountingSketch const &value)
 Divide by another sketch.

Public Attributes

HashFnFamily const & hashes_
const uint32_t N
const uint32_t K
double sum_
std::vector< std::vector
< double > > 

The documentation for this struct was generated from the following file: