|
- Method resolution order:
- Triangle
- fuzzy.set.Polygon.Polygon
- fuzzy.set.Set.Set
- __builtin__.object
Methods defined here:
- __init__(self, m=0.0, alpha=1.0, beta=1.0, y_max=1.0, y_min=0.0)
- Initialize a triangle-shaped fuzzy set.
@param y_max: y-value at top of the triangle (1.0)
@param y_min: y-value outside the triangle (0.0)
@param m: x-value of top of triangle (0.0)
@param alpha: distance of left corner to m (1.0)
@param beta: distance of right corner to m (1.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 triangle.
- clear(self)
- Don't let anyone destroy our triangle.
- remove(self, x, where=1)
- Don't let anyone destroy our triangle.
Data descriptors defined here:
- alpha
- distance of left corner to m
@type: float
- beta
- distance of right corner to m
@type: float
- m
- x-value of top of triangle
@type: float
- y_max
- y-value at top of the triangle
@type: float
- y_min
- y-value outside the triangle
@type: float
Methods inherited from fuzzy.set.Polygon.Polygon:
- __call__(self, x)
- Get membership of value x.
- getCOG(self)
- Return center of gravity.
- 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)
|