datasketches-cpp
|
Wrapped Compact Theta sketch. More...
#include <theta_sketch.hpp>
Public Member Functions | |
Allocator | get_allocator () const |
bool | is_empty () const |
bool | is_ordered () const |
uint64_t | get_theta64 () const |
uint32_t | get_num_retained () const |
uint16_t | get_seed_hash () const |
const_iterator | begin () const |
Const iterator over hash values in this sketch. More... | |
const_iterator | end () const |
Const iterator pointing past the valid range. More... | |
Public Member Functions inherited from base_theta_sketch_alloc< std::allocator< uint64_t > > | |
double | get_estimate () const |
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) const |
Returns the approximate upper error bound given a number of standard deviations. More... | |
bool | is_estimation_mode () const |
double | get_theta () const |
virtual string< std::allocator< uint64_t > > | to_string (bool print_items=false) const |
Provides a human-readable summary of this sketch as a string. More... | |
Static Public Member Functions | |
static const wrapped_compact_theta_sketch_alloc | wrap (const void *bytes, size_t size, uint64_t seed=DEFAULT_SEED, bool dump_on_error=false) |
This method wraps a serialized compact sketch as an array of bytes. More... | |
Wrapped Compact Theta sketch.
This is to wrap a buffer containing a serialized compact sketch and use it in a set operation avoiding some cost of deserialization. It does not take the ownership of the buffer.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
|
virtual |
Implements base_theta_sketch_alloc< std::allocator< uint64_t > >.
auto begin |
Const iterator over hash values in this sketch.
auto end |
Const iterator pointing past the valid range.
Not to be incremented or dereferenced.
|
static |
This method wraps a serialized compact sketch as an array of bytes.
bytes | pointer to the array of bytes |
size | the size of the array |
seed | the seed for the hash function that was used to create the sketch |
dump_on_error | if true prints hex dump of the input |