The WeightedAverage class is a WeightedDefuzzifier that computes the weighted average of a fuzzy set represented in an Aggregated Term.
More...
#include <WeightedAverage.h>
The WeightedAverage class is a WeightedDefuzzifier that computes the weighted average of a fuzzy set represented in an Aggregated Term.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- WeightedAverageCustom
-
WeightedSum
-
WeightedSumCustom
-
WeightedDefuzzifier
-
Defuzzifier
- Since
- 4.0
Definition at line 37 of file WeightedAverage.h.
◆ WeightedAverage() [1/2]
◆ WeightedAverage() [2/2]
fl::WeightedAverage::WeightedAverage |
( |
const std::string & |
type | ) |
|
|
explicit |
◆ ~WeightedAverage()
virtual fl::WeightedAverage::~WeightedAverage |
( |
| ) |
|
|
virtual |
◆ className()
virtual std::string fl::WeightedAverage::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()
Creates a clone of the defuzzifier.
- Returns
- a clone of the defuzzifier
Implements fl::Defuzzifier.
◆ complexity()
virtual Complexity fl::WeightedAverage::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()
static Defuzzifier* fl::WeightedAverage::constructor |
( |
| ) |
|
|
static |
◆ defuzzify()
Computes the weighted average of the given fuzzy set represented in an Aggregated term as \(y = \dfrac{\sum_i w_iz_i}{\sum_i w_i} \), where \(w_i\) is the activation degree of term \(i\), and \(z_i = \mu_i(w_i) \).
From version 6.0, the implication and aggregation operators are not utilized for defuzzification.
- Parameters
-
term | is the fuzzy set represented as an Aggregated Term |
minimum | is the minimum value of the range (only used for Tsukamoto) |
maximum | is the maximum value of the range (only used for Tsukamoto) |
- Returns
- the weighted average of the given fuzzy set
Implements fl::Defuzzifier.
The documentation for this class was generated from the following file: