From 83b51339fcf32f5951bf50393489a3f4d7f8b695 Mon Sep 17 00:00:00 2001 From: "Michael G. Noll" Date: Sat, 11 Oct 2014 13:48:59 +0200 Subject: [PATCH] Add default value (0.01) for heavyHittersPct --- .../main/scala/com/twitter/algebird/CountMinSketch.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }