| 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: heart_disease_risk.fis |
| 23 |
## Last-Modified: 28 Aug 2012 |
| 24 |
|
| 25 |
## Heart Disease Risk FIS |
| 26 |
|
| 27 |
[System] |
| 28 |
|
| 29 |
Name = 'Heart-Disease-Risk' |
| 30 |
Type = 'sugeno' |
| 31 |
Version = 2.0 |
| 32 |
NumInputs = 2 |
| 33 |
NumOutputs = 1 |
| 34 |
NumRules = 15 |
| 35 |
AndMethod = 'min' |
| 36 |
OrMethod = 'max' |
| 37 |
ImpMethod = 'prod' |
| 38 |
AggMethod = 'sum' |
| 39 |
DefuzzMethod = 'wtaver' |
| 40 |
|
| 41 |
[Input1] |
| 42 |
|
| 43 |
Name = 'LDL-Level' |
| 44 |
Range = [0 300] |
| 45 |
NumMFs = 5 |
| 46 |
MF1 = 'Low' : 'trapmf', [-1 0 90 110] |
| 47 |
MF2 = 'Low-Borderline' : 'trapmf', [90 110 120 140] |
| 48 |
MF3 = 'Borderline' : 'trapmf', [120 140 150 170] |
| 49 |
MF4 = 'High-Borderline' : 'trapmf', [150 170 180 200] |
| 50 |
MF5 = 'High' : 'trapmf', [180 200 300 301] |
| 51 |
|
| 52 |
[Input2] |
| 53 |
|
| 54 |
Name = 'HDL-Level' |
| 55 |
Range = [0 100] |
| 56 |
NumMFs = 3 |
| 57 |
|
| 58 |
MF1 = 'Low-HDL' : 'trapmf', [-1 0 35 45] |
| 59 |
MF2 = 'Moderate-HDL' : 'trapmf', [35 45 55 65] |
| 60 |
MF3 = 'High-HDL' : 'trapmf', [55 65 100 101] |
| 61 |
|
| 62 |
[Output1] |
| 63 |
|
| 64 |
Name = 'Heart-Disease-Risk' |
| 65 |
Range = [0 10] |
| 66 |
NumMFs = 5 |
| 67 |
|
| 68 |
MF1 = 'No-Risk' : 'constant', [0] |
| 69 |
MF2 = 'Low-Risk' : 'constant', [2.5] |
| 70 |
MF3 = 'Medium-Risk' : 'constant', [5] |
| 71 |
MF4 = 'High-Risk' : 'constant', [7.5] |
| 72 |
MF5 = 'Extreme-Risk' : 'constant', [10] |
| 73 |
|
| 74 |
[Rules] |
| 75 |
|
| 76 |
1 1, 3 (1) : 1 |
| 77 |
1 2, 2 (1) : 1 |
| 78 |
1 3, 1 (1) : 1 |
| 79 |
2 1, 3 (1) : 1 |
| 80 |
2 2, 2 (1) : 1 |
| 81 |
2 3, 2 (1) : 1 |
| 82 |
3 1, 4 (1) : 1 |
| 83 |
3 2, 3 (1) : 1 |
| 84 |
3 3, 2 (1) : 1 |
| 85 |
4 1, 4 (1) : 1 |
| 86 |
4 2, 4 (1) : 1 |
| 87 |
4 3, 3 (1) : 1 |
| 88 |
5 1, 5 (1) : 1 |
| 89 |
5 2, 4 (1) : 1 |
| 90 |
5 3, 3 (1) : 1 |