#include <LinguisticTerm.h>

Public Member Functions | |
| LinguisticTerm (const std::string name) | |
| Creates a new LinguisticTerm. | |
| LinguisticTerm (const std::string name="", const RCPtr< LinguisticVariable > &parent=NULL) | |
| Creates a new LinguisticTerm and assignes it to a given LinguisticVariable. | |
| virtual | ~LinguisticTerm () |
| Destructor. | |
| std::string | getName () const |
| Returns the name of the linguistic term. | |
| void | setName (const std::string name) |
| Sets the name of the linguistic term. | |
| const RCPtr< LinguisticVariable > & | getLinguisticVariable () const |
| Returns the LinguisticVariable the term is assigned to. | |
| void | setLinguisticVariable (const RCPtr< LinguisticVariable > &lv) |
| Reassigns this term to a new LinguisticVariable. | |
| double | defuzzify (double errRel=ERR_RELATIVE, int recursionMax=RECURSION_MAX) const |
| Defuzzification of the linguistic term accounting the bounds of the suppport given by the corresponding linguistic variable. | |
Protected Attributes | |
| RCPtr< LinguisticVariable > | parent |
A linguistic term (like 'fast' or 'slow') is a named FuzzySet, which is assigned to a LinguisticVariable (like 'speed').
This is a virtual base class. The children are different kinds of linguistic terms corresponding to the different kinds of fuzzy sets.
Definition at line 33 of file LinguisticTerm.h.
| LinguisticTerm::LinguisticTerm | ( | const std::string | name | ) |
Creates a new LinguisticTerm.
| name | name of the linguistic term, e.g. "very fast" |
Definition at line 20 of file LinguisticTerm.cpp.
| LinguisticTerm::LinguisticTerm | ( | const std::string | name = "", |
|
| const RCPtr< LinguisticVariable > & | parent = NULL | |||
| ) |
Creates a new LinguisticTerm and assignes it to a given LinguisticVariable.
| name | the name of the linguistic term, e.g. "very fast" | |
| parent | the assigned linguistic variable, e.g. "speed" |
Definition at line 22 of file LinguisticTerm.cpp.
| LinguisticTerm::~LinguisticTerm | ( | ) | [virtual] |
| double LinguisticTerm::defuzzify | ( | double | errRel = ERR_RELATIVE, |
|
| int | recursionMax = RECURSION_MAX | |||
| ) | const [inline] |
Defuzzification of the linguistic term accounting the bounds of the suppport given by the corresponding linguistic variable.
| errRel | relative approximation error that is tollerated during numerical integration | |
| recursionMax | max. depth of recursion during numerical integration (i.e. max. steps) |
Reimplemented in BellLT.
Definition at line 90 of file LinguisticTerm.h.
References FuzzySet::defuzzify(), parent, and RECURSION_MAX.
| const RCPtr<LinguisticVariable>& LinguisticTerm::getLinguisticVariable | ( | ) | const [inline] |
Returns the LinguisticVariable the term is assigned to.
Definition at line 72 of file LinguisticTerm.h.
References parent.
Referenced by Rule::printRule().
| std::string LinguisticTerm::getName | ( | ) | const [inline] |
Returns the name of the linguistic term.
Definition at line 59 of file LinguisticTerm.h.
Referenced by Rule::printRule().
| void LinguisticTerm::setLinguisticVariable | ( | const RCPtr< LinguisticVariable > & | lv | ) |
Reassigns this term to a new LinguisticVariable.
| lv | the new linguistic variable |
Definition at line 45 of file LinguisticTerm.cpp.
References parent.
| void LinguisticTerm::setName | ( | const std::string | name | ) |
Sets the name of the linguistic term.
| name | the new name |
Definition at line 39 of file LinguisticTerm.cpp.
Referenced by LinguisticTerm().
RCPtr<LinguisticVariable> LinguisticTerm::parent [protected] |
Definition at line 92 of file LinguisticTerm.h.
Referenced by SingletonLT::defuzzify(), defuzzify(), getLinguisticVariable(), LinguisticTerm(), setLinguisticVariable(), and ~LinguisticTerm().