Rel

vecxt_re.Rel$package.Rel
object Rel

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Rel.type

Members list

Value members

Concrete methods

def apply(v: Double, u: PriceUnit): Rel

e.g. Rel(102, PriceUnit.Pts) is 1.02 and Rel(50, PriceUnit.Bps) is 0.005

e.g. Rel(102, PriceUnit.Pts) is 1.02 and Rel(50, PriceUnit.Bps) is 0.005

Attributes

Concrete fields

val one: Rel

Givens

Givens

given given_CanEqual_Rel_Rel: CanEqual[Rel, Rel]
given given_Ordering_R: [R <: Rel] => Ordering[R]

Extensions

Extensions

extension (x: Rel)
def approxEq(y: Rel, tol: Double = ...): Boolean
inline def canonical: Double

The canonical value, where 1.0 is 100%.

The canonical value, where 1.0 is 100%.

Attributes

def in(u: PriceUnit): Double

The value expressed in unit u, e.g. Rel(0.005, PriceUnit.One).in(PriceUnit.Bps) == 50.0

The value expressed in unit u, e.g. Rel(0.005, PriceUnit.One).in(PriceUnit.Bps) == 50.0

Attributes

extension [R <: Rel](x: R)
def *(k: Double): R
def +(y: R): R
def -(y: R): R
def /(k: Double): R
def /(y: Rel): Double
def unary_-: R
extension (xs: Array[_ <: Rel])
inline def canonical: Array[Double]
extension [R <: Rel](xs: Array[_ <: R])
def *(k: Double): Array[R]
def +(ys: Array[_ <: R]): Array[R]
def -(ys: Array[_ <: R]): Array[R]