NumberIsFuzzy

com.phasmidsoftware.number.core.numerical.FuzzyNumber.NumberIsFuzzy
object NumberIsFuzzy extends Fuzzy[Number]

Definition of concrete (implicit) type class object for FuzzyNumber being Fuzzy.

Attributes

Graph
Supertypes
trait Fuzzy[Number]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def same(confidence: Double)(x1: Number, x2: Number): 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 x1 and x2 are considered equal with probability p.