home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 02 Useful Techniques / 08 Zarozinski / src / ffllapi / MOMDefuzzSetObj.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-11-13  |  1.6 KB  |  63 lines

  1. //
  2. // File:    MOMDefuzzSetObj.h
  3. //
  4. // Purpose:    Set class for Mean of Maximum defuzzification Method.
  5. //             See MOMDefuzzVarObj for details on how this method works.
  6. //
  7. // Copyright ⌐ 2001 Louder Than A Bomb! Software
  8. //
  9. // This file is part of the FFLL (Free Fuzzy Logic Library) project (http://ffll.sourceforge.net)
  10. // It is released under the BSD license, see http://ffll.sourceforge.net/license.txt for the full text.
  11. //
  12.  
  13. #ifndef _MOMDefuzzSetObj_H
  14. #define _MOMDefuzzSetObj_H
  15.  
  16. #include "DefuzzVarObj.h"
  17. #include "DefuzzSetObj.h"
  18. class FuzzyOutSet;
  19.  
  20. //
  21. // Class:    MOMDefuzzSetObj
  22. //
  23. // Mean of Maximum defuzzifcation set object. This object holds the index of the
  24. // set for this method. See MOMDefuzzVarObj.h for details on this defuzz method.
  25. //
  26. class   MOMDefuzzSetObj : public DefuzzSetObj
  27. {
  28.     ////////////////////////////////////////
  29.     ////////// Member Functions ////////////
  30.     ////////////////////////////////////////
  31.  
  32.     public:
  33.         // constructor/destructor funcs
  34.         MOMDefuzzSetObj();// No function body for this. Explicitly disallow auto-creation of it by the compiler
  35.         MOMDefuzzSetObj(FuzzyOutSet* par) ;
  36.          virtual ~MOMDefuzzSetObj(); 
  37.  
  38.          // get functions
  39.         RealType get_mean_value() const;
  40.          int get_defuzz_type() const;
  41.  
  42.         // set functions
  43.         void set_mean_value(RealType mean);
  44.  
  45.         // misc functions
  46.          void calc(void);
  47.  
  48.     ////////////////////////////////////////
  49.     ////////// Class Variables /////////////
  50.     ////////////////////////////////////////
  51.     
  52.     private:
  53.  
  54.           RealType mean_value;    // 'x' value for the mean
  55.  
  56. }; // end class MOMDefuzzSetObj
  57.  
  58. #else
  59.  
  60. class MOMDefuzzSetObj;
  61.   
  62. #endif // _MOMDefuzzSetObj_H
  63.