BellLT Class Reference

LinguisticTerm with a bell-shaped (Gaussian) membership function. More...

#include <BellLT.h>

Inheritance diagram for BellLT:

LinguisticTerm BellFS FuzzySet FuzzySet RCObject RCObject

List of all members.

Public Member Functions

 BellLT (const std::string name, const RCPtr< LinguisticVariable > &parent, double sigma, double offset, double scale=1)
 Constructor.
double defuzzify (double errRel=ERR_RELATIVE, int recursionMax=RECURSION_MAX) const
 Defuzzifies the set by returning the Bell's offset if the support is not bounded by the associated linguistic variable, and by dertermination of the center of gravity otherwise.
double getMin () const
 Returns the lower boundary of the support.
double getMax () const
 Returns the upper boundary of the support.


Detailed Description

LinguisticTerm with a bell-shaped (Gaussian) membership function.

This class implements a LinguisticTerm with membership function:

\[ \mu(x) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{(x-offset)^2}{2\sigma^2}} \]

BellFS.png

Definition at line 35 of file BellLT.h.


Constructor & Destructor Documentation

BellLT::BellLT ( const std::string  name,
const RCPtr< LinguisticVariable > &  parent,
double  sigma,
double  offset,
double  scale = 1 
)

Constructor.

Parameters:
name the name
parent the associated linguistic variable
sigma controlls the width of the Gaussian
offset position of the center of the peak
scale scales the whole function

Definition at line 13 of file BellLT.cpp.


Member Function Documentation

double BellLT::defuzzify ( double  errRel = ERR_RELATIVE,
int  recursionMax = RECURSION_MAX 
) const

Defuzzifies the set by returning the Bell's offset if the support is not bounded by the associated linguistic variable, and by dertermination of the center of gravity otherwise.

Parameters:
errRel relative approximation error that is tollerated during numerical integration
recursionMax max. depth of recursion during numerical integration (i.e. max. $2^n$ steps)

Reimplemented from LinguisticTerm.

Definition at line 20 of file BellLT.cpp.

References FuzzySet::defuzzify(), BellFS::defuzzify(), BellFS::getMax(), and BellFS::getMin().

double BellLT::getMax (  )  const [inline, virtual]

Returns the upper boundary of the support.

Returns:
the max. value for which the FuzzySet is nonzero (or exceeds a given threshold)

Reimplemented from BellFS.

Definition at line 81 of file BellLT.h.

References BellFS::getMax().

double BellLT::getMin (  )  const [inline, virtual]

Returns the lower boundary of the support.

Returns:
the min. value for which the FuzzySet is nonzero (or exceeds a given threshold)

Reimplemented from BellFS.

Definition at line 71 of file BellLT.h.

References BellFS::getMin().


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