The First class is a RuleBlock Activation method that activates the first \(n\) rules whose activation degrees are greater than or equal to the given threshold.
More...
#include <First.h>
The First class is a RuleBlock Activation method that activates the first \(n\) rules whose activation degrees are greater than or equal to the given threshold.
The rules are iterated in the order they were added to the rule block.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Last
-
Rule
-
RuleBlock
-
ActivationFactory
- Since
- 6.0
Definition at line 37 of file First.h.
◆ First()
fl::First::First |
( |
int |
numberOfRules = 1 , |
|
|
scalar |
threshold = 0.0 |
|
) |
| |
|
explicit |
◆ ~First()
virtual fl::First::~First |
( |
| ) |
|
|
virtual |
◆ activate()
virtual void fl::First::activate |
( |
RuleBlock * |
ruleBlock | ) |
|
|
virtual |
Activates the first \(n\) rules whose activation degrees are greater than or equal to the given threshold.
The rules are iterated in the order the rules were added to the rule block.
- Parameters
-
ruleBlock | is the rule block to activate |
Implements fl::Activation.
◆ className()
virtual std::string fl::First::className |
( |
| ) |
const |
|
virtual |
◆ clone()
virtual First* fl::First::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::First::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::First::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::First::getThreshold |
( |
| ) |
const |
|
virtual |
Gets the threshold for the activation degree.
- Returns
- the threshold for the activation degree
◆ parameters()
virtual std::string fl::First::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::First::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::First::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: