NumericFuzzy

com.phasmidsoftware.lascala.values.NumericFuzzy
trait NumericFuzzy[T] extends Fuzzy[T]

Attributes

Graph
Supertypes
trait Fuzzy[T]
trait Ordered[Fuzzy[T]]
trait Comparable[Fuzzy[T]]
trait () => T
class Object
trait Matchable
class Any
Show all
Known subtypes
class BaseNumericFuzzy[T]
class Bounded[T]
class Exact[T]
class Gaussian[T]

Members list

Value members

Abstract methods

def fuzziness: T

Abstract method to yield the fuzziness of this NumericFuzzy object. NOTE: that this method is not promoted to Fuzzy because non-numeric Fuzzy objects don't have a concept of fuzziness.

Abstract method to yield the fuzziness of this NumericFuzzy object. NOTE: that this method is not promoted to Fuzzy because non-numeric Fuzzy objects don't have a concept of fuzziness.

Attributes

Returns

the degree of fuzziness of this Fuzzy object (as an absolute value)

def p(t1: T, t2: T)(implicit ev: Ordering[T]): Probability

Abstract method to determine the probability that the nominal value of this Fuzzy object is between t1 and t2 (inclusive).

Abstract method to determine the probability that the nominal value of this Fuzzy object is between t1 and t2 (inclusive).

Value parameters

t1

the lower value

t2

the higher value

Attributes

Returns

a probability

Inherited methods

def <(that: Fuzzy[T]): Boolean

Returns true if this is less than that

Returns true if this is less than that

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def <=(that: Fuzzy[T]): Boolean

Returns true if this is less than or equal to that.

Returns true if this is less than or equal to that.

Attributes

Inherited from:
Ordered
def >(that: Fuzzy[T]): Boolean

Returns true if this is greater than that.

Returns true if this is greater than that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def >=(that: Fuzzy[T]): Boolean

Returns true if this is greater than or equal to that.

Returns true if this is greater than or equal to that.

Attributes

Inherited from:
Ordered
def compareTo(that: Fuzzy[T]): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def p(t: T): Probability

Method to return EITHER the Probability of the nominal value of this Fuzzy being the same as t. OR (if T is continuous Numeric, such as Double) the probability density function at t.

Method to return EITHER the Probability of the nominal value of this Fuzzy being the same as t. OR (if T is continuous Numeric, such as Double) the probability density function at t.

Value parameters

t

the value of t for which we wish to evaluate the probability of it matching the nominal value.

Attributes

Returns

either a finite Probability or the value of the probability density function at t.

Inherited from:
Fuzzy
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function0 -> Any
Inherited from:
Function0

Inherited and Abstract methods

def apply(): T

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Attributes

Returns

the result of function application.

Inherited from:
Function0
def compare(that: Fuzzy[T]): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Implement this method to determine how instances of A will be sorted.

Returns x where:

  • x &lt; 0 when this &lt; that

  • x == 0 when this == that

  • x > 0 when this > that

Value parameters

that

the instance to compare against

Attributes

Returns

an integer whose sign indicates the ordering relation between this and that

Inherited from:
Ordered
def getP(t: T): Option[Probability]

Abstract method to determine the probability that the nominal value of this Fuzzy object is actually t

Abstract method to determine the probability that the nominal value of this Fuzzy object is actually t

Value parameters

t

the candidate value

Attributes

Returns

the probability (as an Option) that t=apply(). NOTE: that the value of the probability follows the rules described in method p

Inherited from:
Fuzzy
def isExact: Boolean

Abstract method to determine if this Fuzzy object is exact (i.e. zero fuzziness)

Abstract method to determine if this Fuzzy object is exact (i.e. zero fuzziness)

Attributes

Returns

true if this object is exact, otherwise false

Inherited from:
Fuzzy
def map[U : Fractional](f: T => U, g: T => U): Fuzzy[U]

Abstract method to map this Fuzzy object into a different Fuzzy object.

Abstract method to map this Fuzzy object into a different Fuzzy object.

Type parameters

U

the underlying type of the result

Value parameters

f

a function T=>U which will be applied to the nominal value of this Fuzzy

g

a function T=>U which will be applied to the fuzzy value of this Fuzzy. NOTE: that the coefficient of delta-T must be positive.

Attributes

Returns

a Fuzzy[U] object

Inherited from:
Fuzzy