Skip to content

Commit

Permalink
[MISC] Also print relaxed fpr when determining best tmax.
Browse files Browse the repository at this point in the history
  • Loading branch information
smehringer committed Oct 26, 2023
1 parent 5aeebbf commit 5f80522
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/layout/determine_best_number_of_technical_bins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ determine_best_number_of_technical_bins(chopper::configuration & config)
file_out << "## ### Parameters ###\n"
<< "## number of user bins = " << config.hibf_config.number_of_user_bins << '\n'
<< "## number of hash functions = " << config.hibf_config.number_of_hash_functions << '\n'
<< "## false positive rate = " << config.hibf_config.maximum_fpr << '\n';
<< "## maximum false positive rate = " << config.hibf_config.maximum_fpr << '\n'
<< "## relaxed false positive rate = " << config.hibf_config.relaxed_fpr << '\n';
hibf_statistics::print_header_to(file_out, config.output_verbose_statistics);

double best_expected_HIBF_query_cost{std::numeric_limits<double>::infinity()};
Expand Down
12 changes: 8 additions & 4 deletions test/api/layout/execute_with_estimation_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ TEST(execute_estimation_test, few_ubs)
R"expected_cout(## ### Parameters ###
## number of user bins = 8
## number of hash functions = 2
## false positive rate = 0.05
## maximum false positive rate = 0.05
## relaxed false positive rate = 0.3
## ### Notation ###
## X-IBF = An IBF with X number of bins.
## X-HIBF = An HIBF with tmax = X, e.g a maximum of X technical bins on each level.
Expand Down Expand Up @@ -116,7 +117,8 @@ TEST(execute_estimation_test, many_ubs)
R"expected_cout(## ### Parameters ###
## number of user bins = 96
## number of hash functions = 2
## false positive rate = 0.05
## maximum false positive rate = 0.05
## relaxed false positive rate = 0.3
## ### Notation ###
## X-IBF = An IBF with X number of bins.
## X-HIBF = An HIBF with tmax = X, e.g a maximum of X technical bins on each level.
Expand Down Expand Up @@ -417,7 +419,8 @@ TEST(execute_estimation_test, many_ubs_force_all)
R"expected_cout(## ### Parameters ###
## number of user bins = 96
## number of hash functions = 2
## false positive rate = 0.05
## maximum false positive rate = 0.05
## relaxed false positive rate = 0.3
## ### Notation ###
## X-IBF = An IBF with X number of bins.
## X-HIBF = An HIBF with tmax = X, e.g a maximum of X technical bins on each level.
Expand Down Expand Up @@ -521,7 +524,8 @@ TEST(execute_estimation_test, with_rearrangement)
R"expected_cout(## ### Parameters ###
## number of user bins = 196
## number of hash functions = 2
## false positive rate = 0.05
## maximum false positive rate = 0.05
## relaxed false positive rate = 0.3
## ### Notation ###
## X-IBF = An IBF with X number of bins.
## X-HIBF = An HIBF with tmax = X, e.g a maximum of X technical bins on each level.
Expand Down
3 changes: 2 additions & 1 deletion test/api/layout/hibf_statistics_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ TEST(execute_test, chopper_layout_statistics_determine_best_bins)
R"expected_cout(## ### Parameters ###
## number of user bins = 10
## number of hash functions = 2
## false positive rate = 0.05
## maximum false positive rate = 0.05
## relaxed false positive rate = 0.3
## ### Notation ###
## X-IBF = An IBF with X number of bins.
## X-HIBF = An HIBF with tmax = X, e.g a maximum of X technical bins on each level.
Expand Down

0 comments on commit 5f80522

Please sign in to comment.