Debian Codegraph @

examples/original/mamdani/octave/mamdani_tip_calculator.fis

raw
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: mamdani_tip_calculator.fis
23 ## Last-Modified: 28 Aug 2012
24
25 [System]
26 Name='Mamdani-Tip-Calculator'
27 Type='mamdani'
28 Version=2.0
29 NumInputs=2
30 NumOutputs=2
31 NumRules=4
32 AndMethod='prod'
33 OrMethod='max'
34 ImpMethod='min'
35 AggMethod='sum'
36 DefuzzMethod='centroid'
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=[0 30]
55 NumMFs=3
56 MF1='About-Ten-Percent':'gaussmf',[2 10]
57 MF2='About-Fifteen-Percent':'gaussmf',[2 15]
58 MF3='About-Twenty-Percent':'gaussmf',[2 20]
59
60 [Output2]
61 Name='Check-Plus-Tip'
62 Range=[1 1.3]
63 NumMFs=3
64 MF1='Plus-About-Ten-Percent':'gaussmf',[0.02 1.10]
65 MF2='Plus-About-Fifteen-Percent':'gaussmf',[0.02 1.15]
66 MF3='Plus-About-Twenty-Percent':'gaussmf',[0.02 1.20]
67
68 [Rules]
69 1 1, 1 1 (1) : 1
70 1 2, 2 2 (1) : 1
71 2 1, 2 2 (1) : 1
72 2 2, 3 3 (1) : 1