The Centroid class is an IntegralDefuzzifier that computes the centroid of a fuzzy set represented in a Term.
More...
#include <Centroid.h>
The Centroid class is an IntegralDefuzzifier that computes the centroid of a fuzzy set represented in a Term.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- BiSector
-
IntegralDefuzzifier
-
Defuzzifier
- Since
- 4.0
Definition at line 34 of file Centroid.h.
◆ Centroid()
◆ ~Centroid()
virtual fl::Centroid::~Centroid |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::Centroid::className |
( |
| ) |
const |
|
virtual |
Returns the name of the class of the defuzzifier.
- Returns
- the name of the class of the defuzzifier
Implements fl::Defuzzifier.
◆ clone()
virtual Centroid* fl::Centroid::clone |
( |
| ) |
const |
|
virtual |
Creates a clone of the defuzzifier.
- Returns
- a clone of the defuzzifier
Implements fl::Defuzzifier.
◆ complexity()
virtual Complexity fl::Centroid::complexity |
( |
const Term * |
term | ) |
const |
|
virtual |
Computes the complexity of defuzzifying the given term.
- Parameters
-
term | is the term to defuzzify |
- Returns
- the complexity of defuzzifying the given term
Implements fl::Defuzzifier.
◆ constructor()
◆ defuzzify()
Computes the centroid of a fuzzy set.
The defuzzification process integrates over the fuzzy set utilizing the boundaries given as parameters. The integration algorithm is the midpoint rectangle method (https://en.wikipedia.org/wiki/Rectangle_method).
- Parameters
-
term | is the fuzzy set |
minimum | is the minimum value of the fuzzy set |
maximum | is the maximum value of the fuzzy set |
- Returns
- the \(x\)-coordinate of the centroid of the fuzzy set
Implements fl::Defuzzifier.
The documentation for this class was generated from the following file: