datasketches-cpp
Loading...
Searching...
No Matches
theta_a_not_b_alloc< Allocator > Class Template Reference

Theta A-not-B (set difference). More...

#include <theta_a_not_b.hpp>

Public Member Functions

 theta_a_not_b_alloc (uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())
 Constructor.
template<typename FwdSketch, typename Sketch>
CompactSketch compute (FwdSketch &&a, const Sketch &b, bool ordered=true) const
 Computes the A-not-B set operation given two sketches.

Detailed Description

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

Theta A-not-B (set difference).

Computes set difference of Theta sketches.

Constructor & Destructor Documentation

◆ theta_a_not_b_alloc()

template<typename Allocator = std::allocator<uint64_t>>
theta_a_not_b_alloc ( uint64_t seed = DEFAULT_SEED,
const Allocator & allocator = Allocator() )
explicit

Constructor.

Parameters
seedfor the hash function that was used to create the sketch
allocatorto use for allocating and deallocating memory

Member Function Documentation

◆ compute()

template<typename A>
template<typename FwdSketch, typename Sketch>
auto compute ( FwdSketch && a,
const Sketch & b,
bool ordered = true ) const -> CompactSketch

Computes the A-not-B set operation given two sketches.

Parameters
asketch A
bsketch B
orderedoptional flag to specify if an ordered sketch should be produced
Returns
the result of A-not-B as a compact sketch

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