Go to the previous, next section.
#include <FuzzyLib/FSetArray.h>
Fl_FSETARRAY
FlFSet
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:
FlFSetArray();
FlFSetArray(FlParam *param);
FlFSetArray(size_t sz, double min, double max);
FlFSetArray.
FlFSetArray
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 previous, next section.