target_element_count_(predicted_inserted_element_count),
random_seed_((random_seed) ? random_seed : 0xA5A5A5A5)
{
+ assert(false_positive_probability > 0.0);
find_optimal_parameters(predicted_inserted_element_count, false_positive_probability,
&salt_count_, &table_size_);
init();
} else if (var == "hit_set_type") {
if (val == "none")
p.hit_set_params = HitSet::Params();
- else if (val == "bloom")
- p.hit_set_params = HitSet::Params(new BloomHitSet::Params);
- else if (val == "explicit_hash")
+ else if (val == "bloom") {
+ BloomHitSet::Params *bsp = new BloomHitSet::Params;
+ bsp->false_positive = .01;
+ p.hit_set_params = HitSet::Params(bsp);
+ } else if (val == "explicit_hash")
p.hit_set_params = HitSet::Params(new ExplicitHashHitSet::Params);
else if (val == "explicit_object")
p.hit_set_params = HitSet::Params(new ExplicitObjectHitSet::Params);