#include <CNCL/FRuleBase.h>
CN_FRULEBASE
CNNamed
None
None
Constructors:
CNFRuleBase();
CNFRuleBase(CNParam *param);
CNFRuleBase(CNStringR name);
CNFRuleBase
with name
as the object's name.
In addition to the member functions required by CNCL, CNFRuleBase
provides:
void add_rule(CNFRule *rule);
void add_rule(CNFRule &rule);
void add_in_var(CNFVar *rule);
void add_in_var(CNFVar &rule);
void add_out_var(CNFVar *rule);
void add_out_var(CNFVar &rule);
int get_n_rules()const;
int get_n_in_vars()const;
int get_n_out_vars()const;
int resolution()const;
void inference(CNFVar *var, CNFSet *set , double match, CNFSetArray &res);
var
and value set
,
using value match
of LHS aggregation. The result is stored in the
array fuzzy set res
.
void evaluate(CNFVar *var, CNFSetArray &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();
void debug_rules(ostream &strm=cout, int lvl=0);
&strm
for fuzzy rules.
Go to the first, previous, next, last section, table of contents.