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/04/08 01:43:57 UTC
[incubator-datasketches-cpp] 02/02: better summary
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch api_and_docs
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git
commit 13664ca4a907955592d3131e012b9b54156ce9e9
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Tue Apr 7 18:43:46 2020 -0700
better summary
---
theta/include/theta_sketch_impl.hpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/theta/include/theta_sketch_impl.hpp b/theta/include/theta_sketch_impl.hpp
index 54f0ba7..ca45384 100644
--- a/theta/include/theta_sketch_impl.hpp
+++ b/theta/include/theta_sketch_impl.hpp
@@ -358,10 +358,11 @@ void update_theta_sketch_alloc<A>::to_stream(std::ostream& os, bool print_items)
os << " resize factor : " << (1 << rf_) << std::endl;
os << " sampling probability : " << p_ << std::endl;
os << " seed hash : " << this->get_seed_hash() << std::endl;
+ os << " empty? : " << (this->is_empty() ? "true" : "false") << std::endl;
os << " ordered? : " << (this->is_ordered() ? "true" : "false") << std::endl;
+ os << " estimation mode? : " << (this->is_estimation_mode() ? "true" : "false") << std::endl;
os << " theta (fraction) : " << this->get_theta() << std::endl;
os << " theta (raw 64-bit) : " << this->theta_ << std::endl;
- os << " estimation mode? : " << (this->is_estimation_mode() ? "true" : "false") << std::endl;
os << " estimate : " << this->get_estimate() << std::endl;
os << " lower bound 95% conf : " << this->get_lower_bound(2) << std::endl;
os << " upper bound 95% conf : " << this->get_upper_bound(2) << std::endl;
@@ -802,10 +803,11 @@ void compact_theta_sketch_alloc<A>::to_stream(std::ostream& os, bool print_items
os << "### Compact Theta sketch summary:" << std::endl;
os << " num retained keys : " << num_keys_ << std::endl;
os << " seed hash : " << this->get_seed_hash() << std::endl;
+ os << " empty? : " << (this->is_empty() ? "true" : "false") << std::endl;
os << " ordered? : " << (this->is_ordered() ? "true" : "false") << std::endl;
+ os << " estimation mode? : " << (this->is_estimation_mode() ? "true" : "false") << std::endl;
os << " theta (fraction) : " << this->get_theta() << std::endl;
os << " theta (raw 64-bit) : " << this->theta_ << std::endl;
- os << " estimation mode? : " << (this->is_estimation_mode() ? "true" : "false") << std::endl;
os << " estimate : " << this->get_estimate() << std::endl;
os << " lower bound 95% conf : " << this->get_lower_bound(2) << std::endl;
os << " upper bound 95% conf : " << this->get_upper_bound(2) << std::endl;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org