Go to the first, previous, next, last section, table of contents.


CNFRule -- Fuzzy Rule

SYNOPSIS

#include <CNCL/FRule.h>

TYPE

CN_FRULE

BASE CLASSES

CNObject

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION

Constructors:

CNFRule();
CNFRule(CNParam *param);
Initializes a CNFRule variable.


In addition to the member functions required by CNCL, CNFRule provides:

void add_lhs(CNFClause *clause);
void add_lhs(CNFClause &clause);
void add_rhs(CNFClause *clause);
void add_rhs(CNFClause &clause);
Adds a CNFClause to the LHS or the RHS rules.
int get_n_lhs() const;
int get_n_rhs() const;
Gets the total number of LHS/RHS clauses.
CNFClause* get_lhs(int i) const;
CNFClause* get_rhs(int i) const;
Returns the LHS/RHS clause from array-position i.
double certainty(double x);
double set_certainty(double x);
Sets the certainty to x and returns the old certainty.
double certainty() const;
double get_certainty() const;
Returns the certainty.
double aggregate_value() const;
Returns the current value of the aggregation.
double aggregate()
Aggregates the LHS rule inputs and returns the result.


Go to the first, previous, next, last section, table of contents.