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 2019/11/14 23:20:22 UTC

[incubator-datasketches-characterization] branch cpp_migration updated: reverted experimental code

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

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


The following commit(s) were added to refs/heads/cpp_migration by this push:
     new a796b45  reverted experimental code
a796b45 is described below

commit a796b45a9b49888b9e32646d7225dc67de9f791c
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Nov 14 15:20:11 2019 -0800

    reverted experimental code
---
 cpp/src/kll_merge_accuracy_profile.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cpp/src/kll_merge_accuracy_profile.cpp b/cpp/src/kll_merge_accuracy_profile.cpp
index 30090b6..e0bae4f 100644
--- a/cpp/src/kll_merge_accuracy_profile.cpp
+++ b/cpp/src/kll_merge_accuracy_profile.cpp
@@ -44,11 +44,8 @@ double kll_merge_accuracy_profile::run_trial(float* values, unsigned stream_leng
     if (j == num_sketches) j = 0;
   }
 
-  kll_sketch<float> sketch_tmp(32*200);
-  for (unsigned i = 0; i < num_sketches; i++) sketch_tmp.merge(*sketches[i]);
-
   kll_sketch<float> sketch;
-  sketch.merge(sketch_tmp);
+  for (unsigned i = 0; i < num_sketches; i++) sketch.merge(*sketches[i]);
 
   double max_rank_error = 0;
   for (size_t i = 0; i < stream_length; i++) {


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