Package fuzz :: Module fnumber :: Class FuzzyNumber
[hide private]
[frames] | no frames]

Class FuzzyNumber

source code

object --+
         |
        FuzzyNumber
Known Subclasses:

Fuzzy number class (abstract base class for all fuzzy numbers).

Instance Methods [hide private]
 
__init__(self)
Constructor.
source code
string
__repr__(self)
Return string representation of a trapezoidal fuzzy number.
source code
string
__str__(self)
Return string representation of a trapezoidal fuzzy number.
source code
 
mu(self, value)
Return the membership level of a value in the universal set domain of the fuzzy number.
source code
 
normalize(self)
Normalize this fuzzy number, so that its height is equal to 1.0.
source code

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

Class Variables [hide private]
  kernel = None
hash(x)
  support = None
hash(x)
  height = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor. Not to be instantiated directly.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return string representation of a trapezoidal fuzzy number.

Returns: string
String representation.
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Return string representation of a trapezoidal fuzzy number.

Returns: string
String representation.
Overrides: object.__str__

mu(self, value)

source code 

Return the membership level of a value in the universal set domain of the fuzzy number.

Parameters:
  • value (float) - A value in the universal set.