BitMagic-C++
|
Parameters for XOR similarity search. More...
#include <bmxor.h>
Public Member Functions | |
xor_sim_params () | |
Data Fields | |
unsigned | min_lookup_depth |
More... | |
unsigned | max_lookup_depth |
More... | |
unsigned | stop_gain |
More... | |
float | target_gain_ratio |
More... | |
unsigned | min_gaps |
More... | |
Parameters for XOR similarity search.
Tuneup params allows to reduce the search space to better balance compression rate vs speed.
min_lookup_depth - default: 0, minimal search depth to still try to improve max_lookup_depth - default: (2billion) maximum scan search Set a smaller number to improve search time
Example: min_lookup_depth = 64; max_lookup_depth = 1024;
stop_gain - default: 65533 - cutoff to stop search when serch found gain better than "stop_gain" absolute value Example: stop_gain = 10000;
target_gain_ratio - default: 0.89 - cut off ratio between original block cost metric and XOR basedd metric to stop searching. (90% better than the original block is "good enough") Example: target_gain_ratio = 0.50; // 50% improvement is good enough
min_gaps - default: 3 - minimal size of GAP block to be considered for XOR search candidate