Package fuzz :: Module fset :: Class FuzzyElement
[hide private]
[frames] | no frames]

Class FuzzyElement

source code

        object --+    
                 |    
iset.IndexedMember --+
                     |
                    FuzzyElement

Fuzzy element class.

Instance Methods [hide private]
 
__init__(self, index, mu=1.0)
Constructor.
source code
str
__repr__(self)
Return the canonical representation of a fuzzy element.
source code
str
__str__(self)
Return the string representation of a fuzzy element.
source code

Inherited from iset.IndexedMember: __eq__, __hash__, __ne__

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

Properties [hide private]
float mu
The mu value of this fuzzy element.
  _index
  _mu

Inherited from iset.IndexedMember: index

Inherited from object: __class__

Method Details [hide private]

__init__(self, index, mu=1.0)
(Constructor)

source code 

Constructor.

Parameters:
  • index (object) - The object for this member.
  • mu (float) - The membership degree of this member.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return the canonical representation of a fuzzy element.

Returns: str
Canonical representation.
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Return the string representation of a fuzzy element.

Returns: str
String representation.
Overrides: object.__str__

Property Details [hide private]

mu

The mu value of this fuzzy element.

Get Method:
unreachable.mu(self) - The mu value of this fuzzy element.
Set Method:
unreachable.mu(self, value) - Set the mu value of this fuzzy element.
Type:
float