DoubleContinuousValue

intervalidus.ContinuousValue.DoubleContinuousValue
object DoubleContinuousValue extends ContinuousValue[Double]

Type class for doubles as continuous values.

Attributes

Source
ContinuousValue.scala
Graph
Supertypes
trait ContinuousValue[Double]
trait DomainValueLike[Double]
trait Ordering[Double]
trait PartialOrdering[Double]
trait Equiv[Double]
trait Serializable
trait Comparator[Double]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

class OrderingOps(lhs: T)

Attributes

Inherited from:
Ordering
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

override def compare(lhs: Double, rhs: Double): Int

Attributes

Definition Classes
Ordering -> Comparator
Source
ContinuousValue.scala
override def orderedHashOf(x: Double): Double

A totally ordered hash of a value used for mapping intervals to box search trees in double space. If x1 < x2, then orderedHashOf(x1) ≤ orderedHashOf(x2), i.e., it is "weakly monotonic". See https://en.wikipedia.org/wiki/Monotonic_function.

A totally ordered hash of a value used for mapping intervals to box search trees in double space. If x1 < x2, then orderedHashOf(x1) ≤ orderedHashOf(x2), i.e., it is "weakly monotonic". See https://en.wikipedia.org/wiki/Monotonic_function.

Attributes

Note

having equal orderedHashOf results for different inputs is allowed, but represents a hash collision. If the orderedHashOf method has too many collisions, the performance of box search trees will suffer.

Definition Classes
Source
ContinuousValue.scala

Inherited methods

override def bracePunctuation: String

Punctuation used when representing interval in brace notation, e.g., "[a..b]" for discrete and "[a, b]" for continuous.

Punctuation used when representing interval in brace notation, e.g., "[a..b]" for discrete and "[a, b]" for continuous.

Attributes

Definition Classes
Inherited from:
ContinuousValue
Source
ContinuousValue.scala
override def equiv(x: Double, y: Double): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering -> Equiv
Inherited from:
Ordering
override def gt(x: Double, y: Double): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def gteq(x: Double, y: Double): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def isReverseOf(other: Ordering[_]): Boolean

Attributes

Inherited from:
Ordering
override def lt(x: Double, y: Double): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def lteq(x: Double, y: Double): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def max[U <: Double](x: U, y: U): U

Attributes

Inherited from:
Ordering
def min[U <: Double](x: U, y: U): U

Attributes

Inherited from:
Ordering
def on[U](f: U => Double): Ordering[U]

Attributes

Inherited from:
Ordering
def orElse(other: Ordering[Double]): Ordering[Double]

Attributes

Inherited from:
Ordering
def orElseBy[S](f: Double => S)(implicit ord: Ordering[S]): Ordering[Double]

Attributes

Inherited from:
Ordering
override def reverse: Ordering[Double]

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def reversed(): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: Double <: <FromJavaObject>, _ <: U]): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: Double <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparing(x$0: Comparator[_ >: Double <: <FromJavaObject>]): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: Double <: <FromJavaObject>]): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: Double <: <FromJavaObject>]): Comparator[Double]

Attributes

Inherited from:
Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: Double <: <FromJavaObject>]): Comparator[Double]

Attributes

Inherited from:
Comparator
def tryCompare(x: Double, y: Double): Some[Int]

Attributes

Inherited from:
Ordering

Concrete fields

override val maxValue: Double

Maximum value (upper bound). See https://en.wikipedia.org/wiki/Maximum_and_minimum.

Maximum value (upper bound). See https://en.wikipedia.org/wiki/Maximum_and_minimum.

Attributes

Source
ContinuousValue.scala
override val minValue: Double

Minimum value (lower bound). See https://en.wikipedia.org/wiki/Maximum_and_minimum.

Minimum value (lower bound). See https://en.wikipedia.org/wiki/Maximum_and_minimum.

Attributes

Source
ContinuousValue.scala

Extensions

Inherited extensions

extension (lhs: Double)
def orderedHashValue: Double

A totally ordered hash of a value used for mapping intervals to box search trees in double space. If x1 < x2, then orderedHashOf(x1) ≤ orderedHashOf(x2), i.e., it is "weakly monotonic" in that it is non-decreasing. See https://en.wikipedia.org/wiki/Monotonic_function.

A totally ordered hash of a value used for mapping intervals to box search trees in double space. If x1 < x2, then orderedHashOf(x1) ≤ orderedHashOf(x2), i.e., it is "weakly monotonic" in that it is non-decreasing. See https://en.wikipedia.org/wiki/Monotonic_function.

Attributes

Note

having equal orderedHashOf results for different inputs is allowed, but represents a hash collision. If the orderedHashOf method has too many collisions, the performance of box search trees will suffer.

Inherited from:
DomainValueLike
Source
DomainValueLike.scala

Implicits

Inherited implicits

implicit def mkOrderingOps(lhs: Double): OrderingOps

Attributes

Inherited from:
Ordering