Packages

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, Product, Equals, ApproximateSet[N], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Approximate
  2. Serializable
  3. Product
  4. Equals
  5. ApproximateSet
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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

  4. def +(right: Approximate[N]): Approximate[N]
  5. def -(right: Approximate[N]): Approximate[N]
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def boundsContain(v: N): Boolean

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

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def contains(v: N): ApproximateBoolean
    Definition Classes
    Approximate → ApproximateSet
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val estimate: N
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def isExact: Boolean
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isOne: Boolean
  18. def isZero: Boolean
  19. val max: N
  20. val min: N
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def negate: Approximate[N]
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. implicit val numeric: Numeric[N]
  26. val probWithinBounds: Double
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. def withMax(m: N): Approximate[N]
  33. def withMin(m: N): Approximate[N]
  34. def ~(v: N): Boolean

    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 Product

Inherited from Equals

Inherited from ApproximateSet[N]

Inherited from AnyRef

Inherited from Any

Ungrouped