com.twitter.algebird

Approximate

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

Linear Supertypes
Serializable, Serializable, Product, Equals, ApproximateSet[N], AnyRef, Any
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    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

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

  6. def -(right: Approximate[N]): Approximate[N]

  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. final def asInstanceOf[T0]: T0

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

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

  11. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  14. val estimate: N

  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def isExact: Boolean

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isOne: Boolean

  20. def isZero: Boolean

  21. val max: N

  22. val min: N

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def negate: Approximate[N]

  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

  28. val probWithinBounds: Double

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

    Definition Classes
    AnyRef
  30. final def wait(): Unit

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

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

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

  34. def withMin(m: N): Approximate[N]

  35. def ~(v: N): Boolean

    This is so you can do: val x = Approximate(1.

    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