The Binary class is an edge Term that represents the binary membership function.
More...
#include <Binary.h>
The Binary class is an edge Term that represents the binary membership function.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Term
-
Variable
- Since
- 6.0
Definition at line 35 of file Binary.h.
◆ Direction
Direction is an enumerator that indicates the direction of the edge.
Enumerator |
---|
Positive | (_|) increases to the right (infinity)
|
Undefined | (--) direction is NaN
|
Negative | (|_) increases to the left (-infinity)
|
Definition at line 45 of file Binary.h.
◆ Binary()
fl::Binary::Binary |
( |
const std::string & |
name = "" , |
|
|
scalar |
start = fl::nan , |
|
|
scalar |
direction = fl::nan , |
|
|
scalar |
height = 1.0 |
|
) |
| |
|
explicit |
◆ ~Binary()
virtual fl::Binary::~Binary |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::Binary::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 Binary* fl::Binary::clone |
( |
| ) |
const |
|
virtual |
Creates a clone of the term.
- Returns
- a clone of the term
Implements fl::Term.
◆ complexity()
virtual Complexity fl::Binary::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::Binary::configure |
( |
const std::string & |
parameters | ) |
|
|
virtual |
Configures the term with the parameters.
- Parameters
-
parameters | as "start direction [height]" |
Implements fl::Term.
◆ constructor()
static Term* fl::Binary::constructor |
( |
| ) |
|
|
static |
◆ direction()
virtual Direction fl::Binary::direction |
( |
| ) |
const |
|
virtual |
Gets the Direction of the binary edge as an enumerator.
- Returns
- the Direction of the binary edge as an enumerator
◆ getDirection()
virtual scalar fl::Binary::getDirection |
( |
| ) |
const |
|
virtual |
Gets the direction of the binary edge.
- Returns
- the direction of the binary edge
◆ getStart()
virtual scalar fl::Binary::getStart |
( |
| ) |
const |
|
virtual |
Gets the start of the binary edge.
- Returns
- the start of the binary edge
◆ membership()
Computes the membership function evaluated at \(x\).
- Parameters
-
- Returns
- \(\begin{cases} 1h & \mbox{if $ \left(s < d \vedge x \in [s, d)\right) \wedge \left( s > d \vedge x \in (d, s] \right) $} \cr 0h & \mbox{otherwise} \end{cases}\)
where \(h\) is the height of the Term, \(s\) is the start of the Binary edge, \(d\) is the direction of the Binary edge.
Implements fl::Term.
◆ parameters()
virtual std::string fl::Binary::parameters |
( |
| ) |
const |
|
virtual |
Returns the parameters of the term.
- Returns
"start direction [height]"
Implements fl::Term.
◆ setDirection()
virtual void fl::Binary::setDirection |
( |
scalar |
direction | ) |
|
|
virtual |
Sets the direction of the binary edge.
\(\begin{cases} \text{Positive} & \mbox{if $ d > s $}\cr \text{Negative} & \mbox{if $ d < s $}\cr \mbox{\tt NaN} & \mbox{otherwise} \end{cases} \)
where \(d\) is the given direction, and \(s\) is the start of the Binary edge
- Parameters
-
direction | is the direction of the binary edge |
◆ setStart()
virtual void fl::Binary::setStart |
( |
scalar |
start | ) |
|
|
virtual |
Sets the start of the binary edge.
- Parameters
-
start | is the start of the binary edge |
The documentation for this class was generated from the following file: