| 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: cubic_approximator.fis |
| 23 |
## Last-Modified: 28 Aug 2012 |
| 24 |
|
| 25 |
[System] |
| 26 |
Name='Cubic-Approximator' |
| 27 |
Type='sugeno' |
| 28 |
Version=2.0 |
| 29 |
NumInputs=1 |
| 30 |
NumOutputs=1 |
| 31 |
NumRules=11 |
| 32 |
AndMethod='min' |
| 33 |
OrMethod='max' |
| 34 |
ImpMethod='prod' |
| 35 |
AggMethod='sum' |
| 36 |
DefuzzMethod='wtaver' |
| 37 |
|
| 38 |
[Input1] |
| 39 |
Name='X' |
| 40 |
Range=[-5 5] |
| 41 |
NumMFs=11 |
| 42 |
MF1 = 'About-Neg-Five':'trimf', [-6 -5 -4] |
| 43 |
MF2 = 'About-Neg-Four':'trimf', [-5 -4 -3] |
| 44 |
MF3 = 'About-Neg-Three':'trimf', [-4 -3 -2] |
| 45 |
MF4 = 'About-Neg-Two':'trimf', [-3 -2 -1] |
| 46 |
MF5 = 'About-Neg-One':'trimf', [-2 -1 0] |
| 47 |
MF6 = 'About-Zero':'trimf', [-1 0 1] |
| 48 |
MF7 = 'About-One':'trimf', [0 1 2] |
| 49 |
MF8 = 'About-Two':'trimf', [1 2 3] |
| 50 |
MF9 = 'About-Three':'trimf', [2 3 4] |
| 51 |
MF10 = 'About-Four':'trimf', [3 4 5] |
| 52 |
MF11 = 'About-Five':'trimf', [4 5 6] |
| 53 |
|
| 54 |
[Output1] |
| 55 |
Name='Approx-X-Cubed' |
| 56 |
Range=[-5 5] |
| 57 |
NumMFs=11 |
| 58 |
MF1 = 'Tangent-at-Neg-Five':'linear', [75 250] |
| 59 |
MF2 = 'Tangent-at-Neg-Four':'linear', [48 128] |
| 60 |
MF3 = 'Tangent-at-Neg-Three':'linear', [27 54] |
| 61 |
MF4 = 'Tangent-at-Neg-Two':'linear', [12 16] |
| 62 |
MF5 = 'Tangent-at-Neg-One':'linear', [3 2] |
| 63 |
MF6 = 'Tangent-at-Zero':'linear', [0 0] |
| 64 |
MF7 = 'Tangent-at-One':'linear', [3 -2] |
| 65 |
MF8 = 'Tangent-at-Two':'linear', [12 -16] |
| 66 |
MF9 = 'Tangent-at-Three':'linear', [27 -54] |
| 67 |
MF10 = 'Tangent-at-Four':'linear', [48 -128] |
| 68 |
MF11 = 'Tangent-at-Five':'linear', [75 -250] |
| 69 |
|
| 70 |
[Rules] |
| 71 |
1, 1 (1) : 1 |
| 72 |
2, 2 (1) : 1 |
| 73 |
3, 3 (1) : 1 |
| 74 |
4, 4 (1) : 1 |
| 75 |
5, 5 (1) : 1 |
| 76 |
6, 6 (1) : 1 |
| 77 |
7, 7 (1) : 1 |
| 78 |
8, 8 (1) : 1 |
| 79 |
9, 9 (1) : 1 |
| 80 |
10, 10 (1) : 1 |
| 81 |
11, 11 (1) : 1 |