Rectangle¶
- class floulib.Rectangle(a, b, **kwargs)¶
Bases:
LRClass to define rectangular membership function.
Note
Rectangle is a subclass of
LR, therefore all methods inLRmay be used.LR is a subclass of
Multilinear, therefore all methods inMultilinearmay be used.Multilinear is a subclass of
Plot, therefore all methods inPlotmay also be used.- __init__(a, b, **kwargs)¶
Constructor
- Parameters:
a (float) – Left coordinate of the support.
b (float) – Right coordinate of the support.
**kwargs – Keyword arguments transmitted to the parent class.
- Return type:
None.
Examples
>>> from floulib import Rectangle >>> A = Rectangle(1,2, label = 'A') >>> A.plot(xlim = [0,3])