fuzzy.fuzzify.Dict
index
/fuzzy/fuzzify/Dict.py @ Get pyfuzzy at SourceForge.net. Fast, secure and Free Open Source software downloads

Fuzzification which sets adjectives values according the values in given dictionary.

 
Classes
       
fuzzy.fuzzify.Base.Base(__builtin__.object)
Dict

 
class Dict(fuzzy.fuzzify.Base.Base)
    Fuzzification method which gets adjective memberships
in a dictionary instead of values to fuzzify.
You should use in the adjectives instances of Set itself.
 
Q : What can be done with this?
 
A : Break complexity, by divide big and heavy fuzzy
systems into small ones ::
 
 input1 ----> *******
 input2 ----> * FIS *
 input3 ----> *     * ------> output
 input4 ----> *******
 
should be::
 
 input1 ----> *******
 input2 ----> *FIS 1* ----+
              *******     |
                          +--> *******
 input3 ----> ******* -------> *FIS 3* ----> output
 input4 ----> *FIS 2*          *******
              *******
 
Q : Why don't defuzzify outputs of FIS1 and FIS2 ?
 
A : Defuzzification mean data loss.
 
 
Method resolution order:
Dict
fuzzy.fuzzify.Base.Base
__builtin__.object

Methods defined here:
__init__(self, *args, **keywords)
setValue(self, variable, value)
Do not let adjectives calculate their membership values.
Instead use the provided values from dictionary.
 
@param variable: variable which adjective to set
@type variable: L{fuzzy.Variable.Variable}
@param variable: values to set the adjectives
@type: dict

Methods inherited from fuzzy.fuzzify.Base.Base:
__repr__(self)
Return representation of instance.
        
@return: representation of instance
@rtype: string

Data descriptors inherited from fuzzy.fuzzify.Base.Base:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __revision__ = '$Id: Dict.py,v 1.8 2010-10-29 19:24:41 rliebscher Exp $'