Package svs_simulation :: Package ai_lib :: Module fuzzy :: Class FuzzyVariable
[show private | hide private]
[frames | no frames]

Class FuzzyVariable


Encapsulation of a fuzzy super set.
Method Summary
  __init__(self, name, minValue, maxValue, unit)
  __getitem__(self, item)
Returns subset with name matching item.
  addSubSet(self, setName, fitVector)
Adds new subset.
  defuzzify(self)
Returns infered result of fuzzy evaluation.
  getSegunoConstantForSubSet(self, setName)
Returns the Seguno constant for a specific set.
  reset(self)
Sets set memenrs DOM to 0.0.
  segunoValueIs(self, index, threshold)
Returns result of valueIs operation as the Seguno value.
  setInputValue(self, inputValue)
Sets new input value for variable, and sets all member sets DOM to 0.0.
  valueInSet(self, index, setName)
Returns the membership value in a specific set.
  valueIs(self, index, threshold)
Returns list of sets in which the tested value has a member value greater then the threshold.
  valuesFor(self, index)
Returns list of membership values for each of the subsets within this set.

Method Details

__getitem__(self, item)
(Indexing operator)

Returns subset with name matching item.
Parameters:
item - name for set
           (type=string)

addSubSet(self, setName, fitVector)

Adds new subset.
Parameters:
setName - name for set
           (type=string)
fitVector - profile of values for set
           (type=list)

defuzzify(self)

Returns infered result of fuzzy evaluation.

getSegunoConstantForSubSet(self, setName)

Returns the Seguno constant for a specific set.
Parameters:
setName - name of set to inspect
           (type=string)

reset(self)

Sets set memenrs DOM to 0.0.

segunoValueIs(self, index, threshold=0.0)

Returns result of valueIs operation as the Seguno value.
Parameters:
index - value to test in sets
           (type=float or integer)
threshold - threshold for inclusion
           (type=float)

setInputValue(self, inputValue)

Sets new input value for variable, and sets all member sets DOM to 0.0.

valueInSet(self, index, setName)

Returns the membership value in a specific set.
Parameters:
index - value to test in sets
           (type=float or integer)
setName - name of set to inspect
           (type=string)

valueIs(self, index, threshold=0.0)

Returns list of sets in which the tested value has a member value greater then the threshold.
Parameters:
index - value to test in sets
           (type=float or integer)
threshold - threshold for inclusion
           (type=float)

valuesFor(self, index)

Returns list of membership values for each of the subsets within this set.
Parameters:
index - value to test in sets
           (type=float or integer)

Generated by Epydoc 2.1 on Thu Oct 20 15:30:25 2005 http://epydoc.sf.net