com.stripe.brushfire.Voters.scala Maven / Gradle / Ivy
package com.stripe.brushfire
// Backwards compat.
object SoftVoter {
def apply[L, M: Numeric]() = Voter.soft[L, M]
}
object ModeVoter {
def apply[L, M: Ordering]() = Voter.mode[L, M]
}
object ThresholdVoter {
import Voter.FrequencyVoter
def apply[M](threshold: Double, voter: FrequencyVoter[Boolean, M]) =
Voter.threshold(threshold, voter)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy