Skip to content

Commit

Permalink
Removes unused CountMinSketchImpl constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Jan 21, 2016
1 parent 1f0a120 commit e06ff13
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -51,16 +51,6 @@ public CountMinSketchImpl(double eps, double confidence, int seed) {
initTablesWith(depth, width, seed);
}

public CountMinSketchImpl(int depth, int width, long totalCount, long[] hashA, long[][] table) {
this.depth = depth;
this.width = width;
this.eps = 2.0 / width;
this.confidence = 1 - 1 / Math.pow(2, depth);
this.hashA = hashA;
this.table = table;
this.totalCount = totalCount;
}

private void initTablesWith(int depth, int width, int seed) {
this.table = new long[depth][width];
this.hashA = new long[depth];
Expand Down

0 comments on commit e06ff13

Please sign in to comment.