DefuzzifierFactory.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef FL_DEFUZZIFIERFACTORY_H
  19. #define FL_DEFUZZIFIERFACTORY_H
  20. #include "fl/factory/ConstructionFactory.h"
  21. #include "fl/defuzzifier/Defuzzifier.h"
  22. #include "fl/defuzzifier/IntegralDefuzzifier.h"
  23. #include "fl/defuzzifier/WeightedDefuzzifier.h"
  24. namespace fl {
  25. class FL_API DefuzzifierFactory : public ConstructionFactory<Defuzzifier*> {
  26. public:
  27. DefuzzifierFactory();
  28. virtual ~DefuzzifierFactory() FL_IOVERRIDE;
  29. FL_DEFAULT_COPY_AND_MOVE(DefuzzifierFactory)
  30. virtual Defuzzifier* constructDefuzzifier(const std::string& key,
  31. int resolution, WeightedDefuzzifier::Type) const;
  32. virtual Defuzzifier* constructDefuzzifier(const std::string& key, int resolution) const;
  33. virtual Defuzzifier* constructDefuzzifier(const std::string& key, WeightedDefuzzifier::Type type);
  34. };
  35. }
  36. #endif /* DEFUZZIFIERFACTORY_H */