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

This set represents a non-fuzzy number.

 
Classes
       
fuzzy.set.Polygon.Polygon(fuzzy.set.Set.Set)
Singleton

 
class Singleton(fuzzy.set.Polygon.Polygon)
    This set represents a non-fuzzy number.
 
Its membership is only for x equal 1.::
 
          *
          |
          |
          |
     -----+-----
          x
  
See also U{http://pyfuzzy.sourceforge.net/demo/set/Singleton.png}
 
 
Method resolution order:
Singleton
fuzzy.set.Polygon.Polygon
fuzzy.set.Set.Set
__builtin__.object

Methods defined here:
__call__(self, x)
Get membership of value x.
__init__(self, x=0.0)
__repr__(self)
Return representation of instance.
        
@return: representation of instance
@rtype: string
add(self, x, y, where=1)
Don't let anyone destroy our singleton.
clear(self)
Don't let anyone destroy our singleton.
getCOG(self)
Return center of gravity.
remove(self, x, where=1)
Don't let anyone destroy our singleton.

Data descriptors defined here:
x
x
@type: float

Methods inherited from fuzzy.set.Polygon.Polygon:
getValuesX(self)
Return sequence of x-values for set.
getValuesXY(self, flat=True)
Return sequence of (x,y)-values for set.
In case of vertical slopes, y is a tuple of y-values for flat = False.
Otherwise several (x,y)-values will be generated having identical x-values.

Data descriptors inherited from fuzzy.set.Polygon.Polygon:
points
points of the polygon.
@type: list of 2-tuple (x,y)

Data and other attributes inherited from fuzzy.set.Polygon.Polygon:
BEGIN = 0
END = 1
X = 0
Y = 1

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: Singleton.py,v 1.18 2010-10-29 19:24:41 rliebscher Exp $'