Class: FuzzyAssociativeMemory::FuzzySet

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzzy_associative_memory/set.rb

Overview

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.

Direct Known Subclasses

Trapezoid, Triangle

Instance Method Summary collapse

Instance Method Details

#centroid_xObject



26
27
28
# File 'lib/fuzzy_associative_memory/set.rb', line 26

def centroid_x
  raise "Subclass must define!"
end

#larsen(ratio) ⇒ Object



30
31
32
# File 'lib/fuzzy_associative_memory/set.rb', line 30

def larsen(ratio)
  raise "Subclass must define!"
end

#mamdani(ratio) ⇒ Object



34
35
36
# File 'lib/fuzzy_associative_memory/set.rb', line 34

def mamdani(ratio)
  raise "Subclass must define!"
end

#mu(value) ⇒ Object

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



22
23
24
# File 'lib/fuzzy_associative_memory/set.rb', line 22

def mu(value)
  raise "Subclass must define!"
end