datasketches-cpp
|
Base class for Tuple sketch. More...
#include <tuple_sketch.hpp>
Public Member Functions | |
virtual Allocator | get_allocator () const =0 |
virtual bool | is_empty () const =0 |
double | get_estimate () const |
double | get_lower_bound (uint8_t num_std_devs, uint32_t num_subset_entries) const |
Returns the approximate lower error bound given a number of standard deviations over an arbitrary number of items stored in the sketch. More... | |
double | get_lower_bound (uint8_t num_std_devs) const |
Returns the approximate lower error bound given a number of standard deviations. More... | |
double | get_upper_bound (uint8_t num_std_devs, uint32_t num_subset_entries) const |
Returns the approximate upper error bound given a number of standard deviations over an arbitrary number of items stored in the sketch. More... | |
double | get_upper_bound (uint8_t num_std_devs) const |
Returns the approximate upper error bound given a number of standard deviations. More... | |
bool | is_estimation_mode () const |
double | get_theta () const |
virtual uint64_t | get_theta64 () const =0 |
virtual uint32_t | get_num_retained () const =0 |
virtual uint16_t | get_seed_hash () const =0 |
virtual bool | is_ordered () const =0 |
string< Allocator > | to_string (bool print_items=false) const |
Provides a human-readable summary of this sketch as a string. More... | |
virtual iterator | begin ()=0 |
Iterator over entries in this sketch. More... | |
virtual iterator | end ()=0 |
Iterator pointing past the valid range. More... | |
virtual const_iterator | begin () const =0 |
Const iterator over entries in this sketch. More... | |
virtual const_iterator | end () const =0 |
Const iterator pointing past the valid range. More... | |
Base class for Tuple sketch.
This is an extension of Theta sketch that allows keeping arbitrary Summary associated with each retained key.
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
double get_estimate |
double get_lower_bound | ( | uint8_t | num_std_devs, |
uint32_t | num_subset_entries | ||
) | const |
Returns the approximate lower error bound given a number of standard deviations over an arbitrary number of items stored in the sketch.
This parameter is similar to the number of standard deviations of the normal distribution and corresponds to approximately 67%, 95% and 99% confidence intervals.
num_std_devs | number of Standard Deviations (1, 2 or 3) |
num_subset_entries | number of items from {0, 1, ..., get_num_retained()} over which to estimate the bound |
double get_lower_bound | ( | uint8_t | num_std_devs | ) | const |
Returns the approximate lower error bound given a number of standard deviations.
This parameter is similar to the number of standard deviations of the normal distribution and corresponds to approximately 67%, 95% and 99% confidence intervals.
num_std_devs | number of Standard Deviations (1, 2 or 3) |
double get_upper_bound | ( | uint8_t | num_std_devs, |
uint32_t | num_subset_entries | ||
) | const |
Returns the approximate upper error bound given a number of standard deviations over an arbitrary number of items stored in the sketch.
This parameter is similar to the number of standard deviations of the normal distribution and corresponds to approximately 67%, 95% and 99% confidence intervals.
num_std_devs | number of Standard Deviations (1, 2 or 3) |
num_subset_entries | number of items from {0, 1, ..., get_num_retained()} over which to estimate the bound |
double get_upper_bound | ( | uint8_t | num_std_devs | ) | const |
Returns the approximate upper error bound given a number of standard deviations.
This parameter is similar to the number of standard deviations of the normal distribution and corresponds to approximately 67%, 95% and 99% confidence intervals.
num_std_devs | number of Standard Deviations (1, 2 or 3) |
bool is_estimation_mode |
double get_theta |
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
string< A > to_string | ( | bool | print_items = false | ) | const |
Provides a human-readable summary of this sketch as a string.
print_items | if true include the list of items retained by the sketch |
|
pure virtual |
Iterator over entries in this sketch.
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Iterator pointing past the valid range.
Not to be incremented or dereferenced.
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Const iterator over entries in this sketch.
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.
|
pure virtual |
Const iterator pointing past the valid range.
Not to be incremented or dereferenced.
Implemented in compact_tuple_sketch< Summary, Allocator >, compact_tuple_sketch< Array, typename Array::allocator_type >, update_tuple_sketch< Summary, Update, Policy, Allocator >, and update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type >.