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