Fuzzy

com.phasmidsoftware.number.core.numerical.Fuzzy
trait Fuzzy[X]

Type class which adds fuzzy behavior to a type X.

Type parameters

X

the type to be made fuzzy.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FieldIsFuzzy
object NumberIsFuzzy

Members list

Value members

Abstract methods

def same(confidence: Double = ...)(x1: X, x2: X): Boolean

Method to determine if x1 and x2 can be considered the same with a probability of p.

Method to determine if x1 and x2 can be considered the same with a probability of p.

Value parameters

confidence

a probability between 0 and 1 -- 0 would always result in true; 1 will result in false unless x1 actually is x2.

x1

a value of X.

x2

a value of X.

Attributes

Returns

true if t1 and t2 are considered equal with probability p.