fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::Bisector Class Reference

The Bisector class is an IntegralDefuzzifier that computes the bisector of a fuzzy set represented in a Term. More...

#include <Bisector.h>

Inheritance diagram for fl::Bisector:
Collaboration diagram for fl::Bisector:

Public Member Functions

 Bisector (int resolution=defaultResolution())
 
virtual ~Bisector () FL_IOVERRIDE
 
virtual std::string className () const FL_IOVERRIDE
 Returns the name of the class of the defuzzifier. More...
 
virtual Complexity complexity (const Term *term) const FL_IOVERRIDE
 Computes the complexity of defuzzifying the given term. More...
 
virtual scalar defuzzify (const Term *term, scalar minimum, scalar maximum) const FL_IOVERRIDE
 Computes the bisector of a fuzzy set. More...
 
virtual Bisectorclone () const FL_IOVERRIDE
 Creates a clone of the defuzzifier. More...
 
- Public Member Functions inherited from fl::IntegralDefuzzifier
 IntegralDefuzzifier (int resolution=defaultResolution())
 
virtual ~IntegralDefuzzifier () FL_IOVERRIDE
 
virtual void setResolution (int resolution)
 Sets the resolution of the defuzzifier. More...
 
virtual int getResolution () const
 Gets the resolution of the defuzzifier. More...
 
- Public Member Functions inherited from fl::Defuzzifier
 Defuzzifier ()
 
virtual ~Defuzzifier ()
 

Static Public Member Functions

static Defuzzifierconstructor ()
 
- Static Public Member Functions inherited from fl::IntegralDefuzzifier
static void setDefaultResolution (int defaultResolution)
 Sets the default resolution for integral-based defuzzifiers. More...
 
static int defaultResolution ()
 Gets the default resolution for integral-based defuzzifiers. More...
 

Detailed Description

The Bisector class is an IntegralDefuzzifier that computes the bisector of a fuzzy set represented in a Term.

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

Definition at line 34 of file Bisector.h.

Constructor & Destructor Documentation

◆ Bisector()

fl::Bisector::Bisector ( int  resolution = defaultResolution())
explicit

◆ ~Bisector()

virtual fl::Bisector::~Bisector ( )
virtual

Member Function Documentation

◆ className()

virtual std::string fl::Bisector::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 Bisector* fl::Bisector::clone ( ) const
virtual

Creates a clone of the defuzzifier.

Returns
a clone of the defuzzifier

Implements fl::Defuzzifier.

◆ complexity()

virtual Complexity fl::Bisector::complexity ( const Term term) const
virtual

Computes the complexity of defuzzifying the given term.

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

Implements fl::Defuzzifier.

◆ constructor()

static Defuzzifier* fl::Bisector::constructor ( )
static

◆ defuzzify()

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

Computes the bisector 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
termis the fuzzy set
minimumis the minimum value of the fuzzy set
maximumis the maximum value of the fuzzy set
Returns
the \(x\)-coordinate of the bisector of the fuzzy set

Implements fl::Defuzzifier.


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