object Interval extends Serializable
- Alphabetic
- By Inheritance
- Interval
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- def above[A](a: A)(implicit arg0: Order[A]): Interval[A]
- def all[A](implicit arg0: Order[A]): Interval[A]
- def apply(s: String): Interval[Rational]
- def apply[A](lower: A, upper: A)(implicit arg0: Order[A]): Interval[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atOrAbove[A](a: A)(implicit arg0: Order[A]): Interval[A]
- def atOrBelow[A](a: A)(implicit arg0: Order[A]): Interval[A]
- def below[A](a: A)(implicit arg0: Order[A]): Interval[A]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def closed[A](lower: A, upper: A)(implicit arg0: Order[A]): Interval[A]
- def empty[A](implicit o: Order[A]): Interval[A]
- implicit def eq[A](implicit arg0: Eq[A]): Eq[Interval[A]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errorBounds(d: Double): Interval[Rational]
Return an Interval[Rational] that corresponds to the error bounds for the given Double value.
Return an Interval[Rational] that corresponds to the error bounds for the given Double value.
The error bounds are represented as a closed interval, whose lower point is midway between d and the adjacent Double value below it. Similarly, the upper bound is the point midway between d and the adjacent Double value above it.
There are three Double values that return "special" intervals:
Infinity => Interval.above(Double.MaxValue) -Infinity => Interval.below(Double.MinValue) NaN => Interval.empty
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromBounds[A](lower: Bound[A], upper: Bound[A])(implicit arg0: Order[A]): Interval[A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def open[A](lower: A, upper: A)(implicit arg0: Order[A]): Interval[A]
- def openLower[A](lower: A, upper: A)(implicit arg0: Order[A]): Interval[A]
- def openUpper[A](lower: A, upper: A)(implicit arg0: Order[A]): Interval[A]
- def point[A](a: A)(implicit arg0: Order[A]): Interval[A]
- implicit def semiring[A](implicit ev: Ring[A], o: Order[A]): Semiring[Interval[A]]
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def zero[A](implicit o: Order[A], r: Semiring[A]): Interval[A]