summaryrefslogtreecommitdiff
path: root/examples/mamdani/octave/investment_portfolio.fll
diff options
context:
space:
mode:
authorJohannes Schauer <josch@debian.org>2015-07-07 11:12:00 +0200
committerJohannes Schauer <josch@debian.org>2015-07-07 11:12:00 +0200
commitd210b3addc8ffed7214afd8c7882e700fbcc38c5 (patch)
treeded15607f7f24f83d2d0d7c542265c0a97af577a /examples/mamdani/octave/investment_portfolio.fll
fuzzylite (5.1+dfsg-1) unstable; urgency=medium
* new upstream version (Closes: #777858) * removed debian/patches/20140705-minor-improvements-on-building-script as upstream integrated it. Adjust build options in d/rules accordingly. * delete debian/patches/20140714-building-from-objects-just-once and debian/patches/20141027-fix-some-spelling as they have been applied upstream * install usr/lib/*/pkgconfig/fuzzylite.pc in fuzzylite-dev * SONAME bump from 5.0 to 5.1, so renaming libfuzzylite5.0 to libfuzzylite5.1 * add debian/patches/pkgconfig_installdir to install pkgconfig file in correct location # imported from the archive
Diffstat (limited to 'examples/mamdani/octave/investment_portfolio.fll')
-rw-r--r--examples/mamdani/octave/investment_portfolio.fll31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/mamdani/octave/investment_portfolio.fll b/examples/mamdani/octave/investment_portfolio.fll
new file mode 100644
index 0000000..4bb14e1
--- /dev/null
+++ b/examples/mamdani/octave/investment_portfolio.fll
@@ -0,0 +1,31 @@
+Engine: Investment-Portfolio
+InputVariable: Age
+ enabled: true
+ range: 20.000 100.000
+ term: Young ZShape 30.000 90.000
+ term: Old SShape 30.000 90.000
+InputVariable: RiskTolerance
+ enabled: true
+ range: 0.000 10.000
+ term: Low ZShape 2.000 8.000
+ term: High SShape 2.000 8.000
+OutputVariable: PercentageInStocks
+ enabled: true
+ range: 0.000 100.000
+ accumulation: EinsteinSum
+ defuzzifier: Centroid 200
+ default: nan
+ lock-previous: false
+ lock-range: false
+ term: AboutFifteen Gaussian 15.000 10.000
+ term: AboutFifty Gaussian 50.000 10.000
+ term: AboutEightyFive Gaussian 85.000 10.000
+RuleBlock:
+ enabled: true
+ conjunction: EinsteinProduct
+ disjunction: EinsteinSum
+ activation: EinsteinProduct
+ rule: if Age is Young or RiskTolerance is High then PercentageInStocks is AboutEightyFive
+ rule: if Age is Old or RiskTolerance is Low then PercentageInStocks is AboutFifteen
+ rule: if Age is not extremely Old and RiskTolerance is not extremely Low then PercentageInStocks is AboutFifty with 0.500
+ rule: if Age is not extremely Young and RiskTolerance is not extremely High then PercentageInStocks is AboutFifty with 0.500 \ No newline at end of file