You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/03/23 18:05:58 UTC

[incubator-datasketches-characterization] 01/01: use new template

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch fi_use_new_template
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git

commit 7f760f7f0b1ee926ae1d30e48d50480da08015f9
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon Mar 23 11:05:41 2020 -0700

    use new template
---
 cpp/src/frequent_items_sketch_accuracy_profile.cpp | 2 +-
 cpp/src/frequent_items_sketch_timing_profile.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpp/src/frequent_items_sketch_accuracy_profile.cpp b/cpp/src/frequent_items_sketch_accuracy_profile.cpp
index 64b5b5a..643ffb7 100644
--- a/cpp/src/frequent_items_sketch_accuracy_profile.cpp
+++ b/cpp/src/frequent_items_sketch_accuracy_profile.cpp
@@ -56,7 +56,7 @@ void frequent_items_sketch_accuracy_profile::run() {
     const size_t num_trials = get_num_trials(stream_length, lg_min_stream_len, lg_max_stream_len, lg_min_trials, lg_max_trials);
 
     // trust sketch to compute epsilon
-    unsigned threshold = frequent_items_sketch<unsigned, unsigned>::get_epsilon(lg_max_sketch_size) * stream_length;
+    unsigned threshold = frequent_items_sketch<unsigned>::get_epsilon(lg_max_sketch_size) * stream_length;
 
     unsigned* values = new unsigned[stream_length];
 
diff --git a/cpp/src/frequent_items_sketch_timing_profile.cpp b/cpp/src/frequent_items_sketch_timing_profile.cpp
index 3637955..87ae013 100644
--- a/cpp/src/frequent_items_sketch_timing_profile.cpp
+++ b/cpp/src/frequent_items_sketch_timing_profile.cpp
@@ -41,7 +41,7 @@ struct hash_long_long {
     return key;
   }
 };
-typedef frequent_items_sketch<long long, hash_long_long> frequent_longs_sketch;
+typedef frequent_items_sketch<long long, long, hash_long_long> frequent_longs_sketch;
 
 void frequent_items_sketch_timing_profile::run() {
   const unsigned lg_min_stream_len = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org