2
0

Defuzzifier.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Author: Juan Rada-Vilela, Ph.D.
  3. Copyright (C) 2010-2014 FuzzyLite Limited
  4. All rights reserved
  5. This file is part of fuzzylite.
  6. fuzzylite is free software: you can redistribute it and/or modify it under
  7. the terms of the GNU Lesser General Public License as published by the Free
  8. Software Foundation, either version 3 of the License, or (at your option)
  9. any later version.
  10. fuzzylite is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
  13. for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with fuzzylite. If not, see <http://www.gnu.org/licenses/>.
  16. fuzzylite™ is a trademark of FuzzyLite Limited.
  17. */
  18. //TODO Check http://en.wikipedia.org/wiki/Defuzzification for other defuzzifiers.
  19. #ifndef FL_DEFUZZIFIER_H
  20. #define FL_DEFUZZIFIER_H
  21. #include "fl/fuzzylite.h"
  22. #include <string>
  23. namespace fl {
  24. class Term;
  25. class FL_API Defuzzifier {
  26. public:
  27. Defuzzifier() {
  28. }
  29. virtual ~Defuzzifier() {
  30. }
  31. FL_DEFAULT_COPY_AND_MOVE(Defuzzifier)
  32. virtual std::string className() const = 0;
  33. virtual Defuzzifier* clone() const = 0;
  34. virtual scalar defuzzify(const Term* term, scalar minimum, scalar maximum) const = 0;
  35. };
  36. }
  37. #endif /* FL_DEFUZZIFIER_H */