MonadicOperationScale

com.phasmidsoftware.number.core.inner.MonadicOperationScale

This monadic operation is used to scale a Value by a Rational. CONSIDER eliminating this unused operation.

Value parameters

r

the scale factor (a Rational).

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

A MonadicFunctions value containing a tuple of functions each responsible for scaling a specific numeric type (Int, Rational, and Double) by a given scaling factor r.

A MonadicFunctions value containing a tuple of functions each responsible for scaling a specific numeric type (Int, Rational, and Double) by a given scaling factor r.

  • fInt: Defined for scaling Int values by r when r is a whole number. If r is not a whole number, an error is returned.
  • fRational: A function for scaling Rational values by the given Rational r.
  • fDouble: A function for scaling Double values by the corresponding Double representation of r.

Attributes

val fuzz: Option[Int]

Relative precision, as used by Fuzziness.createFuzz.

Relative precision, as used by Fuzziness.createFuzz.

Attributes

val relativeFuzz: Double => Double

Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.

Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.

Attributes