diff --git a/algebird-core/src/main/scala/com/twitter/algebird/CountMinSketch.scala b/algebird-core/src/main/scala/com/twitter/algebird/CountMinSketch.scala index 3f8e786ff..2d8b01dac 100644 --- a/algebird-core/src/main/scala/com/twitter/algebird/CountMinSketch.scala +++ b/algebird-core/src/main/scala/com/twitter/algebird/CountMinSketch.scala @@ -567,25 +567,25 @@ object TopPctCms { def monoid[K: Ordering: CmsHasher](eps: Double, delta: Double, seed: Int, - heavyHittersPct: Double): TopPctCmsMonoid[K] = + heavyHittersPct: Double = 0.01): TopPctCmsMonoid[K] = new TopPctCmsMonoid[K](Cms(eps, delta, seed), heavyHittersPct) def monoid[K: Ordering: CmsHasher](depth: Int, width: Int, seed: Int, - heavyHittersPct: Double): TopPctCmsMonoid[K] = + heavyHittersPct: Double = 0.01): TopPctCmsMonoid[K] = monoid(CmsFunctions.eps(width), CmsFunctions.delta(depth), seed, heavyHittersPct) def aggregator[K: Ordering: CmsHasher](eps: Double, delta: Double, seed: Int, - heavyHittersPct: Double): TopPctCmsAggregator[K] = + heavyHittersPct: Double= 0.01): TopPctCmsAggregator[K] = new TopPctCmsAggregator[K](monoid(eps, delta, seed, heavyHittersPct)) def aggregator[K: Ordering: CmsHasher](depth: Int, width: Int, seed: Int, - heavyHittersPct: Double): TopPctCmsAggregator[K] = + heavyHittersPct: Double = 0.01): TopPctCmsAggregator[K] = aggregator(CmsFunctions.eps(width), CmsFunctions.delta(depth), seed, heavyHittersPct) }