object CMSFunctions
Helper functions to generate or to translate between various CMS parameters (cf. CMSParams).
- Alphabetic
- By Inheritance
- CMSFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def delta(depth: Int): Double
Translates from
depth
todelta
.Translates from
depth
todelta
.- Annotations
- @throws("if depth is too large, causing precision errors when computing delta")
- def depth(delta: Double): Int
Translates from
delta
todepth
.Translates from
delta
todepth
.- Annotations
- @throws("if delta is is not in (0, 1)")
- def eps(width: Int): Double
Translates from
width
toeps
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def generateHashes[K](eps: Double, delta: Double, seed: Int)(implicit arg0: CMSHasher[K]): Seq[CMSHash[K]]
Generates
N=depth
pair-wise independent hash functions.Generates
N=depth
pair-wise independent hash functions.- K
The type used to identify the elements to be counted.
- eps
One-sided error bound on the error of each point query, i.e. frequency estimate.
- delta
Error bound on the probability that a query estimate does NOT lie within some small interval around the truth.
- seed
Seed for the random number generator.
- returns
The generated hash functions.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maxExactCount(maxExactCountOpt: Option[Int], depth: Int, width: Int): Int
Compute maxExactCount from parameters or
depth
andwidth
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def width(eps: Double): Int
Translates from
eps
towidth
.