Packages

final class DrxDouble extends AnyVal

Source
numeric.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DrxDouble
  2. AnyVal
  3. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DrxDouble(v: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def %/(ref: Double): Double

    alias to relativeChange percent operator where the divisor is the reference

  4. def *(c: Complex): Complex
  5. def *(vec: Vec): Vec
  6. def *[A](other: BaseValue[A]): A
  7. def **(e: Double): Double
  8. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DrxDouble toany2stringadd[DrxDouble] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  9. def +-(w: Double): Bound[Double]
  10. def ->[B](y: B): (DrxDouble, B)
    Implicit
    This member is added by an implicit conversion from DrxDouble toArrowAssoc[DrxDouble] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  12. def G: Double
  13. def M: Double
  14. def acos: Double
  15. def acosd: Double

    ArcCosine returning degrees instead of radians: acos(x)*180/pi

  16. def acosh: Double

    ln(x + sqrt(x^2 - 1))

  17. def add(k: Double): Double
  18. def applyIf(t: Boolean, f: (DrxDouble) => DrxDouble): DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  19. def applyIf(t: (DrxDouble) => Boolean)(f: (DrxDouble) => DrxDouble): DrxDouble

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def asin: Double
  22. def asind: Double

    ArcSine returning degrees instead of radians: asin(x)*180/pi

  23. def asinh: Double

    ln(x + sqrt(x^2 + 1))

  24. def atan: Double
  25. def atan2(a: Double): Double
  26. def atand: Double

    ArcTan returning degrees instead of radians: atan(x)*180/pi

  27. def atanh: Double

    ln((1+v)/(1-v))/2

  28. def cos: Double
  29. def cos2: Double
  30. def cosd: Double

    Cosine assuming degrees instead of radians: cos(x*pi/180)

  31. def cosh: Double

    (ex + e-x)/2

  32. def dB: Double

    note this assumes a power based ratio, a root-power (field) quanity needs to be multiplied by 2

  33. def day: Time
  34. def deg: Angle
  35. def diff(w: Double): Double
  36. def div(k: Double): Double
  37. def divCeil(k: Double): Long
  38. def divFloor(k: Double): Long
  39. def divOption(w: Double): Option[Double]
  40. def double: Double
  41. def elementOf(xs: Set[DrxDouble]): Boolean
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  42. def ensuring(cond: (DrxDouble) => Boolean, msg: => Any): DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toEnsuring[DrxDouble] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  43. def ensuring(cond: (DrxDouble) => Boolean): DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toEnsuring[DrxDouble] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  44. def ensuring(cond: Boolean, msg: => Any): DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toEnsuring[DrxDouble] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  45. def ensuring(cond: Boolean): DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toEnsuring[DrxDouble] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  46. def erf: Double

    erf --max error: 1.5×10−7 https://en.wikipedia.org/wiki/Error_function#Numerical_approximations A+S

  47. def even: Boolean
  48. def exp(base: Double): Double

    nice way to flip things around rather than using base.pow(v); useful for chained equation descriptions

  49. def exp: Double
  50. def exp10: Double
  51. def exp2: Double
  52. def expE: Double
  53. def foldLeft[T](acc: T)(f: (T) => T): T
  54. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DrxDouble toStringFormat[DrxDouble] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  55. def ft: Length
  56. def g0: Acceleration
  57. def gamma: Double

    gamma --max-error 1E-14 https://en.wikipedia.org/wiki/Lanczos_approximation https://rosettacode.org/wiki/Gamma_function#Scala

  58. def get: Option[Double]
  59. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  60. def half: Double
  61. def hr: Time
  62. def hypot(a: Double): Double
  63. def hz: Frequency
  64. def i: Complex

    imaginary number notation

  65. def ierf: Double
  66. def inv: Double
  67. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  68. def isReal: Boolean
  69. def isUnreal: Boolean
  70. def iterate[T](acc: T)(f: (T) => T): T
  71. def k: Double
  72. def km: Length
  73. def lerp(b: Double)(amt: Double): Double
  74. def ln: Double
  75. def log(b: Double): Double
  76. def log: Double
  77. def log10: Double
  78. def log2: Double
  79. def logE: Double
  80. def m: Length
  81. def mapAbs(f: (Double) => Double): Double

    apply an operation to the absolute value and return the double with the original sgn.

    apply an operation to the absolute value and return the double with the original sgn. -1.2.mapAbs(_.ceil) => -2.0 ; -1.2.ceil => 1.0

  82. def mean(w: Double): Double
  83. def minute: Time
  84. def modOption(w: Double): Option[Double]
  85. def month: Time
  86. def ms: Time
  87. def mul(k: Double): Double
  88. def neg: Double
  89. def next: Double
  90. def noneIf(f: (DrxDouble) => Boolean): Option[DrxDouble]
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  91. def not: Double
  92. def ns: Time
  93. def odd: Boolean
  94. def optionIf(f: (DrxDouble) => Boolean): Option[DrxDouble]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  95. def percent: Ratio

    ratio construction by percent

  96. def percentError(ref: Double): Double
  97. def plusOrMinus(w: Double): Bound[Double]
  98. def pow(e: Double): Double
  99. def preApply[B](f: (DrxDouble) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  100. def prev: Double
  101. def px: Weight
  102. def rad: Angle
  103. def relativeChange(ref: Double): Double

    relativeChange percent operator where the divisor is the reference https://en.wikipedia.org/wiki/Approximation_error https://en.wikipedia.org/wiki/Relative_change_and_difference

  104. def relativeDifference(w: Double): Double
  105. def s: Time
  106. def sat(max: Double): Double
  107. def sat(min: Double, max: Double): Double
  108. def sgn: Double
  109. def sgnOf(w: Double): Double
  110. def sideEffect(f: (DrxDouble) => Unit): DrxDouble

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  111. def sigmoid: Double
  112. def sin: Double
  113. def sin2: Double
  114. def sind: Double

    Sine assuming degrees instead of radians: sin(x*pi/180)

  115. def sinh: Double

    (ex - e-x)/2

  116. def someIf(f: (DrxDouble) => Boolean): Option[DrxDouble]
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  117. def sq: Double
  118. def sqrt: Double
  119. def sub(k: Double): Double
  120. def take(n: Int): Iterable[Double]
  121. def tan: Double
  122. def tan2: Double
  123. def tand: Double

    Tan assuming degrees instead of radians: tan(x*pi/180)

  124. def tanh: Double

    sinh/cosh => (e2x - 1)/(e2x + 1)

  125. val thisAny: DrxDouble
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  126. def times(f: => Unit): Unit
  127. def toBig: BigDecimal
  128. def toBits: Long
  129. def toByteArray: Array[Byte]
  130. def toRatio: Ratio
  131. def toString(): String
    Definition Classes
    Any
  132. def todB: Double
  133. val v: Double
  134. def x: Vec
  135. def xy: Vec
  136. def xyz: Vec
  137. def y: Vec
  138. def yr: Time
  139. def z: Vec
  140. def ||(w: Double): Double
  141. def ~(w: Double): Bound[Double]
  142. def ~=(w: Double)(implicit eps: Eps): Boolean
  143. def ~>(w: Double): Bound[Double]

Deprecated Value Members

  1. def #^(e: Double): Double
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.13) just use **, don't duplicate operator symbols

  2. def /:[T](acc: T)(f: (T) => T): T
    Annotations
    @deprecated
    Deprecated

    (Since version dp) use foldLeft instead in scala-2.13

  3. def ?>(f: (DrxDouble) => Boolean): Option[DrxDouble]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  4. def |>[B](f: (DrxDouble) => B): B
    Implicit
    This member is added by an implicit conversion from DrxDouble toDrxAny[DrxDouble] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  5. def [B](y: B): (DrxDouble, B)
    Implicit
    This member is added by an implicit conversion from DrxDouble toArrowAssoc[DrxDouble] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion richDrxAny fromDrxDouble to DrxAny[DrxDouble]

Inherited by implicit conversion any2stringadd fromDrxDouble to any2stringadd[DrxDouble]

Inherited by implicit conversion StringFormat fromDrxDouble to StringFormat[DrxDouble]

Inherited by implicit conversion Ensuring fromDrxDouble to Ensuring[DrxDouble]

Inherited by implicit conversion ArrowAssoc fromDrxDouble to ArrowAssoc[DrxDouble]

Ungrouped