Class/Object

com.twitter.algebird

Approximate

Related Docs: object Approximate | package algebird

Permalink

case class Approximate[N](min: N, estimate: N, max: N, probWithinBounds: Double)(implicit numeric: Numeric[N]) extends ApproximateSet[N] with Product with Serializable

Source
Approximate.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, ApproximateSet[N], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Approximate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ApproximateSet
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Approximate(min: N, estimate: N, max: N, probWithinBounds: Double)(implicit numeric: Numeric[N])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(right: Approximate[N]): Approximate[N]

    Permalink

    This is not distributive, because: a*(b+c) has two probability multiplications while (a*b + a*b) has three Some kind of general formula solver could possibly make this distributive, but in the mean time, it's only a group

  4. def +(right: Approximate[N]): Approximate[N]

    Permalink
  5. def -(right: Approximate[N]): Approximate[N]

    Permalink
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def boundsContain(v: N): Boolean

    Permalink

    Is this value contained within the bounds? Contract is: Prob(boundsContain(estimate)) >= probWithinBounds

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contains(v: N): ApproximateBoolean

    Permalink
    Definition Classes
    Approximate → ApproximateSet
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. val estimate: N

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def isExact: Boolean

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isOne: Boolean

    Permalink
  18. def isZero: Boolean

    Permalink
  19. val max: N

    Permalink
  20. val min: N

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def negate: Approximate[N]

    Permalink
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. implicit val numeric: Numeric[N]

    Permalink
  26. val probWithinBounds: Double

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def withMax(m: N): Approximate[N]

    Permalink
  32. def withMin(m: N): Approximate[N]

    Permalink
  33. def ~(v: N): Boolean

    Permalink

    This is so you can do: val x = Approximate(1.0, 1.1, 1.2, 0.99) and then x ~ 1.05 returns true

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ApproximateSet[N]

Inherited from AnyRef

Inherited from Any

Ungrouped