datasketches-cpp
Loading...
Searching...
No Matches
theta_sketch_alloc< Allocator > Class Template Referenceabstract

Base class for the Theta Sketch, a generalization of the Kth Minimum Value (KMV) sketch. More...

#include <theta_sketch.hpp>

Inheritance diagram for theta_sketch_alloc< Allocator >:
base_theta_sketch_alloc< Allocator > compact_theta_sketch_alloc< Allocator > update_theta_sketch_alloc< Allocator >

Public Member Functions

virtual iterator begin ()=0
 Iterator over hash values in this sketch.
virtual iterator end ()=0
 Iterator pointing past the valid range.
virtual const_iterator begin () const =0
 Const iterator over hash values in this sketch.
virtual const_iterator end () const =0
 Const iterator pointing past the valid range.
Public Member Functions inherited from base_theta_sketch_alloc< Allocator >
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) const
 Returns the approximate lower error bound given a number of standard deviations.
double get_upper_bound (uint8_t num_std_devs) const
 Returns the approximate upper error bound given a number of standard deviations.
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
virtual string< Allocator > to_string (bool print_items=false) const
 Provides a human-readable summary of this sketch as a string.

Detailed Description

template<typename Allocator = std::allocator<uint64_t>>
class datasketches::theta_sketch_alloc< Allocator >

Base class for the Theta Sketch, a generalization of the Kth Minimum Value (KMV) sketch.

Member Function Documentation

◆ begin() [1/2]

template<typename Allocator = std::allocator<uint64_t>>
virtual iterator begin ( )
pure virtual

◆ end() [1/2]

template<typename Allocator = std::allocator<uint64_t>>
virtual iterator end ( )
pure virtual

◆ begin() [2/2]

template<typename Allocator = std::allocator<uint64_t>>
virtual const_iterator begin ( ) const
pure virtual

◆ end() [2/2]

template<typename Allocator = std::allocator<uint64_t>>
virtual const_iterator end ( ) const
pure virtual

The documentation for this class was generated from the following files: