Just use
mkdir build
cd build
cmake ..
makeexecutable is /build/bin/sketcher
./sketcher test -name fastexpsketchThe command above tests fastexpsketch with default parameters. So it will create 1 fastexpsketch of size 400 and add 10000 elements to it. Elements will be distinct and have the same weight - 1.
Sketcher offers three main commands:
Run quick tests with various sketches and generate a basic analysis.
./sketcher test -name <sketch_name> Create and save sketches to a file, which can be paused and resumed if the application is stopped.
./sketcher sketch <filename> -name <sketch_name> Load sketches from a saved file and perform an analysis.
./sketcher analyse <filename>-
-name
<sketch_name>: Type of sketch to use. Options:fastexpsketchqsketch
-
-elems
<amount_elements>: Number of elements to process in each sketch. Default:10000 -
-sketches
<amount_sketches>: Number of sketches to create. Default:1 -
-weightDist
<weight_distribution>: Distribution type for element weights. Default:uniform_int 1 1. Options:uniform_int a b: Uniformly distributes weights between [a,b]. Weights are only integers.uniform_real a b: Uniformly distributes weights between [a,b].bis not included. Ifa >= b, thenuniform_real 0 1will be appliednormal e v: Distributes weights according to a normal distribution with meaneand variancev.
Note: If the weight distribution returns a negative value, it will be recalculated until a positive value is found.
-
-itemDist
<item_distribution>: Specifies item distribution type. Options:distinct(default)repeated
-
-weightSeed
<seed_weight_distribution>: Seed for generating weight distribution. Must be an integer. If set to0, a random seed will be generated. -
-sketchSize
<size>: Specifies the size of the sketch. Default:400 -
-sketchSeed
<seed>: First sketch will be initialized with this seed, and following sketches will increment on this seed. Default:42 -
-qsketchStart
<start_value>: For private estimations. Starting point for QSketch. -
-qsketchEnd
<end_value>: For private estimations. Ending point for QSketch. -
-qsketchAmountPoints
<number>: For private estimations. Number of points for QSketch.