fuzzy.set.PiFunction
index
/fuzzy/set/PiFunction.py @ Get pyfuzzy at SourceForge.net. Fast, secure and Free Open Source software downloads

Realize a Pi-shaped fuzzy set

 
Classes
       
fuzzy.set.Function.Function(fuzzy.set.Set.Set)
PiFunction

 
class PiFunction(fuzzy.set.Function.Function)
    Realize a Pi-shaped fuzzy set::
    
            _
           /|\
          / | \
        _/  |  \_
         |  a  |
         |     |
          delta
 
See also U{http://pyfuzzy.sourceforge.net/demo/set/PiFunction.png}
 
 
@ivar a: center of set.
@type a: float
@ivar delta: absolute distance between x-values for minimum and maximum.
@type delta: float
 
 
Method resolution order:
PiFunction
fuzzy.set.Function.Function
fuzzy.set.Set.Set
__builtin__.object

Methods defined here:
__call__(self, x)
Return membership of x in this fuzzy set.
This method makes the set work like a function.
 
@param x: value for which the membership is to calculate
@type x: float
@return: membership
@rtype: float
__init__(self, a=0.0, delta=1.0)
Initialize a Pi-shaped fuzzy set.
 
@param a: center of set
@type a: float
@param delta: absolute distance between x-values for minimum and maximum
@type delta: float
__repr__(self)
Return representation of instance.
        
@return: representation of instance
@rtype: string
getCOG(self)
Return center of gravity.
getValuesX(self)
Return sequence of x-values so we get a smooth function.

Methods inherited from fuzzy.set.Set.Set:
getValuesXY(self, flat=True)
Internal helper function to help convert arbitrary fuzzy sets in 
fuzzy sets represented by a polygon.

Data descriptors inherited from fuzzy.set.Set.Set:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __revision__ = '$Id: PiFunction.py,v 1.19 2010-03-28 18:44:46 rliebscher Exp $'