Package fuzzy :: Module Adjective :: Class Adjective
[hide private]
[frames] | no frames]

Class Adjective

source code


Describes a ... of a variable.

Instance Methods [hide private]
 
__init__(self, set=None, COM=None)
Initialize adjective.
source code
 
setMembershipForValue(self, value)
Get membership for an input value from the fuzzy set.
source code
 
getMembership(self)
Return membership set in this adjective.
source code
 
setMembership(self, value)
Set membership of this adjective as result of a rule calculation, if already set use COM norm to merge old and new value.
source code
 
reset(self)
Reset membership to unknown value (None).
source code
 
getName(self, system)
Find own name in given system.
source code
string
__repr__(self)
Return representation of instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
fuzzy.norm.Norm.Norm _COM = fuzzy.norm.Max.Max()
class default is instance variable is None
  _set = fuzzy.set.Set.Set()
Instance Variables [hide private]
fuzzy.norm.Norm.Norm COM
norm (if None the class default _COM is used.)
float membership
set or calculated membership
fuzzy.set.Set.Set set
fuzzy set
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, set=None, COM=None)
(Constructor)

source code 

Initialize adjective.

Parameters:
Overrides: object.__init__

getName(self, system)

source code 

Find own name in given system. Returns a tuple (var_name,adj_name) of None.

__repr__(self)
(Representation operator)

source code 

Return representation of instance.

Returns: string
representation of instance
Overrides: object.__repr__