Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
streaming_algorithms_test.cc File Reference

Tests for Reservoir Sampling, Count-Min Sketch, HyperLogLog and MinHash. More...

#include <gtest/gtest.h>
#include <string>
#include <random>
#include <vector>
#include <tpl_dynArray.H>
#include <tpl_hash.H>
#include <tpl_dynList.H>
#include <reservoir-sampling.H>
#include <count-min-sketch.H>
#include <hyperloglog.H>
#include <minhash.H>
#include <simhash.H>
Include dependency graph for streaming_algorithms_test.cc:

Go to the source code of this file.

Functions

 TEST (StreamingAlgorithms, ReservoirSampling)
 
 TEST (StreamingAlgorithms, CountMinSketch)
 
 TEST (StreamingAlgorithms, HyperLogLog)
 
static void assertMinHashContracts (MinHash< int > &mh, size_t expected_k)
 
 TEST (StreamingAlgorithms, MinHash)
 
 TEST (StreamingAlgorithms, MinHashNewMethods)
 
 TEST (StreamingAlgorithms, MinHashPreconditions)
 
 TEST (StreamingAlgorithms, SimHash)
 
 TEST (StreamingAlgorithms, EdgeCases)
 
 TEST (ReservoirSampler, overflow_size_t)
 
 TEST (ReservoirSampler, overflow_rng_range)
 
 TEST (StreamingAlgorithms, CMSSketchMerge)
 

Detailed Description

Tests for Reservoir Sampling, Count-Min Sketch, HyperLogLog and MinHash.

Definition in file streaming_algorithms_test.cc.

Function Documentation

◆ assertMinHashContracts()

static void assertMinHashContracts ( MinHash< int > &  mh,
size_t  expected_k 
)
static

Definition at line 120 of file streaming_algorithms_test.cc.

References Aleph::divide_and_conquer_partition_dp().

Referenced by TEST(), and TEST().

◆ TEST() [1/11]

◆ TEST() [2/11]

◆ TEST() [3/11]

TEST ( StreamingAlgorithms  ,
CMSSketchMerge   
)

◆ TEST() [4/11]

TEST ( StreamingAlgorithms  ,
CountMinSketch   
)

◆ TEST() [5/11]

TEST ( StreamingAlgorithms  ,
EdgeCases   
)

◆ TEST() [6/11]

TEST ( StreamingAlgorithms  ,
HyperLogLog   
)

◆ TEST() [7/11]

◆ TEST() [8/11]

TEST ( StreamingAlgorithms  ,
MinHashNewMethods   
)

◆ TEST() [9/11]

TEST ( StreamingAlgorithms  ,
MinHashPreconditions   
)

◆ TEST() [10/11]

◆ TEST() [11/11]

TEST ( StreamingAlgorithms  ,
SimHash   
)