MappedFuzzy

com.phasmidsoftware.lascala.values.BaseNumericFuzzy.MappedFuzzy
class MappedFuzzy[U](f_: BaseNumericFuzzy.this.T => U, g_: BaseNumericFuzzy.this.T => U, val isExact: Boolean)(using evidence$1: Fractional[U]) extends NumericFuzzy[U]

This class is for lazy map operations. However, at present, it is not used.

Type parameters

U

the underlying type of the result

Value parameters

f_

the value function

g_

the derivative function

isExact

is Exact

Attributes

Graph
Supertypes
trait NumericFuzzy[U]
trait Fuzzy[U]
trait Ordered[Fuzzy[U]]
trait Comparable[Fuzzy[U]]
trait () => U
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(): U

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.

def compare(that: Fuzzy[U]): 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 < 0 when this < 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

def fuzziness: U

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 getP(u: U): 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

def map[V : Fractional](f: U => V, g: U => V): Fuzzy[V]

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

def p(t1: U, t2: U)(implicit ev: Ordering[U]): 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[U]): 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[U]): 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[U]): 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[U]): 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[U]): 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: U): 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

Concrete fields

val 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