Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Commit e24cc7e

Browse files
author
ArnaudFnr
committed
Add Getters for Width and Depth attributes
1 parent 4969e34 commit e24cc7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/clearspring/analytics/stream/frequency/CountMinSketch.java

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ public double getConfidence() {
163163
return confidence;
164164
}
165165

166+
public int getDepth() {
167+
return depth;
168+
}
169+
170+
public int getWidth() {
171+
return width;
172+
}
173+
166174
int hash(long item, int i) {
167175
long hash = hashA[i] * item;
168176
// A super fast way of computing x mod 2^p-1

0 commit comments

Comments
 (0)