1 /*
2  fuzzylite (R), a fuzzy logic control library in C++.
3  Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
4  Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
5 
6  This file is part of fuzzylite.
7 
8  fuzzylite is free software: you can redistribute it and/or modify it under
9  the terms of the FuzzyLite License included with the software.
10 
11  You should have received a copy of the FuzzyLite License along with
12  fuzzylite. If not, see <http://www.fuzzylite.com/license/>.
13 
14  fuzzylite is a registered trademark of FuzzyLite Limited.
15  */
16 
17 #include "fl/defuzzifier/IntegralDefuzzifier.h"
18 
19 namespace fl {
20 
21     int IntegralDefuzzifier::_defaultResolution = 100;
22 
setDefaultResolution(int defaultResolution)23     void IntegralDefuzzifier::setDefaultResolution(int defaultResolution) {
24         _defaultResolution = defaultResolution;
25     }
26 
defaultResolution()27     int IntegralDefuzzifier::defaultResolution() {
28         return _defaultResolution;
29     }
30 
IntegralDefuzzifier(int resolution)31     IntegralDefuzzifier::IntegralDefuzzifier(int resolution)
32     : Defuzzifier(), _resolution(resolution) { }
33 
~IntegralDefuzzifier()34     IntegralDefuzzifier::~IntegralDefuzzifier() { }
35 
setResolution(int resolution)36     void IntegralDefuzzifier::setResolution(int resolution) {
37         this->_resolution = resolution;
38     }
39 
getResolution() const40     int IntegralDefuzzifier::getResolution() const {
41         return this->_resolution;
42     }
43 
44 }
45