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

The Lowest class is a RuleBlock Activation method that activates a given number of rules with lowest activation degrees in ascending order. More...

#include <Lowest.h>

Inheritance diagram for fl::Lowest:
Collaboration diagram for fl::Lowest:

Public Member Functions

 Lowest (int numberOfRules=1)
 
virtual ~Lowest ()
 
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 rules with the lowest activation degrees in the given rule block. More...
 
virtual Lowestclone () 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 Lowest class is a RuleBlock Activation method that activates a given number of rules with lowest activation degrees in ascending order.

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

Definition at line 37 of file Lowest.h.

Constructor & Destructor Documentation

◆ Lowest()

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

◆ ~Lowest()

virtual fl::Lowest::~Lowest ( )
virtual

Member Function Documentation

◆ activate()

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

Activates the rules with the lowest activation degrees in the given rule block.

Parameters
ruleBlockis the rule block to activate

Implements fl::Activation.

◆ className()

virtual std::string fl::Lowest::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 Lowest* fl::Lowest::clone ( ) const
virtual

Clones the activation method.

Returns
a clone of the activation method

Implements fl::Activation.

◆ complexity()

virtual Complexity fl::Lowest::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::Lowest::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::Lowest::constructor ( )
static

◆ getNumberOfRules()

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

Returns the number of rules to activate.

Returns
the number of rules to activate

◆ parameters()

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

Returns the number of rules to activate.

Returns
number of rules to activate

Implements fl::Activation.

◆ setNumberOfRules()

virtual void fl::Lowest::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: