datasketches-cpp
|
Update array tuple sketch. More...
#include <array_tuple_sketch.hpp>
Classes | |
class | builder |
Update array tuple sketch builder. More... | |
Public Member Functions | |
uint8_t | get_num_values () const |
Public Member Functions inherited from update_tuple_sketch< Array, Array, default_array_tuple_update_policy< Array >, typename Array::allocator_type > | |
uint8_t | get_lg_k () const |
resize_factor | get_rf () const |
void | update (const std::string &key, FwdUpdate &&value) |
Update this sketch with a given string. More... | |
void | update (uint64_t key, FwdUpdate &&value) |
Update this sketch with a given unsigned 64-bit integer. More... | |
void | update (int64_t key, FwdUpdate &&value) |
Update this sketch with a given signed 64-bit integer. More... | |
void | update (uint32_t key, FwdUpdate &&value) |
Update this sketch with a given unsigned 32-bit integer. More... | |
void | update (int32_t key, FwdUpdate &&value) |
Update this sketch with a given signed 32-bit integer. More... | |
void | update (uint16_t key, FwdUpdate &&value) |
Update this sketch with a given unsigned 16-bit integer. More... | |
void | update (int16_t key, FwdUpdate &&value) |
Update this sketch with a given signed 16-bit integer. More... | |
void | update (uint8_t key, FwdUpdate &&value) |
Update this sketch with a given unsigned 8-bit integer. More... | |
void | update (int8_t key, FwdUpdate &&value) |
Update this sketch with a given signed 8-bit integer. More... | |
void | update (double key, FwdUpdate &&value) |
Update this sketch with a given double-precision floating point value. More... | |
void | update (float key, FwdUpdate &&value) |
Update this sketch with a given floating point value. More... | |
void | update (const void *key, size_t length, FwdUpdate &&value) |
Update this sketch with given data of any type. More... | |
void | trim () |
Remove retained entries in excess of the nominal size k (if any) | |
void | reset () |
Reset the sketch to the initial empty state. | |
compact_tuple_sketch< Array, typename Array::allocator_type > | compact (bool ordered=true) const |
Converts this sketch to a compact sketch (ordered or unordered). More... | |
compact_tuple_sketch< Array, typename Array::allocator_type > | filter (const Predicate &predicate) const |
Produces a Compact Tuple sketch from this sketch by applying a given predicate to each entry. More... | |
Public Member Functions inherited from tuple_sketch< Array, typename Array::allocator_type > | |
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 |
string< typename Array::allocator_type > | to_string (bool print_items=false) const |
Provides a human-readable summary of this sketch as a string. More... | |
Update array tuple sketch.
This is a wrapper around tuple sketch to match the functionality and serialization format of ArrayOfDoublesSketch in Java. For this the sketch must be configured with array<double> or std::vector<double>. This is a more generic implementation for any arithmetic type (serialization assumes contiguous array size_of(T) * num_values). A set of type definitions for the ArrayOfDoubles* equivalent is provided in a separate file array_of_doubles_sketch.hpp. There is no constructor. Use builder instead.
uint8_t get_num_values |