|
datasketches-cpp
|
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. | |
Theta A-not-B (set difference).
Computes set difference of Theta sketches.
|
explicit |
Constructor.
| seed | for the hash function that was used to create the sketch |
| allocator | to use for allocating and deallocating memory |
| auto compute | ( | FwdSketch && | a, |
| const Sketch & | b, | ||
| bool | ordered = true ) const -> CompactSketch |
Computes the A-not-B set operation given two sketches.
| a | sketch A |
| b | sketch B |
| ordered | optional flag to specify if an ordered sketch should be produced |