class FuzzyAssociativeMemory::FuzzySet

Copyright 2013, Prylis Incorporated.

This file is part of The Ruby Fuzzy Associative Memory github.com/cpowell/fuzzy-associative-memory You can redistribute and/or modify this software only in accordance with the terms found in the “LICENSE” file included with the library.

Public Instance Methods

centroid_x() click to toggle source
# File lib/fuzzy_associative_memory/set.rb, line 26
def centroid_x
  raise "Subclass must define!"
end
larsen(ratio) click to toggle source
# File lib/fuzzy_associative_memory/set.rb, line 30
def larsen(ratio)
  raise "Subclass must define!"
end
mamdani(ratio) click to toggle source
# File lib/fuzzy_associative_memory/set.rb, line 34
def mamdani(ratio)
  raise "Subclass must define!"
end
mu(value) click to toggle source

mu (named for the symbol) is the ‘membership function’, sometimes known as the ‘degree of fit’ or the ‘degree of membership’. This computed value informs HOW MUCH this set activates or fires for the provided input value. A DoM of zero means that this set fits the input not at all; a DoM of 1.0 means that this set fires / fits completely.

  • Args :

    • value -> the input value in question

  • Returns :

    • a ‘fitness’ degree between 0 and 1.0

# File lib/fuzzy_associative_memory/set.rb, line 22
def mu(value)
  raise "Subclass must define!"
end