The WeightedDefuzzifier class is the base class for defuzzifiers which compute a weighted function on the fuzzy set without requiring to integrate over the fuzzy set.
More...
#include <WeightedDefuzzifier.h>
|
static std::string | typeName (Type type) |
| Returns a string representation of the given type. More...
|
|
The WeightedDefuzzifier class is the base class for defuzzifiers which compute a weighted function on the fuzzy set without requiring to integrate over the fuzzy set.
- Author
- Juan Rada-Vilela, Ph.D.
- Since
- 5.0
Definition at line 33 of file WeightedDefuzzifier.h.
◆ Type
The Type enum indicates the type of the WeightedDefuzzifier based the terms included in the fuzzy set.
Enumerator |
---|
Automatic | Automatic: Automatically inferred from the terms.
|
TakagiSugeno | TakagiSugeno: Manually set to TakagiSugeno (or Inverse Tsukamoto)
|
Tsukamoto | Tsukamoto: Manually set to Tsukamoto.
|
Definition at line 38 of file WeightedDefuzzifier.h.
◆ WeightedDefuzzifier() [1/2]
fl::WeightedDefuzzifier::WeightedDefuzzifier |
( |
Type |
type = Automatic | ) |
|
|
explicit |
◆ WeightedDefuzzifier() [2/2]
fl::WeightedDefuzzifier::WeightedDefuzzifier |
( |
const std::string & |
type | ) |
|
|
explicit |
◆ ~WeightedDefuzzifier()
virtual fl::WeightedDefuzzifier::~WeightedDefuzzifier |
( |
| ) |
|
|
virtual |
◆ getType()
Type fl::WeightedDefuzzifier::getType |
( |
| ) |
const |
Gets the type of the weighted defuzzifier.
- Returns
- the type of the weighted defuzzifier
◆ getTypeName()
virtual std::string fl::WeightedDefuzzifier::getTypeName |
( |
| ) |
const |
|
virtual |
Returns a string representation of the type of the defuzzifier.
- Returns
- a string representation of the type of the defuzzifier
◆ inferType()
virtual Type fl::WeightedDefuzzifier::inferType |
( |
const Term * |
term | ) |
const |
|
virtual |
Infers the type of the defuzzifier based on the given term.
If the given term is Constant, Linear or Function, then the type is TakagiSugeno; otherwise, the type is Tsukamoto
- Parameters
-
- Returns
- the inferred type of the defuzzifier based on the given term
◆ setType()
void fl::WeightedDefuzzifier::setType |
( |
Type |
type | ) |
|
Sets the type of the weighted defuzzifier.
- Parameters
-
type | is the type of the weighted defuzzifier |
◆ typeName()
static std::string fl::WeightedDefuzzifier::typeName |
( |
Type |
type | ) |
|
|
static |
Returns a string representation of the given type.
- Parameters
-
type | is the type of a defuzzifier |
- Returns
- a string representation of the given type
The documentation for this class was generated from the following file: