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

The Activated class is a special Term that contains pointers to the necessary information of a term that has been activated as part of the Antecedent of a Rule. More...

#include <Activated.h>

Inheritance diagram for fl::Activated:
Collaboration diagram for fl::Activated:

Public Member Functions

 Activated (const Term *term=fl::null, scalar degree=1.0, const TNorm *implication=fl::null)
 
virtual ~Activated () FL_IOVERRIDE
 
virtual std::string className () const FL_IOVERRIDE
 Returns the name of the class of the term. More...
 
virtual std::string parameters () const FL_IOVERRIDE
 Returns the parameters of the term. More...
 
virtual void configure (const std::string &parameters) FL_IOVERRIDE
 Does nothing. More...
 
virtual Complexity complexity () const FL_IOVERRIDE
 Computes the estimated complexity of evaluating the membership function. More...
 
virtual scalar membership (scalar x) const FL_IOVERRIDE
 Computes the implication of the activation degree and the membership function value of \(x\). More...
 
virtual std::string toString () const FL_IOVERRIDE
 Returns the representation of the term in the FuzzyLite Language. More...
 
virtual void setTerm (const Term *term)
 Sets the activated term. More...
 
virtual const TermgetTerm () const
 Gets the activated term. More...
 
virtual void setDegree (scalar degree)
 Sets the activation degree of the term. More...
 
virtual scalar getDegree () const
 Gets the activation degree of the term. More...
 
virtual void setImplication (const TNorm *implication)
 Sets the implication operator. More...
 
virtual const TNormgetImplication () const
 Gets the implication operator. More...
 
virtual Activatedclone () const FL_IOVERRIDE
 Creates a clone of the term. More...
 
- Public Member Functions inherited from fl::Term
 Term (const std::string &name="", scalar height=1.0)
 
virtual ~Term ()
 
virtual void setName (const std::string &name)
 Sets the name of the term. More...
 
virtual std::string getName () const
 Gets the name of the term. More...
 
virtual void setHeight (scalar height)
 Sets the height of the term. More...
 
virtual scalar getHeight () const
 Gets the height of the term. More...
 
virtual void updateReference (const Engine *engine)
 Updates the references (if any) to point to the current engine (useful when cloning engines or creating terms within Importer objects. More...
 

Additional Inherited Members

- Protected Attributes inherited from fl::Term
scalar _height
 

Detailed Description

The Activated class is a special Term that contains pointers to the necessary information of a term that has been activated as part of the Antecedent of a Rule.

The ownership of the pointers is not transferred to objects of this class. The Activated class was named Thresholded in versions 4.0 and earlier.

Author
Juan Rada-Vilela, Ph.D.
See also
OutputVariable
Term
Since
5.0

Definition at line 37 of file Activated.h.

Constructor & Destructor Documentation

◆ Activated()

fl::Activated::Activated ( const Term term = fl::null,
scalar  degree = 1.0,
const TNorm implication = fl::null 
)
explicit

◆ ~Activated()

virtual fl::Activated::~Activated ( )
virtual

Member Function Documentation

◆ className()

virtual std::string fl::Activated::className ( ) const
virtual

Returns the name of the class of the term.

Returns
the name of the class of the term

Implements fl::Term.

◆ clone()

virtual Activated* fl::Activated::clone ( ) const
virtual

Creates a clone of the term.

Returns
a clone of the term

Implements fl::Term.

◆ complexity()

virtual Complexity fl::Activated::complexity ( ) const
virtual

Computes the estimated complexity of evaluating the membership function.

Returns
the estimated complexity of evaluating the membership function

Implements fl::Term.

◆ configure()

virtual void fl::Activated::configure ( const std::string &  parameters)
virtual

Does nothing.

Parameters
parametersare irrelevant

Implements fl::Term.

◆ getDegree()

virtual scalar fl::Activated::getDegree ( ) const
virtual

Gets the activation degree of the term.

Returns
the activation degree of the term

◆ getImplication()

virtual const TNorm* fl::Activated::getImplication ( ) const
virtual

Gets the implication operator.

Returns
the implication operator

◆ getTerm()

virtual const Term* fl::Activated::getTerm ( ) const
virtual

Gets the activated term.

Returns
the activated term

◆ membership()

virtual scalar fl::Activated::membership ( scalar  x) const
virtual

Computes the implication of the activation degree and the membership function value of \(x\).

Parameters
xis a value
Returns
\(d \otimes \mu(x)\), where \(d\) is the activation degree

Implements fl::Term.

◆ parameters()

virtual std::string fl::Activated::parameters ( ) const
virtual

Returns the parameters of the term.

Returns
"degree implication term"

Implements fl::Term.

◆ setDegree()

virtual void fl::Activated::setDegree ( scalar  degree)
virtual

Sets the activation degree of the term.

Parameters
degreeis the activation degree of the term

◆ setImplication()

virtual void fl::Activated::setImplication ( const TNorm implication)
virtual

Sets the implication operator.

Parameters
implicationis the implication operator

◆ setTerm()

virtual void fl::Activated::setTerm ( const Term term)
virtual

Sets the activated term.

Parameters
termis the activated term

◆ toString()

virtual std::string fl::Activated::toString ( ) const
virtual

Returns the representation of the term in the FuzzyLite Language.

Returns
the representation of the term in FuzzyLite Language
See also
FllExporter

Reimplemented from fl::Term.


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