Skip to content

Commit

Permalink
Add default value (0.01) for heavyHittersPct
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael G. Noll committed Oct 11, 2014
1 parent ec997b2 commit 83b5133
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
Expand Down

0 comments on commit 83b5133

Please sign in to comment.