@Test public void testEqualityMean() { BucketSampler<String> sampler = runSampler(2, "a a a b b c c c c d d d e f f f f f"); assertEquals("mean equality", 3.0d, sampler.getEqualsMean(), 0.0); }
public double getEqualsMean() { return ((double)equalsSeen) / ((double)bucketsSeen); }
BucketSampler { public double getEqualsMean() { return ((double)equalsSeen) / ((double)bucketsSeen); } }
BucketSampler { public double getEqualsMean() { return ((double)equalsSeen) / ((double)bucketsSeen); } BucketSampler(int bucketCount, long estimatedInputs);   BucketSampler(int maxSize, long estimatedInputs, boolean calculateStandardDeviation); }
BucketSampler { public double getEqualsMean() { return ((double)equalsSeen) / ((double)bucketsSeen); } BucketSampler(int bucketCount, long estimatedInputs);   BucketSampler(int maxSize, long estimatedInputs, boolean calculateStandardDeviation); boolean add(Bucket<T> bucket); void appendToResults(Bucket<T> bucket); double getEqualsStdDev(); double getEqualsMean(); }
BucketSampler { public double getEqualsMean() { return ((double)equalsSeen) / ((double)bucketsSeen); } BucketSampler(int bucketCount, long estimatedInputs);   BucketSampler(int maxSize, long estimatedInputs, boolean calculateStandardDeviation); boolean add(Bucket<T> bucket); void appendToResults(Bucket<T> bucket); double getEqualsStdDev(); double getEqualsMean();  }