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 2022/12/16 03:56:57 UTC

[datasketches-cpp] 02/02: added estimation mode to text summary

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

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

commit 84c1b7aefd22c2f4f19745e6381c51faaa494304
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Dec 15 19:56:50 2022 -0800

    added estimation mode to text summary
---
 density/include/density_sketch_impl.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/density/include/density_sketch_impl.hpp b/density/include/density_sketch_impl.hpp
index f33110f..b3c29eb 100755
--- a/density/include/density_sketch_impl.hpp
+++ b/density/include/density_sketch_impl.hpp
@@ -156,6 +156,7 @@ string<A> density_sketch<T, K, A>::to_string(bool print_levels, bool print_items
   os << "   Empty          : " << (is_empty() ? "true" : "false") << std::endl;
   os << "   N              : " << n_ << std::endl;
   os << "   Retained items : " << num_retained_ << std::endl;
+  os << "   Estimation mode: " << (is_estimation_mode() ? "true" : "false") << std::endl;
   os << "   Levels         : " << levels_.size() << std::endl;
   os << "### End sketch summary" << std::endl;
 


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