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

Realize a Z-shaped fuzzy set.

 
Classes
       
fuzzy.set.SFunction.SFunction(fuzzy.set.Function.Function)
ZFunction

 
class ZFunction(fuzzy.set.SFunction.SFunction)
    Realize a Z-shaped fuzzy set::
       __
         \
         |\
         | \
         | |\
         | | \__
         | a |
         |   |
        2*delta
 
see also U{http://pyfuzzy.sourceforge.net/demo/set/ZFunction.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:
ZFunction
fuzzy.set.SFunction.SFunction
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 Z-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

Methods inherited from fuzzy.set.SFunction.SFunction:
__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: ZFunction.py,v 1.17 2010-03-28 18:44:46 rliebscher Exp $'