The ZShape class is an edge Term that represents the Z-shaped membership function.
More...
#include <ZShape.h>
The ZShape class is an edge Term that represents the Z-shaped membership function.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Term
-
Variable
- Since
- 4.0
Definition at line 36 of file ZShape.h.
◆ ZShape()
fl::ZShape::ZShape |
( |
const std::string & |
name = "" , |
|
|
scalar |
_start = fl::nan , |
|
|
scalar |
_end = fl::nan , |
|
|
scalar |
_height = 1.0 |
|
) |
| |
|
explicit |
◆ ~ZShape()
virtual fl::ZShape::~ZShape |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::ZShape::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 ZShape* fl::ZShape::clone |
( |
| ) |
const |
|
virtual |
Creates a clone of the term.
- Returns
- a clone of the term
Implements fl::Term.
◆ complexity()
virtual Complexity fl::ZShape::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::ZShape::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::ZShape::constructor |
( |
| ) |
|
|
static |
◆ getEnd()
virtual scalar fl::ZShape::getEnd |
( |
| ) |
const |
|
virtual |
Gets the end of the edge.
- Returns
- the end of the edge
◆ getStart()
virtual scalar fl::ZShape::getStart |
( |
| ) |
const |
|
virtual |
Gets the start of the edge.
- Returns
- the start of the edge
◆ isMonotonic()
virtual bool fl::ZShape::isMonotonic |
( |
| ) |
const |
|
virtual |
◆ membership()
Computes the membership function evaluated at \(x\).
- Parameters
-
- Returns
- \( \begin{cases} 1h & \mbox{if $x \leq s$} \cr h(1 - 2\left((x - s) / (e-s)\right)^2) & \mbox{if $x \leq 0.5(s+e)$}\cr h(2 \left((x - e) / (e-s)\right)^2) & \mbox{if $x < e$}\cr 0h & \mbox{otherwise} \end{cases}\)
where \(h\) is the height of the Term, \(s\) is the start of the ZShape, \(e\) is the end of the ZShape.
Implements fl::Term.
◆ parameters()
virtual std::string fl::ZShape::parameters |
( |
| ) |
const |
|
virtual |
Returns the parameters of the term.
- Returns
"start end [height]"
Implements fl::Term.
◆ setEnd()
virtual void fl::ZShape::setEnd |
( |
scalar |
end | ) |
|
|
virtual |
Sets the end of the edge.
- Parameters
-
end | is the end of the edge |
◆ setStart()
virtual void fl::ZShape::setStart |
( |
scalar |
start | ) |
|
|
virtual |
Sets the start of the edge.
- Parameters
-
start | is the start of the edge |
◆ tsukamoto()
The documentation for this class was generated from the following file: