Bases: Term
Basic term that represents the rectangle membership function.

Equation
\(\mu(x) = \begin{cases}
h & \mbox{if } s \le x \le e \cr
0 & \mbox{otherwise}
\end{cases}\)
where
- \(h\): height of the Term
- \(s\): start of the Rectangle
- \(e\): end of the Rectangle
Attributes
Functions
configure(parameters: str) -> None
Configure the term with the parameters.
Parameters:
Name |
Type |
Description |
Default |
parameters
|
str
|
|
required
|
membership
Compute the membership function value of \(x\).
Parameters:
Name |
Type |
Description |
Default |
x
|
Scalar
|
|
required
|
Returns:
Type |
Description |
Scalar
|
\(\mu(x) = \begin{cases} h & \mbox{if } s \le x \le e \cr 0 & \mbox{otherwise} \end{cases}\)
|
parameters
Return the parameters of the term.
Returns: