Used to represent a Fuzzy Rule. More...
#include <FuzzyRule.h>
Public Member Functions | |
FuzzyRule (const std::shared_ptr< FuzzySet > &antecedent, const std::shared_ptr< FuzzySet > &consequent) | |
Constructs a FuzzyRule of the form: IF antecedent THEN consequent. | |
std::shared_ptr< FuzzySet > | apply (const FuzzySet::Data &data) const |
Applies the FuzzyRule using the given data. | |
const std::shared_ptr< FuzzySet > & | getAntecedent () const |
Returns the antecedent of the FuzzyRule. | |
const std::shared_ptr< FuzzySet > & | getConsequent () const |
Returns the consequent of the FuzzyRule. | |
operator std::string () const | |
Returns a string representation of the FuzzyRule. | |
Used to represent a Fuzzy Rule.
A Fuzzy Rule is a conditional statement of the form: IF antecedent THEN consequent. Where both the antecedent and the consequent are FuzzySets.
std::shared_ptr< FuzzySet > autopas::FuzzyLogic::FuzzyRule::apply | ( | const FuzzySet::Data & | data | ) | const |
const std::shared_ptr< FuzzySet > & autopas::FuzzyLogic::FuzzyRule::getAntecedent | ( | ) | const |
const std::shared_ptr< FuzzySet > & autopas::FuzzyLogic::FuzzyRule::getConsequent | ( | ) | const |