Fuzz

com.phasmidsoftware.number.core.numerical.Fuzz
trait Fuzz[T] extends WithFuzziness

Trait which models the behavior of something with (maybe) fuzziness.

See also related trait Fuzzy[X] but note that there, the parametric type X corresponds to the quantity itself, not its fuzziness.

Type parameters

T

the type of fuzziness.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FuzzyDouble
class FuzzyNumber
class ExactNumber
trait Number

Members list

Value members

Abstract methods

def addFuzz(f: Fuzziness[T]): 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.

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.

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.

Concrete methods

def noFuzz[U >: T : 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 and Abstract methods

def fuzz: Option[Fuzziness[Double]]

Retrieves an optional fuzziness value associated with this instance.

Retrieves an optional fuzziness value associated with this instance.

The fuzziness value, if present, provides information about the level of uncertainty or imprecision, modeled as a Fuzziness[Double].

Attributes

Returns

an Option containing the Fuzziness[Double] value if defined, or None if no fuzziness is specified.

Inherited from:
WithFuzziness