
330 Chapter Eight—Fuzzy Systems Implementations
float defuzzyCentroid_add(const int& a,const vector<float>& b) const;
float defuzzyCentroid(const int& a,const vector<float>& b) const;
//operators
FuzzyMember& operator [] (int i) const;
FuzzyVariable& operator =(const FuzzyVariable& a);
//friend operator I/O
friend istream& operator >> (istream& is,FuzzyVariable& a);
friend ostream& operator << (ostream& os,const FuzzyVariable& a);
};
in this fuzzy variable; data member fuzzySet (FuzzyMember*) is a pointer to the
setSize number of fuzzy membership functions; data members startPoint
(float) and endPoint (float) define the dynamic range of this fuzzy variable; ...