| 1 |
## Copyright (C) 2011-2012 L. Markowsky <[email protected]> |
| 2 |
## |
| 3 |
## This file is part of the fuzzy-logic-toolkit. |
| 4 |
## |
| 5 |
## The fuzzy-logic-toolkit is free software; you can redistribute it |
| 6 |
## and/or modify it under the terms of the GNU General Public License |
| 7 |
## as published by the Free Software Foundation; either version 3 of |
| 8 |
## the License, or (at your option) any later version. |
| 9 |
## |
| 10 |
## The fuzzy-logic-toolkit is distributed in the hope that it will be |
| 11 |
## useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
| 12 |
## of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
## General Public License for more details. |
| 14 |
## |
| 15 |
## You should have received a copy of the GNU General Public License |
| 16 |
## along with the fuzzy-logic-toolkit; see the file COPYING. If not, |
| 17 |
## see <http://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
## Author: L. Markowsky |
| 20 |
## Keywords: fuzzy-logic-toolkit fis |
| 21 |
## Directory: fuzzy-logic-toolkit/inst/ |
| 22 |
## Filename: linear_tip_calculator.fis |
| 23 |
## Last-Modified: 28 Aug 2012 |
| 24 |
|
| 25 |
[System] |
| 26 |
Name='Linear-Tip-Calculator' |
| 27 |
Type='sugeno' |
| 28 |
Version=2.0 |
| 29 |
NumInputs=2 |
| 30 |
NumOutputs=1 |
| 31 |
NumRules=4 |
| 32 |
AndMethod='min' |
| 33 |
OrMethod='max' |
| 34 |
ImpMethod='prod' |
| 35 |
AggMethod='sum' |
| 36 |
DefuzzMethod='wtaver' |
| 37 |
|
| 38 |
[Input1] |
| 39 |
Name='Food-Quality' |
| 40 |
Range=[1 10] |
| 41 |
NumMFs=2 |
| 42 |
MF1='Bad':'trapmf',[0 1 3 7] |
| 43 |
MF2='Good':'trapmf',[3 7 10 11] |
| 44 |
|
| 45 |
[Input2] |
| 46 |
Name='Service' |
| 47 |
Range=[1 10] |
| 48 |
NumMFs=2 |
| 49 |
MF1='Bad':'trapmf',[0 1 3 7] |
| 50 |
MF2='Good':'trapmf',[3 7 10 11] |
| 51 |
|
| 52 |
[Output1] |
| 53 |
Name='Tip' |
| 54 |
Range=[10 20] |
| 55 |
NumMFs=3 |
| 56 |
MF1='Ten-Percent':'linear',[0 0 10] |
| 57 |
MF2='Fifteen-Percent':'linear',[0 0 15] |
| 58 |
MF3='Twenty-Percent':'linear',[0 0 20] |
| 59 |
|
| 60 |
[Rules] |
| 61 |
1 1, 1 (1) : 1 |
| 62 |
1 2, 2 (1) : 1 |
| 63 |
2 1, 2 (1) : 1 |
| 64 |
2 2, 3 (1) : 1 |