The Rectangle class is a basic Term that represents the rectangle membership function.
More...
#include <Rectangle.h>
The Rectangle class is a basic Term that represents the rectangle membership function.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Term
-
Variable
- Since
- 4.0
Definition at line 35 of file Rectangle.h.
◆ Rectangle()
fl::Rectangle::Rectangle |
( |
const std::string & |
name = "" , |
|
|
scalar |
start = fl::nan , |
|
|
scalar |
end = fl::nan , |
|
|
scalar |
height = 1.0 |
|
) |
| |
|
explicit |
◆ ~Rectangle()
virtual fl::Rectangle::~Rectangle |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::Rectangle::className |
( |
| ) |
const |
|
virtual |
Returns the name of the class of the term.
- Returns
- the name of the class of the term
Implements fl::Term.
◆ clone()
virtual Rectangle* fl::Rectangle::clone |
( |
| ) |
const |
|
virtual |
Creates a clone of the term.
- Returns
- a clone of the term
Implements fl::Term.
◆ complexity()
virtual Complexity fl::Rectangle::complexity |
( |
| ) |
const |
|
virtual |
Computes the estimated complexity of evaluating the membership function.
- Returns
- the estimated complexity of evaluating the membership function
Implements fl::Term.
◆ configure()
virtual void fl::Rectangle::configure |
( |
const std::string & |
parameters | ) |
|
|
virtual |
Configures the term with the parameters.
- Parameters
-
parameters | as "start end [height]" |
Implements fl::Term.
◆ constructor()
static Term* fl::Rectangle::constructor |
( |
| ) |
|
|
static |
◆ getEnd()
virtual scalar fl::Rectangle::getEnd |
( |
| ) |
const |
|
virtual |
Gets the end of the rectangle.
- Returns
- the end of the rectangle
◆ getStart()
virtual scalar fl::Rectangle::getStart |
( |
| ) |
const |
|
virtual |
Gets the start of the rectangle.
- Returns
- the start of the rectangle
◆ membership()
Computes the membership function evaluated at \(x\).
- Parameters
-
- Returns
- \(\begin{cases} 1h & \mbox{if $x \in [s, e]$} \cr 0h & \mbox{otherwise} \end{cases}\)
where \(h\) is the height of the Term, \(s\) is the start of the Rectangle, \(e\) is the end of the Rectangle.
Implements fl::Term.
◆ parameters()
virtual std::string fl::Rectangle::parameters |
( |
| ) |
const |
|
virtual |
Returns the parameters of the term.
- Returns
"start end [height]"
Implements fl::Term.
◆ setEnd()
virtual void fl::Rectangle::setEnd |
( |
scalar |
end | ) |
|
|
virtual |
Sets the end of the rectangle.
- Parameters
-
end | is the end of the rectangle |
◆ setStart()
virtual void fl::Rectangle::setStart |
( |
scalar |
start | ) |
|
|
virtual |
Sets the start of the rectangle.
- Parameters
-
start | is the start of the rectangle |
The documentation for this class was generated from the following file: