FuzzyDouble

com.phasmidsoftware.number.core.numerical.FuzzyDouble
See theFuzzyDouble companion object
case class FuzzyDouble(x: Double, fuzz: Option[Fuzziness[Double]]) extends Fuzz[Double]

Represents a numeric value with an optional level of fuzziness or uncertainty. Fuzziness quantifies the margin of error or uncertainty associated with the value. NOTE that this class has no obvious "raison d'etre." It is structurally the same as Real in the algebra module, but missing a lot of functionality. CONSIDER eliminating this class.

Value parameters

fuzz

An optional fuzziness object that describes the level and type of uncertainty.

x

The numeric value represented by this instance.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Fuzz[Double]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addFuzz(f: Fuzziness[Double]): Fuzz[Double]

Adds the provided fuzziness to the current Fuzz[T] and returns the resulting value. This method may utilize the fuzziness parameter for calculations where applicable. TESTME

Adds the provided fuzziness to the current Fuzz[T] and returns the resulting value. This method may utilize the fuzziness parameter for calculations where applicable. TESTME

Value parameters

f

the fuzziness to add, represented as a Fuzziness[T].

Attributes

Returns

a Number that represents the result of adding the provided fuzziness.

Inherited methods

def noFuzz[U >: Double : HasValue]: Fuzziness[U]

Creates a fuzziness value with zero magnitude and a Gaussian distribution. This method provides a representation of deterministic or non-fuzzy values by ensuring that the fuzziness magnitude is explicitly zero.

Creates a fuzziness value with zero magnitude and a Gaussian distribution. This method provides a representation of deterministic or non-fuzzy values by ensuring that the fuzziness magnitude is explicitly zero.

Type parameters

U

a supertype of T that also satisfies the HasValue type class constraint.

Attributes

Returns

a Fuzziness[U] instance with zero magnitude and Gaussian shape.

Inherited from:
Fuzz
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