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

The LargestOfMaximum class is an IntegralDefuzzifier that computes the largest value of the maximum membership function of a fuzzy set represented in a Term. More...

#include <LargestOfMaximum.h>

Inheritance diagram for fl::LargestOfMaximum:
Collaboration diagram for fl::LargestOfMaximum:

## Public Member Functions

LargestOfMaximum (int resolution=defaultResolution())

virtual ~LargestOfMaximum () 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 largest value of the maximum membership function of a fuzzy set. More...

virtual LargestOfMaximumclone () 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 LargestOfMaximum class is an IntegralDefuzzifier that computes the largest value of the maximum membership function of a fuzzy set represented in a Term.

SmallestOfMaximum
MeanOfMaximum
IntegralDefuzzifier
Defuzzifier
Since
4.0

Definition at line 36 of file LargestOfMaximum.h.

## ◆ LargestOfMaximum()

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

## ◆ ~LargestOfMaximum()

 virtual fl::LargestOfMaximum::~LargestOfMaximum ( )
virtual

## ◆ className()

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

Creates a clone of the defuzzifier.

Returns
a clone of the defuzzifier

Implements fl::Defuzzifier.

## ◆ complexity()

 virtual Complexity fl::LargestOfMaximum::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::LargestOfMaximum::constructor ( )
static

## ◆ defuzzify()

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

Computes the largest value of the maximum membership function of a fuzzy set.

The largest value is computed by integrating over the fuzzy set. 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 largest $$x$$-coordinate of the maximum membership function value in the fuzzy set

Implements fl::Defuzzifier.

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