fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::Defuzzifier Class Referenceabstract

The Defuzzifier class is the abstract class for defuzzifiers. More...

#include <Defuzzifier.h>

Inheritance diagram for fl::Defuzzifier:
Collaboration diagram for fl::Defuzzifier:

Public Member Functions

 Defuzzifier ()
 
virtual ~Defuzzifier ()
 
virtual std::string className () const =0
 Returns the name of the class of the defuzzifier. More...
 
virtual Defuzzifierclone () const =0
 Creates a clone of the defuzzifier. More...
 
virtual Complexity complexity (const Term *term) const =0
 Computes the complexity of defuzzifying the given term. More...
 
virtual scalar defuzzify (const Term *term, scalar minimum, scalar maximum) const =0
 Defuzzifies the given fuzzy term utilizing the range [minimum,maximum] More...
 

Detailed Description

The Defuzzifier class is the abstract class for defuzzifiers.

Author
Juan Rada-Vilela, Ph.D.
See also
IntegralDefuzzifier
WeightedDefuzzifier
Since
4.0

Definition at line 37 of file Defuzzifier.h.

Constructor & Destructor Documentation

◆ Defuzzifier()

fl::Defuzzifier::Defuzzifier ( )
inline

Definition at line 40 of file Defuzzifier.h.

◆ ~Defuzzifier()

virtual fl::Defuzzifier::~Defuzzifier ( )
inlinevirtual

Definition at line 43 of file Defuzzifier.h.

References FL_DEFAULT_COPY_AND_MOVE.

Member Function Documentation

◆ className()

virtual std::string fl::Defuzzifier::className ( ) const
pure virtual

Returns the name of the class of the defuzzifier.

Returns
the name of the class of the defuzzifier

Implemented in fl::WeightedSumCustom, fl::WeightedAverageCustom, fl::WeightedAverage, fl::WeightedSum, fl::LargestOfMaximum, fl::MeanOfMaximum, fl::SmallestOfMaximum, fl::Bisector, and fl::Centroid.

◆ clone()

virtual Defuzzifier* fl::Defuzzifier::clone ( ) const
pure virtual

Creates a clone of the defuzzifier.

Returns
a clone of the defuzzifier

Implemented in fl::WeightedSumCustom, fl::WeightedAverageCustom, fl::WeightedAverage, fl::WeightedSum, fl::LargestOfMaximum, fl::MeanOfMaximum, fl::SmallestOfMaximum, fl::Bisector, and fl::Centroid.

◆ complexity()

virtual Complexity fl::Defuzzifier::complexity ( const Term term) const
pure virtual

Computes the complexity of defuzzifying the given term.

Parameters
termis the term to defuzzify
Returns
the complexity of defuzzifying the given term

Implemented in fl::WeightedSumCustom, fl::WeightedAverageCustom, fl::WeightedAverage, fl::WeightedSum, fl::LargestOfMaximum, fl::MeanOfMaximum, fl::SmallestOfMaximum, fl::Bisector, and fl::Centroid.

◆ defuzzify()

virtual scalar fl::Defuzzifier::defuzzify ( const Term term,
scalar  minimum,
scalar  maximum 
) const
pure virtual

Defuzzifies the given fuzzy term utilizing the range [minimum,maximum]

Parameters
termis the term to defuzzify, typically an Aggregated term
minimumis the minimum value of the range
maximumis the maximum value of the range
Returns
the defuzzified value of the given fuzzy term

Implemented in fl::WeightedSumCustom, fl::WeightedAverageCustom, fl::WeightedAverage, fl::WeightedSum, fl::LargestOfMaximum, fl::MeanOfMaximum, fl::SmallestOfMaximum, fl::Bisector, and fl::Centroid.


The documentation for this class was generated from the following file: