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

Class Set

source code


Base class for all types of fuzzy sets.

Instance Methods [hide private]
float
__call__(self, x)
Return membership of x in this fuzzy set.
source code
 
getValuesXY(self, flat=True)
Internal helper function to help convert arbitrary fuzzy sets in fuzzy sets represented by a polygon.
source code
 
getValuesX(self)
Internal helper function to help convert arbitrary fuzzy sets in fuzzy sets represented by a polygon.
source code
float
getCOG(self)
Returns center of gravity.
source code
string
__repr__(self)
Return representation of instance.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, x)
(Call operator)

source code 

Return membership of x in this fuzzy set. This method makes the set work like a function.

Parameters:
  • x (float) - value x
Returns: float
membership for value x

getCOG(self)

source code 

Returns center of gravity.

Returns: float
x-value of center of gravity

__repr__(self)
(Representation operator)

source code 

Return representation of instance.

Returns: string
representation of instance
Overrides: object.__repr__