summaryrefslogtreecommitdiff
path: root/examples/takagi-sugeno/octave/cubic_approximator.fll
diff options
context:
space:
mode:
Diffstat (limited to 'examples/takagi-sugeno/octave/cubic_approximator.fll')
-rw-r--r--examples/takagi-sugeno/octave/cubic_approximator.fll50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/takagi-sugeno/octave/cubic_approximator.fll b/examples/takagi-sugeno/octave/cubic_approximator.fll
new file mode 100644
index 0000000..073e70e
--- /dev/null
+++ b/examples/takagi-sugeno/octave/cubic_approximator.fll
@@ -0,0 +1,50 @@
+Engine: Cubic-Approximator
+InputVariable: X
+ enabled: true
+ range: -5.000 5.000
+ term: AboutNegFive Triangle -6.000 -5.000 -4.000
+ term: AboutNegFour Triangle -5.000 -4.000 -3.000
+ term: AboutNegThree Triangle -4.000 -3.000 -2.000
+ term: AboutNegTwo Triangle -3.000 -2.000 -1.000
+ term: AboutNegOne Triangle -2.000 -1.000 0.000
+ term: AboutZero Triangle -1.000 0.000 1.000
+ term: AboutOne Triangle 0.000 1.000 2.000
+ term: AboutTwo Triangle 1.000 2.000 3.000
+ term: AboutThree Triangle 2.000 3.000 4.000
+ term: AboutFour Triangle 3.000 4.000 5.000
+ term: AboutFive Triangle 4.000 5.000 6.000
+OutputVariable: ApproxXCubed
+ enabled: true
+ range: -5.000 5.000
+ accumulation: none
+ defuzzifier: WeightedAverage TakagiSugeno
+ default: nan
+ lock-previous: false
+ lock-range: false
+ term: TangentatNegFive Linear 75.000 250.000
+ term: TangentatNegFour Linear 48.000 128.000
+ term: TangentatNegThree Linear 27.000 54.000
+ term: TangentatNegTwo Linear 12.000 16.000
+ term: TangentatNegOne Linear 3.000 2.000
+ term: TangentatZero Linear 0.000 0.000
+ term: TangentatOne Linear 3.000 -2.000
+ term: TangentatTwo Linear 12.000 -16.000
+ term: TangentatThree Linear 27.000 -54.000
+ term: TangentatFour Linear 48.000 -128.000
+ term: TangentatFive Linear 75.000 -250.000
+RuleBlock:
+ enabled: true
+ conjunction: none
+ disjunction: none
+ activation: none
+ rule: if X is AboutNegFive then ApproxXCubed is TangentatNegFive
+ rule: if X is AboutNegFour then ApproxXCubed is TangentatNegFour
+ rule: if X is AboutNegThree then ApproxXCubed is TangentatNegThree
+ rule: if X is AboutNegTwo then ApproxXCubed is TangentatNegTwo
+ rule: if X is AboutNegOne then ApproxXCubed is TangentatNegOne
+ rule: if X is AboutZero then ApproxXCubed is TangentatZero
+ rule: if X is AboutOne then ApproxXCubed is TangentatOne
+ rule: if X is AboutTwo then ApproxXCubed is TangentatTwo
+ rule: if X is AboutThree then ApproxXCubed is TangentatThree
+ rule: if X is AboutFour then ApproxXCubed is TangentatFour
+ rule: if X is AboutFive then ApproxXCubed is TangentatFive \ No newline at end of file