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 2023/12/20 23:46:43 UTC

(datasketches-go) 06/10: fix typo/bug when updating kxq0 in rebuild

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

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

commit a0f1eb36a3fb8e606e3e9e14c0537fd6d7067614
Author: Pierre Lacave <pi...@datadoghq.com>
AuthorDate: Tue Dec 19 19:28:43 2023 +0100

    fix typo/bug when updating kxq0 in rebuild
---
 hll/union.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hll/union.go b/hll/union.go
index 1c2e7e3..bfe5766 100644
--- a/hll/union.go
+++ b/hll/union.go
@@ -307,7 +307,7 @@ func checkRebuildCurMinNumKxQ(sketch HllSketch) error {
 				if err != nil {
 					return err
 				}
-				kxq0 += inv - -1.0
+				kxq0 += inv - 1.0
 			} else {
 				inv, err := common.InvPow2(v)
 				if err != nil {


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