Go to the previous, next section.
#include <FuzzyLib/FRuleBase.h>
Fl_FRULEBASE
FlNamed
None
None
Constructors:
FlFRuleBase();
FlFRuleBase(FlParam *param);
FlFRuleBase(FlStringR name);
FlFRuleBase with name as the object's name.
FlFRuleBase
provides:
void add_rule(FlFRule *rule);
void add_rule(FlFRule &rule);
void add_in_var(FlFVar *rule);
void add_in_var(FlFVar &rule);
void add_out_var(FlFVar *rule);
void add_out_var(FlFVar &rule);
int get_n_rules()const;
int get_n_in_vars()const;
int get_n_out_vars()const;
int resolution()const;
void inference(FlFVar *var, FlFSet *set , double match, FlFSetArray &res);
var and value set,
using value match of LHS aggregation. The result is stored in the
array fuzzy set res.
void evaluate(FlFVar *var, FlFSetArray &res);
var, combining the
inference() results of all rules. The result is stored in the
array fuzzy set res.
void aggregate_all();
void evaluate_all();
void defuzzy_all();
Fl_bool updateFuzzySets(const char* filename);
void debug_rules(ostream &strm=cout, int lvl=0);
&strm for fuzzy rules.
Go to the previous, next section.