geonove commented on code in PR #42:
URL: https://github.com/apache/datasketches-go/pull/42#discussion_r2098806722


##########
count/count_min_sketch.go:
##########
@@ -0,0 +1,344 @@
+package count
+
+import (
+       "bytes"
+       "encoding/binary"
+       "errors"
+       "io"
+       "math"
+       "math/rand"
+
+       "github.com/apache/datasketches-go/internal"
+)
+
+type CountMinSketch struct {
+       numBuckets  int32 // counter array size for each of the hashing function
+       numHashes   int8  // number of hashing functions
+       sketchSlice []int64
+       seed        int64
+       totalWeight int64
+       hashSeeds   []int64
+}
+
+func NewCountMinSketch(numHashes int8, numBuckets int32, seed int64) 
(*CountMinSketch, error) {

Review Comment:
   Done!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org
For additional commands, e-mail: dev-h...@datasketches.apache.org

Reply via email to