|
| InputVariable (const std::string &name="", scalar minimum=-fl::inf, scalar maximum=fl::inf) |
|
virtual | ~InputVariable () FL_IOVERRIDE |
|
virtual std::string | fuzzyInputValue () const |
| Evaluates the membership function of the current input value \(x\) for each term \(i\), resulting in a fuzzy input value in the form \(\tilde{x}=\sum_i{\mu_i(x)/i}\). More...
|
|
virtual Variable::Type | type () const FL_IOVERRIDE |
| Returns the type of the variable. More...
|
|
virtual std::string | toString () const FL_IOVERRIDE |
| Gets a string representation of the variable in the FuzzyLite Language. More...
|
|
virtual InputVariable * | clone () const FL_IOVERRIDE |
| Creates a clone of the variable. More...
|
|
| Variable (const std::string &name="", scalar minimum=-fl::inf, scalar maximum=fl::inf) |
|
| Variable (const Variable &other) |
|
Variable & | operator= (const Variable &other) |
|
virtual | ~Variable () |
|
virtual void | setName (const std::string &name) |
| Sets the name of the variable. More...
|
|
virtual std::string | getName () const |
| Gets the name of the variable. More...
|
|
virtual std::string | getDescription () const |
| Gets the description of the variable. More...
|
|
virtual void | setDescription (const std::string &description) |
| Sets the description of the variable. More...
|
|
virtual void | setValue (scalar value) |
| Sets the value of the variable. More...
|
|
virtual scalar | getValue () const |
| Gets the value of the variable. More...
|
|
virtual void | setRange (scalar minimum, scalar maximum) |
| Sets the range of the variable between [minimum, maximum] More...
|
|
virtual scalar | range () const |
| Gets the magnitude of the range of the variable. More...
|
|
virtual void | setMinimum (scalar minimum) |
| Sets the minimum value of the range of the variable. More...
|
|
virtual scalar | getMinimum () const |
| Gets the minimum value of the range of the variable. More...
|
|
virtual void | setMaximum (scalar maximum) |
| Sets the maximum value of the range of the variable. More...
|
|
virtual scalar | getMaximum () const |
| Gets the maximum value of the range of the variable. More...
|
|
virtual void | setEnabled (bool enabled) |
| Sets whether the variable is enabled. More...
|
|
virtual bool | isEnabled () const |
| Gets whether the variable is enabled. More...
|
|
virtual void | setLockValueInRange (bool lockValueInRange) |
| Sets whether the variable locks the current value to the range of the variable. More...
|
|
virtual bool | isLockValueInRange () const |
| Gets whether the variable locks the current value to the range of the variable. More...
|
|
virtual Complexity | complexity () const |
| Computes the aggregated complexity of the underlying terms. More...
|
|
virtual std::string | fuzzify (scalar x) const |
| Evaluates the membership function of value \(x\) for each term \(i\), resulting in a fuzzy value in the form \(\tilde{x}=\sum_i{\mu_i(x)/i}\). More...
|
|
virtual Term * | highestMembership (scalar x, scalar *yhighest=fl::null) const |
| Gets the term which has the highest membership function value for \(x\). More...
|
|
virtual void | sort () |
| Sorts the terms in ascending order according to their centroids. More...
|
|
virtual void | addTerm (Term *term) |
| Adds a term to the variable. More...
|
|
virtual void | insertTerm (Term *term, std::size_t index) |
| Inserts the term in the variable. More...
|
|
virtual Term * | getTerm (std::size_t index) const |
| Gets the term at the given index. More...
|
|
virtual Term * | getTerm (const std::string &name) const |
| Gets the term of the given name. More...
|
|
virtual bool | hasTerm (const std::string &name) const |
| Gets whether a term of the given name has been added. More...
|
|
virtual Term * | removeTerm (std::size_t index) |
| Removes the term at the given index. More...
|
|
virtual std::size_t | numberOfTerms () const |
| Gets the number of terms added to the variable. More...
|
|
virtual void | setTerms (const std::vector< Term *> &terms) |
| Sets the terms of the variable. More...
|
|
virtual const std::vector< Term * > & | terms () const |
| Gets an immutable vector of the terms. More...
|
|
virtual std::vector< Term * > & | terms () |
| Gets a mutable vector of the terms. More...
|
|
The InputVariable class is a Variable that represents an input of the fuzzy logic controller.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Variable
-
OutputVariable
-
Term
- Since
- 4.0
Definition at line 34 of file InputVariable.h.