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

The Highest class is a RuleBlock Activation method that activates a given number of rules with highest activation degrees in descending order. More...

#include <Highest.h>

Inheritance diagram for fl::Highest:
Collaboration diagram for fl::Highest:

Public Member Functions

 Highest (int numberOfRules=1)
 
virtual ~Highest ()
 
virtual std::string className () const FL_IOVERRIDE
 Returns the name of the activation method, which is also utilized to register the activation method in the ActivationFactory. More...
 
virtual std::string parameters () const FL_IOVERRIDE
 Returns the number of rules to activate. More...
 
virtual void configure (const std::string &parameters) FL_IOVERRIDE
 Configures the activation method with the number of rules to activate. More...
 
virtual void setNumberOfRules (int numberOfRules)
 Sets the number of rules to activate. More...
 
virtual int getNumberOfRules () const
 Returns the number of rules to activate. More...
 
virtual Complexity complexity (const RuleBlock *ruleBlock) const FL_IOVERRIDE
 Computes the estimated complexity of activating the given rule block. More...
 
virtual void activate (RuleBlock *ruleBlock) FL_IOVERRIDE
 Activates the given number of rules with the highest activation degrees. More...
 
virtual Highestclone () const FL_IOVERRIDE
 Clones the activation method. More...
 
- Public Member Functions inherited from fl::Activation
 Activation ()
 
virtual ~Activation ()
 

Static Public Member Functions

static Activationconstructor ()
 

Detailed Description

The Highest class is a RuleBlock Activation method that activates a given number of rules with highest activation degrees in descending order.

Author
Juan Rada-Vilela, Ph.D.
See also
Lowest
Rule
RuleBlock
ActivationFactory
Since
6.0

Definition at line 37 of file Highest.h.

Constructor & Destructor Documentation

◆ Highest()

fl::Highest::Highest ( int  numberOfRules = 1)
explicit

◆ ~Highest()

virtual fl::Highest::~Highest ( )
virtual

Member Function Documentation

◆ activate()

virtual void fl::Highest::activate ( RuleBlock ruleBlock)
virtual

Activates the given number of rules with the highest activation degrees.

Parameters
ruleBlockis the rule block to activate.

Implements fl::Activation.

◆ className()

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

Returns the name of the activation method, which is also utilized to register the activation method in the ActivationFactory.

Returns
the name of the activation method
See also
ActivationFactory

Implements fl::Activation.

◆ clone()

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

Clones the activation method.

Returns
a clone of the activation method

Implements fl::Activation.

◆ complexity()

virtual Complexity fl::Highest::complexity ( const RuleBlock ruleBlock) const
virtual

Computes the estimated complexity of activating the given rule block.

Returns
the estimated complexity of activating the given rule block

Implements fl::Activation.

◆ configure()

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

Configures the activation method with the number of rules to activate.

Parameters
parameterscontains the number of rules to activate

Implements fl::Activation.

◆ constructor()

static Activation* fl::Highest::constructor ( )
static

◆ getNumberOfRules()

virtual int fl::Highest::getNumberOfRules ( ) const
virtual

Returns the number of rules to activate.

Returns
the number of rules to activate

◆ parameters()

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

Returns the number of rules to activate.

Returns
number of rules to activate

Implements fl::Activation.

◆ setNumberOfRules()

virtual void fl::Highest::setNumberOfRules ( int  numberOfRules)
virtual

Sets the number of rules to activate.

Parameters
numberOfRulesis the number of rules to activate

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