Go to the previous, next section.
#include <CNCL/FVar.h>
CN_FVAR
CNNamed
None
None
Constructors:
CNFVar(CNParam *param);
CNFVar(double min = 0, double max = 1);
CNFVar(const CNString &xname, double min = 0, double max = 1);
CNFVar
.
CNFVar
provides:
double value( double x );
double set_value( double x );
x
and returns the old value.
double value() const
double get_value()const;
CNFSet* fuzzy_value( CNFSet* x );
CNFSet* set_fuzzy_value( CNFSet* x );
x
and returns the
old value.
CNFSet* fuzzy_value() const;
CNFSet* get_fuzzy_value() const;
double xmin() const;
double get_xmin() const;
double xmax() const;
double get_xmax() const;
void add_value_set(CNFSet &fset);
void add_value_set(CNFSet *fset);
void add_value_set(int i, CNFSet &fset);
void add_value_set(int i, CNFSet *fset);
fset
to the array of affiliated sets, either
at position i
(overwritting) or at the end (extending).
CNFSet *get_value_set(int i);
i
.
double get_membership( int i);
i
.
void print_membership();
Go to the previous, next section.