summaryrefslogtreecommitdiff
path: root/examples/takagi-sugeno/approximation.fll
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2019-01-27 13:56:24 +0100
committerJohannes 'josch' Schauer <josch@debian.org>2019-01-27 13:56:33 +0100
commit6ce553563bc795f389f639a3a8cdfe356de71441 (patch)
treeda4c9ede3087ca534d93bc1ac5a14f044f036600 /examples/takagi-sugeno/approximation.fll
parentbbefa170378553e5a6e0d72e4d52328b61f3e8ac (diff)
new upstream version 6.0
Diffstat (limited to 'examples/takagi-sugeno/approximation.fll')
-rw-r--r--examples/takagi-sugeno/approximation.fll18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/takagi-sugeno/approximation.fll b/examples/takagi-sugeno/approximation.fll
index 1d166c9..4461299 100644
--- a/examples/takagi-sugeno/approximation.fll
+++ b/examples/takagi-sugeno/approximation.fll
@@ -1,7 +1,8 @@
-Engine: approximation of sin(x)/x
+Engine: approximation
InputVariable: inputX
enabled: true
range: 0.000 10.000
+ lock-range: false
term: NEAR_1 Triangle 0.000 1.000 2.000
term: NEAR_2 Triangle 1.000 2.000 3.000
term: NEAR_3 Triangle 2.000 3.000 4.000
@@ -14,11 +15,11 @@ InputVariable: inputX
OutputVariable: outputFx
enabled: true
range: -1.000 1.000
- accumulation: none
+ lock-range: false
+ aggregation: none
defuzzifier: WeightedAverage TakagiSugeno
default: nan
lock-previous: true
- lock-range: false
term: f1 Constant 0.840
term: f2 Constant 0.450
term: f3 Constant 0.040
@@ -31,26 +32,27 @@ OutputVariable: outputFx
OutputVariable: trueFx
enabled: true
range: -1.000 1.000
- accumulation: none
+ lock-range: false
+ aggregation: none
defuzzifier: WeightedAverage Automatic
default: nan
lock-previous: true
- lock-range: false
term: fx Function sin(inputX)/inputX
OutputVariable: diffFx
enabled: true
range: -1.000 1.000
- accumulation: none
+ lock-range: false
+ aggregation: none
defuzzifier: WeightedAverage Automatic
default: nan
lock-previous: false
- lock-range: false
term: diff Function fabs(outputFx-trueFx)
RuleBlock:
enabled: true
conjunction: none
disjunction: none
- activation: none
+ implication: none
+ activation: General
rule: if inputX is NEAR_1 then outputFx is f1
rule: if inputX is NEAR_2 then outputFx is f2
rule: if inputX is NEAR_3 then outputFx is f3