proost commented on code in PR #798:
URL: https://github.com/apache/datasketches-java/pull/798#discussion_r4539160609
##########
src/main/java/org/apache/datasketches/count/CountMinSketch.java:
##########
@@ -64,14 +77,49 @@ int mask() {
}
/**
- * Creates a CountMin sketch with given number of hash functions and buckets,
- * and a user-specified seed.
+ * Creates an empty CountMin sketch with the given number of hash functions
and buckets,
+ * and the default seed, {@link Util#DEFAULT_UPDATE_SEED}.
+ * The sketch uses serialization version 2.
+ *
+ * <p>{@link #suggestNumHashes(double)} and {@link
#suggestNumBuckets(double)} give suitable values
+ * for a desired confidence and relative error.</p>
+ *
+ * @param numHashes The number of hash functions (rows), from 1 to 127
+ * @param numBuckets The number of buckets per hash function, at least 3.
+ * The product of numHashes and numBuckets must be less than 2<sup>30</sup>.
+ * @throws SketchesArgumentException if a parameter is out of range
+ */
+ public CountMinSketch(final byte numHashes, final int numBuckets) {
Review Comment:
int type can be more readable to user than byte type for numHashes. what is
your intention?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]