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/06/17 19:53:55 UTC

[incubator-datasketches-cpp] 01/01: added const qualifier to get_upper_bound() and get_lower_bound

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

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

commit 77e7526fa8bde543f83797683a5c2550a7d77da9
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon Jun 17 12:53:25 2019 -0700

    added const qualifier to get_upper_bound() and get_lower_bound
---
 cpc/include/cpc_sketch.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpc/include/cpc_sketch.hpp b/cpc/include/cpc_sketch.hpp
index ebf8344..c1eac7d 100644
--- a/cpc/include/cpc_sketch.hpp
+++ b/cpc/include/cpc_sketch.hpp
@@ -91,7 +91,7 @@ class cpc_sketch {
       return getIconEstimate(state->lgK, state->numCoupons);
     }
 
-    double get_lower_bound(unsigned kappa) {
+    double get_lower_bound(unsigned kappa) const {
       if (kappa > 3) {
         throw std::invalid_argument("kappa must be 1, 2 or 3");
       }
@@ -99,7 +99,7 @@ class cpc_sketch {
       return getIconConfidenceLB(state, kappa);
     }
 
-    double get_upper_bound(unsigned kappa) {
+    double get_upper_bound(unsigned kappa) const {
       if (kappa > 3) {
         throw std::invalid_argument("kappa must be 1, 2 or 3");
       }


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