#include <CNCL/FSetArray.h>
CN_FSETARRAY
CNFSet
None
None
This class realizes a fuzzy set as an array. The array is containing the membership values and the index is its corrosponding x-value. Thus membership values of non-integers are interpolated.
Constructors:
CNFSetArray();
CNFSetArray(CNParam *param);
CNFSetArray(size_t sz, double min, double max);
CNFSetArray
.
In addition to the member functions required by CNCL, CNFSetArray
provides:
virtual double get_membership(double x)const;
x
.
virtual double center_of_gravity(double min, double max)const;
double get(int i) const;
void put(int i, double x);
x
into array at position i
.
double &operator [] (int i);
int get_n() const;
Go to the first, previous, next, last section, table of contents.