| |
- __builtin__.object
-
- System
class System(__builtin__.object) |
|
Holds all stuff together. (variables, rules, ...)
Provides methods to do calculation with it.
@ivar variables: dictionary to hold all variables.
@type variables: {string:L{fuzzy.Variable.Variable}}
@ivar rules: dictionary to hold all rules.
@type rules: {string:L{fuzzy.Rule.Rule}}
@ivar description: description
@type description: string |
|
Methods defined here:
- __init__(self, description='', variables=None, rules=None)
- Constructor.
@param description: description
@type description: string
- __repr__(self)
- Return representation of instance.
@return: representation of instance
@rtype: string
- calculate(self, input, output)
- Do a complete fuzzy calculation step.
The input dictionary contains the input values for the named variables.
The output dictionary serves as container and provides the names of the
variables to read.
- defuzzify(self, output)
- Defuzzyfy the variables.
The output dictionary serves as container and provides the names of the
variables to read.
- findAdjectiveName(self, adj)
- Find name of adjective (and variable) in this system
- findRuleName(self, _rule)
- Find name of rule in this system
- findVariableName(self, var)
- Find name of variable in this system
- fuzzify(self, input)
- Fuzzify the inputs.
The input dictionary contains the input values for the named variables.
- inference(self)
- Calculate the fuzzy inference given by the rules.
- reset(self)
- Reset all memberships for the next run of calculate
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |