The Last class is a RuleBlock Activation method that activates the last \(n\) rules whose activation degrees are greater than or equal to the given threshold.
More...
#include <Last.h>
The Last class is a RuleBlock Activation method that activates the last \(n\) rules whose activation degrees are greater than or equal to the given threshold.
The rules are iterated in the reverse order in which they were added to the rule block.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- First
-
Rule
-
RuleBlock
-
ActivationFactory
- Since
- 6.0
Definition at line 39 of file Last.h.
◆ Last()
fl::Last::Last |
( |
int |
numberOfRules = 1 , |
|
|
scalar |
threshold = 0.0 |
|
) |
| |
|
explicit |
◆ ~Last()
virtual fl::Last::~Last |
( |
| ) |
|
|
virtual |
◆ activate()
virtual void fl::Last::activate |
( |
RuleBlock * |
ruleBlock | ) |
|
|
virtual |
Activates the last \(n\) rules whose activation degrees are greater than the given threshold.
The rules are iterated in the reverse order that the rules were added to the rule block.
- Parameters
-
ruleBlock | is the rule block to activate |
Implements fl::Activation.
◆ className()
virtual std::string fl::Last::className |
( |
| ) |
const |
|
virtual |
◆ clone()
virtual Last* fl::Last::clone |
( |
| ) |
const |
|
virtual |
Clones the activation method.
- Returns
- a clone of the activation method
Implements fl::Activation.
◆ complexity()
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::Last::configure |
( |
const std::string & |
parameters | ) |
|
|
virtual |
Configures the activation method with the given number of rules and threshold.
- Parameters
-
parameters | as "numberOfRules threshold" |
Implements fl::Activation.
◆ constructor()
◆ getNumberOfRules()
virtual int fl::Last::getNumberOfRules |
( |
| ) |
const |
|
virtual |
Gets the number of rules for the activation degree.
- Returns
- the number of rules for the activation degree
◆ getThreshold()
virtual scalar fl::Last::getThreshold |
( |
| ) |
const |
|
virtual |
Gets the threshold for the activation degree.
- Returns
- the threshold for the activation degree
◆ parameters()
virtual std::string fl::Last::parameters |
( |
| ) |
const |
|
virtual |
Returns the number of rules and the threshold of the activation method.
- Returns
- "numberOfRules threshold"
Implements fl::Activation.
◆ setNumberOfRules()
virtual void fl::Last::setNumberOfRules |
( |
int |
numberOfRules | ) |
|
|
virtual |
Sets the number of rules for the activation degree.
- Parameters
-
numberOfRules | is the number of rules for the activation degree |
◆ setThreshold()
virtual void fl::Last::setThreshold |
( |
scalar |
threshold | ) |
|
|
virtual |
Sets the threshold for the activation degree.
- Parameters
-
threshold | is the threshold for the activation degree |
The documentation for this class was generated from the following file:
- fuzzylite/fl/activation/Last.h