diff options
Diffstat (limited to 'examples/mamdani')
37 files changed, 8499 insertions, 0 deletions
diff --git a/examples/mamdani/AllTerms.cpp b/examples/mamdani/AllTerms.cpp new file mode 100644 index 0000000..7bb1f31 --- /dev/null +++ b/examples/mamdani/AllTerms.cpp @@ -0,0 +1,95 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("qtfuzzylite"); + +InputVariable* inputVariable = new InputVariable; +inputVariable->setEnabled(true); +inputVariable->setName("AllInputTerms"); +inputVariable->setRange(0.000, 6.500); +inputVariable->addTerm(new Sigmoid("A", 0.500, -20.000)); +inputVariable->addTerm(new ZShape("B", 0.000, 1.000)); +inputVariable->addTerm(new Ramp("C", 1.000, 0.000)); +inputVariable->addTerm(new Triangle("D", 0.500, 1.000, 1.500)); +inputVariable->addTerm(new Trapezoid("E", 1.000, 1.250, 1.750, 2.000)); +inputVariable->addTerm(new Concave("F", 0.850, 0.250)); +inputVariable->addTerm(new Rectangle("G", 1.750, 2.250)); +inputVariable->addTerm(Discrete::create("H", 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000)); +inputVariable->addTerm(new Gaussian("I", 3.000, 0.200)); +inputVariable->addTerm(new Cosine("J", 3.250, 0.650)); +inputVariable->addTerm(new GaussianProduct("K", 3.500, 0.100, 3.300, 0.300)); +inputVariable->addTerm(new Spike("L", 3.640, 1.040)); +inputVariable->addTerm(new Bell("M", 4.000, 0.250, 3.000)); +inputVariable->addTerm(new PiShape("N", 4.000, 4.500, 4.500, 5.000)); +inputVariable->addTerm(new Concave("O", 5.650, 6.250)); +inputVariable->addTerm(new SigmoidDifference("P", 4.750, 10.000, 30.000, 5.250)); +inputVariable->addTerm(new SigmoidProduct("Q", 5.250, 20.000, -10.000, 5.750)); +inputVariable->addTerm(new Ramp("R", 5.500, 6.500)); +inputVariable->addTerm(new SShape("S", 5.500, 6.500)); +inputVariable->addTerm(new Sigmoid("T", 6.000, 20.000)); +engine->addInputVariable(inputVariable); + +OutputVariable* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("AllOutputTerms"); +outputVariable->setRange(0.000, 6.500); +outputVariable->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable->setDefuzzifier(new Centroid(200)); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(new Sigmoid("A", 0.500, -20.000)); +outputVariable->addTerm(new ZShape("B", 0.000, 1.000)); +outputVariable->addTerm(new Ramp("C", 1.000, 0.000)); +outputVariable->addTerm(new Triangle("D", 0.500, 1.000, 1.500)); +outputVariable->addTerm(new Trapezoid("E", 1.000, 1.250, 1.750, 2.000)); +outputVariable->addTerm(new Concave("F", 0.850, 0.250)); +outputVariable->addTerm(new Rectangle("G", 1.750, 2.250)); +outputVariable->addTerm(Discrete::create("H", 10, 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000)); +outputVariable->addTerm(new Gaussian("I", 3.000, 0.200)); +outputVariable->addTerm(new Cosine("J", 3.250, 0.650)); +outputVariable->addTerm(new GaussianProduct("K", 3.500, 0.100, 3.300, 0.300)); +outputVariable->addTerm(new Spike("L", 3.640, 1.040)); +outputVariable->addTerm(new Bell("M", 4.000, 0.250, 3.000)); +outputVariable->addTerm(new PiShape("N", 4.000, 4.500, 4.500, 5.000)); +outputVariable->addTerm(new Concave("O", 5.650, 6.250)); +outputVariable->addTerm(new SigmoidDifference("P", 4.750, 10.000, 30.000, 5.250)); +outputVariable->addTerm(new SigmoidProduct("Q", 5.250, 20.000, -10.000, 5.750)); +outputVariable->addTerm(new Ramp("R", 5.500, 6.500)); +outputVariable->addTerm(new SShape("S", 5.500, 6.500)); +outputVariable->addTerm(new Sigmoid("T", 6.000, 20.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new Minimum); +ruleBlock->setDisjunction(new Maximum); +ruleBlock->setActivation(new Minimum); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is A then AllOutputTerms is T", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is B then AllOutputTerms is S", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is C then AllOutputTerms is R", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is D then AllOutputTerms is Q", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is E then AllOutputTerms is P", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is F then AllOutputTerms is O", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is G then AllOutputTerms is N", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is H then AllOutputTerms is M", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is I then AllOutputTerms is L", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is J then AllOutputTerms is K", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is K then AllOutputTerms is J", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is L then AllOutputTerms is I", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is M then AllOutputTerms is H", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is N then AllOutputTerms is G", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is O then AllOutputTerms is F", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is P then AllOutputTerms is E", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is Q then AllOutputTerms is D", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is R then AllOutputTerms is C", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is S then AllOutputTerms is B", engine)); +ruleBlock->addRule(fl::Rule::parse("if AllInputTerms is T then AllOutputTerms is A", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/AllTerms.fcl b/examples/mamdani/AllTerms.fcl new file mode 100644 index 0000000..ef08722 --- /dev/null +++ b/examples/mamdani/AllTerms.fcl @@ -0,0 +1,88 @@ +FUNCTION_BLOCK qtfuzzylite + +VAR_INPUT + AllInputTerms: REAL; +END_VAR + +VAR_OUTPUT + AllOutputTerms: REAL; +END_VAR + +FUZZIFY AllInputTerms + RANGE := (0.000 .. 6.500); + TERM A := Sigmoid 0.500 -20.000; + TERM B := ZShape 0.000 1.000; + TERM C := Ramp 1.000 0.000; + TERM D := Triangle 0.500 1.000 1.500; + TERM E := Trapezoid 1.000 1.250 1.750 2.000; + TERM F := Concave 0.850 0.250; + TERM G := Rectangle 1.750 2.250; + TERM H := (2.000, 0.000) (2.250, 1.000) (2.500, 0.500) (2.750, 1.000) (3.000, 0.000); + TERM I := Gaussian 3.000 0.200; + TERM J := Cosine 3.250 0.650; + TERM K := GaussianProduct 3.500 0.100 3.300 0.300; + TERM L := Spike 3.640 1.040; + TERM M := Bell 4.000 0.250 3.000; + TERM N := PiShape 4.000 4.500 4.500 5.000; + TERM O := Concave 5.650 6.250; + TERM P := SigmoidDifference 4.750 10.000 30.000 5.250; + TERM Q := SigmoidProduct 5.250 20.000 -10.000 5.750; + TERM R := Ramp 5.500 6.500; + TERM S := SShape 5.500 6.500; + TERM T := Sigmoid 6.000 20.000; +END_FUZZIFY + +DEFUZZIFY AllOutputTerms + RANGE := (0.000 .. 6.500); + TERM A := Sigmoid 0.500 -20.000; + TERM B := ZShape 0.000 1.000; + TERM C := Ramp 1.000 0.000; + TERM D := Triangle 0.500 1.000 1.500; + TERM E := Trapezoid 1.000 1.250 1.750 2.000; + TERM F := Concave 0.850 0.250; + TERM G := Rectangle 1.750 2.250; + TERM H := (2.000, 0.000) (2.250, 1.000) (2.500, 0.500) (2.750, 1.000) (3.000, 0.000); + TERM I := Gaussian 3.000 0.200; + TERM J := Cosine 3.250 0.650; + TERM K := GaussianProduct 3.500 0.100 3.300 0.300; + TERM L := Spike 3.640 1.040; + TERM M := Bell 4.000 0.250 3.000; + TERM N := PiShape 4.000 4.500 4.500 5.000; + TERM O := Concave 5.650 6.250; + TERM P := SigmoidDifference 4.750 10.000 30.000 5.250; + TERM Q := SigmoidProduct 5.250 20.000 -10.000 5.750; + TERM R := Ramp 5.500 6.500; + TERM S := SShape 5.500 6.500; + TERM T := Sigmoid 6.000 20.000; + METHOD : COG; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : MIN; + OR : MAX; + ACT : MIN; + RULE 1 : if AllInputTerms is A then AllOutputTerms is T + RULE 2 : if AllInputTerms is B then AllOutputTerms is S + RULE 3 : if AllInputTerms is C then AllOutputTerms is R + RULE 4 : if AllInputTerms is D then AllOutputTerms is Q + RULE 5 : if AllInputTerms is E then AllOutputTerms is P + RULE 6 : if AllInputTerms is F then AllOutputTerms is O + RULE 7 : if AllInputTerms is G then AllOutputTerms is N + RULE 8 : if AllInputTerms is H then AllOutputTerms is M + RULE 9 : if AllInputTerms is I then AllOutputTerms is L + RULE 10 : if AllInputTerms is J then AllOutputTerms is K + RULE 11 : if AllInputTerms is K then AllOutputTerms is J + RULE 12 : if AllInputTerms is L then AllOutputTerms is I + RULE 13 : if AllInputTerms is M then AllOutputTerms is H + RULE 14 : if AllInputTerms is N then AllOutputTerms is G + RULE 15 : if AllInputTerms is O then AllOutputTerms is F + RULE 16 : if AllInputTerms is P then AllOutputTerms is E + RULE 17 : if AllInputTerms is Q then AllOutputTerms is D + RULE 18 : if AllInputTerms is R then AllOutputTerms is C + RULE 19 : if AllInputTerms is S then AllOutputTerms is B + RULE 20 : if AllInputTerms is T then AllOutputTerms is A +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/AllTerms.fis b/examples/mamdani/AllTerms.fis new file mode 100644 index 0000000..61a6d18 --- /dev/null +++ b/examples/mamdani/AllTerms.fis @@ -0,0 +1,83 @@ +[System] +Name='qtfuzzylite' +Type='mamdani' +NumInputs=1 +NumOutputs=1 +NumRules=20 +AndMethod='min' +OrMethod='max' +ImpMethod='min' +AggMethod='max' +DefuzzMethod='centroid' + +[Input1] +Name='AllInputTerms' +Range=[0.000 6.500] +NumMFs=20 +MF1='A':'sigmf',[-20.000 0.500] +MF2='B':'zmf',[0.000 1.000] +MF3='C':'rampmf',[1.000 0.000] +MF4='D':'trimf',[0.500 1.000 1.500] +MF5='E':'trapmf',[1.000 1.250 1.750 2.000] +MF6='F':'concavemf',[0.850 0.250] +MF7='G':'rectmf',[1.750 2.250] +MF8='H':'discretemf',[2.000 0.000 2.250 1.000 2.500 0.500 2.750 1.000 3.000 0.000] +MF9='I':'gaussmf',[0.200 3.000] +MF10='J':'cosinemf',[3.250 0.650] +MF11='K':'gauss2mf',[0.100 3.500 0.300 3.300] +MF12='L':'spikemf',[3.640 1.040] +MF13='M':'gbellmf',[0.250 3.000 4.000] +MF14='N':'pimf',[4.000 4.500 4.500 5.000] +MF15='O':'concavemf',[5.650 6.250] +MF16='P':'dsigmf',[10.000 4.750 30.000 5.250] +MF17='Q':'psigmf',[20.000 5.250 -10.000 5.750] +MF18='R':'rampmf',[5.500 6.500] +MF19='S':'smf',[5.500 6.500] +MF20='T':'sigmf',[20.000 6.000] + +[Output1] +Name='AllOutputTerms' +Range=[0.000 6.500] +NumMFs=20 +MF1='A':'sigmf',[-20.000 0.500] +MF2='B':'zmf',[0.000 1.000] +MF3='C':'rampmf',[1.000 0.000] +MF4='D':'trimf',[0.500 1.000 1.500] +MF5='E':'trapmf',[1.000 1.250 1.750 2.000] +MF6='F':'concavemf',[0.850 0.250] +MF7='G':'rectmf',[1.750 2.250] +MF8='H':'discretemf',[2.000 0.000 2.250 1.000 2.500 0.500 2.750 1.000 3.000 0.000] +MF9='I':'gaussmf',[0.200 3.000] +MF10='J':'cosinemf',[3.250 0.650] +MF11='K':'gauss2mf',[0.100 3.500 0.300 3.300] +MF12='L':'spikemf',[3.640 1.040] +MF13='M':'gbellmf',[0.250 3.000 4.000] +MF14='N':'pimf',[4.000 4.500 4.500 5.000] +MF15='O':'concavemf',[5.650 6.250] +MF16='P':'dsigmf',[10.000 4.750 30.000 5.250] +MF17='Q':'psigmf',[20.000 5.250 -10.000 5.750] +MF18='R':'rampmf',[5.500 6.500] +MF19='S':'smf',[5.500 6.500] +MF20='T':'sigmf',[20.000 6.000] + +[Rules] +1.000 , 20.000 (1.000) : 1 +2.000 , 19.000 (1.000) : 1 +3.000 , 18.000 (1.000) : 1 +4.000 , 17.000 (1.000) : 1 +5.000 , 16.000 (1.000) : 1 +6.000 , 15.000 (1.000) : 1 +7.000 , 14.000 (1.000) : 1 +8.000 , 13.000 (1.000) : 1 +9.000 , 12.000 (1.000) : 1 +10.000 , 11.000 (1.000) : 1 +11.000 , 10.000 (1.000) : 1 +12.000 , 9.000 (1.000) : 1 +13.000 , 8.000 (1.000) : 1 +14.000 , 7.000 (1.000) : 1 +15.000 , 6.000 (1.000) : 1 +16.000 , 5.000 (1.000) : 1 +17.000 , 4.000 (1.000) : 1 +18.000 , 3.000 (1.000) : 1 +19.000 , 2.000 (1.000) : 1 +20.000 , 1.000 (1.000) : 1 diff --git a/examples/mamdani/AllTerms.fld b/examples/mamdani/AllTerms.fld new file mode 100644 index 0000000..95116fa --- /dev/null +++ b/examples/mamdani/AllTerms.fld @@ -0,0 +1,1026 @@ +#@Engine: qtfuzzylite; +#@InputVariable: AllInputTerms; @OutputVariable: AllOutputTerms; +0.00000000 4.59989528 +0.00635386 4.59989528 +0.01270772 4.59989528 +0.01906158 4.59989215 +0.02541544 4.59988508 +0.03176931 4.59987800 +0.03812317 4.59987091 +0.04447703 4.59986380 +0.05083089 4.59985436 +0.05718475 4.59984014 +0.06353861 4.59982589 +0.06989247 4.59981161 +0.07624633 4.59979731 +0.08260020 4.59978148 +0.08895406 4.59976002 +0.09530792 4.59973853 +0.10166178 4.59971699 +0.10801564 4.59969542 +0.11436950 4.59967311 +0.12072336 4.59964434 +0.12707722 4.59961551 +0.13343109 4.59958663 +0.13978495 4.59955769 +0.14613881 4.59952871 +0.15249267 4.59949265 +0.15884653 4.59945641 +0.16520039 4.59942010 +0.17155425 4.59938372 +0.17790811 4.59934727 +0.18426197 4.59930456 +0.19061584 4.59926081 +0.19696970 4.59921698 +0.20332356 4.59917307 +0.20967742 4.59912907 +0.21603128 4.59907961 +0.22238514 4.59902827 +0.22873900 4.59897684 +0.23509286 4.59892531 +0.24144673 4.59887368 +0.24780059 4.59881738 +0.25415445 4.59691917 +0.26050831 4.59649344 +0.26686217 4.59613763 +0.27321603 4.59574220 +0.27956989 4.59527472 +0.28592375 4.59472722 +0.29227761 4.59411601 +0.29863148 4.59343292 +0.30498534 4.59266881 +0.31133920 4.59177691 +0.31769306 4.59072170 +0.32404692 4.58953931 +0.33040078 4.58821415 +0.33675464 4.58672898 +0.34310850 4.58501913 +0.34946237 4.58298678 +0.35581623 4.58071110 +0.36217009 4.57816482 +0.36852395 4.57531844 +0.37487781 4.57209253 +0.38123167 4.56826124 +0.38758553 4.56399478 +0.39393939 4.55925255 +0.40029326 4.55399273 +0.40664712 4.54814499 +0.41300098 4.54124963 +0.41935484 4.53365966 +0.42570870 4.52533306 +0.43206256 4.51623220 +0.43841642 4.50632570 +0.44477028 4.49679479 +0.45112414 4.49371013 +0.45747801 4.49066211 +0.46383187 4.48765002 +0.47018573 4.48467321 +0.47653959 4.48157929 +0.48289345 4.47849013 +0.48924731 4.47543574 +0.49560117 4.47241549 +0.50195503 4.46942878 +0.50830890 4.46635382 +0.51466276 4.46326454 +0.52101662 4.46020827 +0.52737048 4.45718444 +0.53372434 4.45419251 +0.54007820 4.45113732 +0.54643206 4.44805138 +0.55278592 4.44499678 +0.55913978 4.44197300 +0.56549365 4.43897956 +0.57184751 4.43594462 +0.57820137 4.43286470 +0.58455523 4.42981456 +0.59090909 4.42679371 +0.59726295 4.42380172 +0.60361681 4.42078721 +0.60997067 4.41771542 +0.61632454 4.41467191 +0.62267840 4.41165627 +0.62903226 4.40866808 +0.63538612 4.40567398 +0.64173998 4.40261191 +0.64809384 4.39957674 +0.65444770 4.39656808 +0.66080156 4.39358555 +0.66715543 4.39061167 +0.67350929 4.38756054 +0.67986315 4.38453499 +0.68621701 4.38153468 +0.69257087 4.37880303 +0.69892473 4.37647513 +0.70527859 4.37447251 +0.71163245 4.37287629 +0.71798631 4.37166784 +0.72434018 4.37088208 +0.73069404 4.37049511 +0.73704790 4.37038886 +0.74340176 4.37064262 +0.74975562 4.37108759 +0.75610948 4.37180971 +0.76246334 4.37286007 +0.76881720 4.37417270 +0.77517107 4.37551934 +0.78152493 4.37694454 +0.78787879 4.37839069 +0.79423265 4.37985711 +0.80058651 4.38133785 +0.80694037 4.38282570 +0.81329423 4.38399523 +0.81964809 4.38518475 +0.82600196 4.38627238 +0.83235582 4.38726315 +0.83870968 4.38827040 +0.84506354 4.38921872 +0.85141740 4.38993199 +0.85777126 4.39066514 +0.86412512 4.39141423 +0.87047898 4.39217807 +0.87683284 4.39292534 +0.88318671 4.39340549 +0.88954057 4.39376844 +0.89589443 4.39404783 +0.90224829 4.39434112 +0.90860215 4.39441413 +0.91495601 4.39443473 +0.92130987 4.39447393 +0.92766373 4.39445587 +0.93401760 4.39402302 +0.94037146 4.39356564 +0.94672532 4.39297918 +0.95307918 4.39226487 +0.95943304 4.39119401 +0.96578690 4.38989115 +0.97214076 4.38796712 +0.97849462 4.38600893 +0.98484848 4.38407835 +0.99120235 4.38215966 +0.99755621 4.38024519 +1.00391007 4.37834225 +1.01026393 4.37645076 +1.01661779 4.37457058 +1.02297165 4.37270159 +1.02932551 4.37083696 +1.03567937 4.36877780 +1.04203324 4.36610094 +1.04838710 4.36313118 +1.05474096 4.35990289 +1.06109482 4.35644500 +1.06744868 4.35289881 +1.07380254 4.34968954 +1.08015640 4.34716128 +1.08651026 4.34611783 +1.09286413 4.34663860 +1.09921799 4.34758866 +1.10557185 4.34836750 +1.11192571 4.34914531 +1.11827957 4.34958039 +1.12463343 4.35003899 +1.13098729 4.35014697 +1.13734115 4.35002141 +1.14369501 4.34987408 +1.15004888 4.34973832 +1.15640274 4.34945577 +1.16275660 4.34879209 +1.16911046 4.34814083 +1.17546432 4.34731869 +1.18181818 4.34624489 +1.18817204 4.34469651 +1.19452590 4.34288533 +1.20087977 4.34082275 +1.20723363 4.33851027 +1.21358749 4.33615665 +1.21994135 4.33335536 +1.22629521 4.33013730 +1.23264907 4.32664160 +1.23900293 4.32198901 +1.24535679 4.31616989 +1.25171065 4.31025501 +1.25806452 4.30433460 +1.26441838 4.29837199 +1.27077224 4.29236663 +1.27712610 4.28609815 +1.28347996 4.27962801 +1.28983382 4.27309980 +1.29618768 4.26651947 +1.30254154 4.25988662 +1.30889541 4.25320051 +1.31524927 4.24629927 +1.32160313 4.24005945 +1.32795699 4.23795316 +1.33431085 4.23585513 +1.34066471 4.23376527 +1.34701857 4.23168350 +1.35337243 4.22960435 +1.35972630 4.22753110 +1.36608016 4.22546570 +1.37243402 4.22340809 +1.37878788 4.22135819 +1.38514174 4.21931137 +1.39149560 4.21726922 +1.39784946 4.21523454 +1.40420332 4.21320729 +1.41055718 4.21118737 +1.41691105 4.20917103 +1.42326491 4.20715813 +1.42961877 4.20515236 +1.43597263 4.20315365 +1.44232649 4.20116193 +1.44868035 4.19917429 +1.45503421 4.19718890 +1.46138807 4.19521029 +1.46774194 4.19323841 +1.47409580 4.19127319 +1.48044966 4.18931257 +1.48680352 4.18735301 +1.49315738 4.18539991 +1.49951124 4.18345322 +1.50586510 4.18151287 +1.51221896 4.17957767 +1.51857283 4.17764235 +1.52492669 4.17571319 +1.53128055 4.17379013 +1.53763441 4.17187310 +1.54398827 4.16996178 +1.55034213 4.16804919 +1.55669599 4.16614246 +1.56304985 4.16424153 +1.56940371 4.16234634 +1.57575758 4.16045686 +1.58211144 4.15856612 +1.58846530 4.15668038 +1.59481916 4.15480017 +1.60117302 4.15292542 +1.60752688 4.15105609 +1.61388074 4.14918610 +1.62023460 4.14731998 +1.62658847 4.14545912 +1.63294233 4.14360345 +1.63929619 4.14175295 +1.64565005 4.13990238 +1.65200391 4.13805457 +1.65835777 4.13621175 +1.66471163 4.13437388 +1.67106549 4.13254091 +1.67741935 4.13070850 +1.68377322 4.12887773 +1.69012708 4.12705172 +1.69648094 4.12523040 +1.70283480 4.12341375 +1.70918866 4.12159827 +1.71554252 4.11978336 +1.72189638 4.11797295 +1.72825024 4.11616701 +1.73460411 4.11436550 +1.74095797 4.11256579 +1.74731183 4.11076557 +1.75366569 4.16815388 +1.76001955 4.16667554 +1.76637341 4.16410645 +1.77272727 4.16043775 +1.77908113 4.15638598 +1.78543500 4.15183330 +1.79178886 4.14667777 +1.79814272 4.14136638 +1.80449658 4.13570068 +1.81085044 4.12992982 +1.81720430 4.12387456 +1.82355816 4.11726659 +1.82991202 4.11042338 +1.83626588 4.10317095 +1.84261975 4.09581886 +1.84897361 4.08832336 +1.85532747 4.08042629 +1.86168133 4.07241751 +1.86803519 4.06429132 +1.87438905 4.05568572 +1.88074291 4.04633694 +1.88709677 4.03689612 +1.89345064 4.02761208 +1.89980450 4.01817993 +1.90615836 4.00859076 +1.91251222 3.99884449 +1.91886608 3.98920625 +1.92521994 3.97958231 +1.93157380 3.96973063 +1.93792766 3.96399899 +1.94428152 3.96201550 +1.95063539 3.96003562 +1.95698925 3.95805933 +1.96334311 3.95608658 +1.96969697 3.95411363 +1.97605083 3.95214101 +1.98240469 3.95017184 +1.98875855 3.94820607 +1.99511241 3.94624368 +2.00146628 3.94428172 +2.00782014 3.94231916 +2.01417400 3.94035987 +2.02052786 3.93840382 +2.02688172 3.93645098 +2.03323558 3.93449920 +2.03958944 3.93254591 +2.04594330 3.93059572 +2.05229717 3.92832105 +2.05865103 3.92627635 +2.06500489 3.92447527 +2.07135875 3.92277481 +2.07771261 3.92110473 +2.08406647 3.91946430 +2.09042033 3.91801074 +2.09677419 3.91668068 +2.10312805 3.91536878 +2.10948192 3.91408031 +2.11583578 3.91281472 +2.12218964 3.91172397 +2.12854350 3.91066873 +2.13489736 3.90968063 +2.14125122 3.90866978 +2.14760508 3.90758799 +2.15395894 3.90652395 +2.16031281 3.90547728 +2.16666667 3.90444268 +2.17302053 3.90342393 +2.17937439 3.90242153 +2.18572825 3.90148645 +2.19208211 3.90044592 +2.19843597 3.89939315 +2.20478983 3.89835323 +2.21114370 3.89732738 +2.21749756 3.89631533 +2.22385142 3.89532342 +2.23020528 3.89423978 +2.23655914 3.89316626 +2.24291300 3.89208563 +2.24926686 3.89092119 +2.25562072 3.76337314 +2.26197458 3.76081058 +2.26832845 3.75822085 +2.27468231 3.75551510 +2.28103617 3.75278784 +2.28739003 3.75004999 +2.29374389 3.74729617 +2.30009775 3.74452493 +2.30645161 3.74170572 +2.31280547 3.73878316 +2.31915934 3.73582261 +2.32551320 3.73283947 +2.33186706 3.72983299 +2.33822092 3.72680713 +2.34457478 3.72376166 +2.35092864 3.72069632 +2.35728250 3.71760993 +2.36363636 3.71449828 +2.36999022 3.71136598 +2.37634409 3.70821278 +2.38269795 3.70489596 +2.38905181 3.70154910 +2.39540567 3.69815149 +2.40175953 3.69472082 +2.40811339 3.69126224 +2.41446725 3.68777534 +2.42082111 3.68425972 +2.42717498 3.68070953 +2.43352884 3.67712936 +2.43988270 3.67351920 +2.44623656 3.66987859 +2.45259042 3.66620712 +2.45894428 3.66249957 +2.46529814 3.65875916 +2.47165200 3.65498647 +2.47800587 3.65104597 +2.48435973 3.64701800 +2.49071359 3.64293652 +2.49706745 3.63878867 +2.50342131 3.63659673 +2.50977517 3.63611399 +2.51612903 3.63561093 +2.52248289 3.63510324 +2.52883675 3.63453444 +2.53519062 3.63385004 +2.54154448 3.63317427 +2.54789834 3.63250700 +2.55425220 3.63184550 +2.56060606 3.63118938 +2.56695992 3.63054136 +2.57331378 3.62990130 +2.57966764 3.62926907 +2.58602151 3.62864268 +2.59237537 3.62802052 +2.59872923 3.62740583 +2.60508309 3.62679849 +2.61143695 3.62618413 +2.61779081 3.62554215 +2.62414467 3.62488392 +2.63049853 3.62406075 +2.63685239 3.62318956 +2.64320626 3.62232742 +2.64956012 3.62147802 +2.65591398 3.62064524 +2.66226784 3.61982108 +2.66862170 3.61902917 +2.67497556 3.61825984 +2.68132942 3.61749945 +2.68768328 3.61673378 +2.69403715 3.61592994 +2.70039101 3.61501009 +2.70674487 3.61408072 +2.71309873 3.61321512 +2.71945259 3.61235895 +2.72580645 3.61151329 +2.73216031 3.61064326 +2.73851417 3.60961746 +2.74486804 3.60859393 +2.75122190 3.60702762 +2.75757576 3.60351398 +2.76392962 3.59960789 +2.77028348 3.59555467 +2.77663734 3.59147098 +2.78299120 3.58703970 +2.78934506 3.58242764 +2.79569892 3.57776988 +2.80205279 3.57306558 +2.80840665 3.56829409 +2.81476051 3.56334023 +2.82111437 3.55802164 +2.82746823 3.55251633 +2.83382209 3.54693068 +2.84017595 3.54126260 +2.84652981 3.53550824 +2.85288368 3.52966479 +2.85923754 3.52373194 +2.86559140 3.51744075 +2.87194526 3.51081525 +2.87829912 3.50398168 +2.88465298 3.49701812 +2.89100684 3.48987377 +2.89736070 3.48252541 +2.90371457 3.47502794 +2.91006843 3.46722539 +2.91642229 3.45888634 +2.92277615 3.45055564 +2.92913001 3.44204877 +2.93548387 3.43336011 +2.94183773 3.42460297 +2.94819159 3.41528161 +2.95454545 3.40565175 +2.96089932 3.40300714 +2.96725318 3.40043451 +2.97360704 3.39786239 +2.97996090 3.39528792 +2.98631476 3.39271389 +2.99266862 3.39014036 +2.99902248 3.38756888 +3.00537634 3.38500034 +3.01173021 3.38243001 +3.01808407 3.38007765 +3.02443793 3.37787501 +3.03079179 3.37552494 +3.03714565 3.37340204 +3.04349951 3.37111671 +3.04985337 3.36882418 +3.05620723 3.36662318 +3.06256109 3.36450384 +3.06891496 3.36240980 +3.07526882 3.36033602 +3.08162268 3.35835345 +3.08797654 3.35647890 +3.09433040 3.35462247 +3.10068426 3.35277157 +3.10703812 3.35090734 +3.11339198 3.34899388 +3.11974585 3.34690989 +3.12609971 3.34481953 +3.13245357 3.34259889 +3.13880743 3.34027538 +3.14516129 3.33788302 +3.15151515 3.33541209 +3.15786901 3.33287539 +3.16422287 3.33020839 +3.17057674 3.32753274 +3.17693060 3.32484854 +3.18328446 3.32215720 +3.18963832 3.31945931 +3.19599218 3.31667743 +3.20234604 3.31378377 +3.20869990 3.31088178 +3.21505376 3.30797303 +3.22140762 3.30519492 +3.22776149 3.30243306 +3.23411535 3.29966916 +3.24046921 3.29698360 +3.24682307 3.29438892 +3.25317693 3.29169494 +3.25953079 3.28891268 +3.26588465 3.28630351 +3.27223851 3.28369610 +3.27859238 3.28109052 +3.28494624 3.27860857 +3.29130010 3.27619341 +3.29765396 3.27372222 +3.30400782 3.27116176 +3.31036168 3.26874774 +3.31671554 3.26596679 +3.32306940 3.26308532 +3.32942326 3.26019945 +3.33577713 3.25734721 +3.34213099 3.25458122 +3.34848485 3.25172732 +3.35483871 3.24879215 +3.36119257 3.24576566 +3.36754643 3.24271852 +3.37390029 3.23961927 +3.38025415 3.23641405 +3.38660802 3.23321121 +3.39296188 3.22976019 +3.39931574 3.22637810 +3.40566960 3.22279662 +3.41202346 3.21915441 +3.41837732 3.21527248 +3.42473118 3.21129762 +3.43108504 3.20713137 +3.43743891 3.20292699 +3.44379277 3.19841827 +3.45014663 3.19381075 +3.45650049 3.18886054 +3.46285435 3.18335924 +3.46920821 3.17702423 +3.47556207 3.17049682 +3.48191593 3.16377804 +3.48826979 3.15683580 +3.49462366 3.15177725 +3.50097752 3.14803572 +3.50733138 3.14419775 +3.51368524 3.14044671 +3.52003910 3.13665574 +3.52639296 3.13280620 +3.53274682 3.12889965 +3.53910068 3.12512947 +3.54545455 3.12126138 +3.55180841 3.11732325 +3.55816227 3.11337877 +3.56451613 3.10955691 +3.57086999 3.10568995 +3.57722385 3.10181269 +3.58357771 3.09811330 +3.58993157 3.09438699 +3.59628543 3.09086132 +3.60263930 3.08751561 +3.60899316 3.08415516 +3.61534702 3.08099062 +3.62170088 3.07776100 +3.62805474 3.07468958 +3.63440860 3.07176252 +3.64076246 3.06907851 +3.64711632 3.06688891 +3.65347019 3.06484834 +3.65982405 3.06284108 +3.66617791 3.06094316 +3.67253177 3.05894665 +3.67888563 3.05703324 +3.68523949 3.05164677 +3.69159335 3.04363857 +3.69794721 3.03471641 +3.70430108 3.02543208 +3.71065494 3.01589929 +3.71700880 3.00553223 +3.72336266 2.99463175 +3.72971652 2.98325797 +3.73607038 2.97164536 +3.74242424 2.95913845 +3.74877810 2.94665618 +3.75513196 2.93476834 +3.76148583 2.92401169 +3.76783969 2.91397295 +3.77419355 2.90500583 +3.78054741 2.89739564 +3.78690127 2.89023994 +3.79325513 2.88386471 +3.79960899 2.87814643 +3.80596285 2.87333892 +3.81231672 2.86877440 +3.81867058 2.86469132 +3.82502444 2.86094168 +3.83137830 2.85747363 +3.83773216 2.85439583 +3.84408602 2.85144970 +3.85043988 2.84854948 +3.85679374 2.84569551 +3.86314761 2.84293338 +3.86950147 2.84039038 +3.87585533 2.83818725 +3.88220919 2.83628229 +3.88856305 2.83439521 +3.89491691 2.83251336 +3.90127077 2.83063091 +3.90762463 2.82874730 +3.91397849 2.82686252 +3.92033236 2.82497962 +3.92668622 2.82309721 +3.93304008 2.82121357 +3.93939394 2.81932867 +3.94574780 2.81744251 +3.95210166 2.81555763 +3.95845552 2.81367374 +3.96480938 2.81178852 +3.97116325 2.80990194 +3.97751711 2.80801400 +3.98387097 2.80612671 +3.99022483 2.80424094 +3.99657869 2.80235372 +4.00293255 2.80046506 +4.00928641 2.79857491 +4.01564027 2.79668478 +4.02199413 2.79479670 +4.02834800 2.79290707 +4.03470186 2.79101588 +4.04105572 2.78912311 +4.04740958 2.78722967 +4.05376344 2.78533883 +4.06011730 2.78344635 +4.06647116 2.78155219 +4.07282502 2.77965634 +4.07917889 2.77775913 +4.08553275 2.77586508 +4.09188661 2.77396927 +4.09824047 2.77207168 +4.10459433 2.77017228 +4.11094819 2.76827109 +4.11730205 2.76637434 +4.12365591 2.76447607 +4.13000978 2.76259577 +4.13636364 2.76075882 +4.14271750 2.75893517 +4.14907136 2.75713151 +4.15542522 2.75534631 +4.16177908 2.75358066 +4.16813294 2.75148207 +4.17448680 2.74737957 +4.18084066 2.74328575 +4.18719453 2.73904082 +4.19354839 2.73500045 +4.19990225 2.73095663 +4.20625611 2.72730610 +4.21260997 2.72385368 +4.21896383 2.72065040 +4.22531769 2.71721572 +4.23167155 2.71426493 +4.23802542 2.71137767 +4.24437928 2.70845631 +4.25073314 2.70550205 +4.25708700 2.69996380 +4.26344086 2.69440475 +4.26979472 2.68881807 +4.27614858 2.68315293 +4.28250244 2.67735284 +4.28885630 2.67153447 +4.29521017 2.66571019 +4.30156403 2.65989453 +4.30791789 2.65390481 +4.31427175 2.64708228 +4.32062561 2.64037670 +4.32697947 2.63438347 +4.33333333 2.62861133 +4.33968719 2.62304526 +4.34604106 2.61768259 +4.35239492 2.61251066 +4.35874878 2.60752294 +4.36510264 2.60271328 +4.37145650 2.59807611 +4.37781036 2.59361216 +4.38416422 2.58930980 +4.39051808 2.58516418 +4.39687195 2.58117070 +4.40322581 2.57732505 +4.40957967 2.57362922 +4.41593353 2.57007381 +4.42228739 2.56665466 +4.42864125 2.56336836 +4.43499511 2.56021170 +4.44134897 2.55718697 +4.44770283 2.55428733 +4.45405670 2.55150882 +4.46041056 2.54884895 +4.46676442 2.54630540 +4.47311828 2.54388055 +4.47947214 2.54156989 +4.48582600 2.53936947 +4.49217986 2.53727757 +4.49853372 2.53529258 +4.50488759 2.53341685 +4.51124145 2.53164806 +4.51759531 2.52998217 +4.52394917 2.52841809 +4.53030303 2.52695485 +4.53665689 2.52559467 +4.54301075 2.52433737 +4.54936461 2.52317872 +4.55571848 2.52211823 +4.56207234 2.52115550 +4.56842620 2.52029257 +4.57478006 2.51953144 +4.58113392 2.51886761 +4.58748778 2.51830117 +4.59384164 2.51783230 +4.60019550 2.51746288 +4.60654936 2.51719708 +4.61290323 2.51703018 +4.61925709 2.51696285 +4.62561095 2.51699591 +4.63196481 2.51713108 +4.63831867 2.51737487 +4.64467253 2.51772231 +4.65102639 2.51817478 +4.65738025 2.51365912 +4.66373412 2.50812539 +4.67008798 2.50254117 +4.67644184 2.49690585 +4.68279570 2.49122666 +4.68914956 2.48551165 +4.69550342 2.48013193 +4.70185728 2.47482314 +4.70821114 2.46951049 +4.71456500 2.46420298 +4.72091887 2.45891090 +4.72727273 2.45364485 +4.73362659 2.44842132 +4.73998045 2.44324745 +4.74633431 2.43829931 +4.75268817 2.43276374 +4.75904203 2.42594901 +4.76539589 2.41929175 +4.77174976 2.41266990 +4.77810362 2.40605558 +4.78445748 2.39925032 +4.79081134 2.39250730 +4.79716520 2.38586294 +4.80351906 2.37967484 +4.80987292 2.37356953 +4.81622678 2.36760890 +4.82258065 2.36164133 +4.82893451 2.35521881 +4.83528837 2.34873027 +4.84164223 2.34243033 +4.84799609 2.33632066 +4.85434995 2.33039904 +4.86070381 2.32481692 +4.86705767 2.31953567 +4.87341153 2.31441875 +4.87976540 2.30946679 +4.88611926 2.30477217 +4.89247312 2.30022466 +4.89882698 2.29582445 +4.90518084 2.29156138 +4.91153470 2.28743097 +4.91788856 2.28342860 +4.92424242 2.27955015 +4.93059629 2.27579688 +4.93695015 2.27215754 +4.94330401 2.26862746 +4.94965787 2.26530921 +4.95601173 2.26211366 +4.96236559 2.25901275 +4.96871945 2.25599608 +4.97507331 2.25305960 +4.98142717 2.25019972 +4.98778104 2.24741298 +4.99413490 2.24474210 +5.00048876 2.24213855 +5.00684262 2.23959626 +5.01319648 2.23711290 +5.01955034 2.23468644 +5.02590420 2.23232023 +5.03225806 2.23000972 +5.03861193 2.22775220 +5.04496579 2.22554726 +5.05131965 2.22339513 +5.05767351 2.22130091 +5.06402737 2.21926461 +5.07038123 2.21728613 +5.07673509 2.21536907 +5.08308895 2.21351825 +5.08944282 2.21174342 +5.09579668 2.21005250 +5.10215054 2.20845203 +5.10850440 2.20695434 +5.11485826 2.20557445 +5.12121212 2.20433321 +5.12756598 2.20325400 +5.13391984 2.20235861 +5.14027370 2.20167781 +5.14662757 2.20124760 +5.15298143 2.20111168 +5.15933529 2.20132119 +5.16568915 2.20193404 +5.17204301 2.20307241 +5.17839687 2.20475357 +5.18475073 2.20726794 +5.19110459 2.21067269 +5.19745846 2.21491846 +5.20381232 2.22008426 +5.21016618 2.22646298 +5.21652004 2.23442174 +5.22287390 2.24385294 +5.22922776 2.24551921 +5.23558162 2.24815352 +5.24193548 2.25200556 +5.24828935 2.25714357 +5.25464321 2.25724236 +5.26099707 2.25616649 +5.26735093 2.25520784 +5.27370479 2.25248810 +5.28005865 2.24548917 +5.28641251 2.23618077 +5.29276637 2.22750996 +5.29912023 2.21983090 +5.30547410 2.21317646 +5.31182796 2.20715601 +5.31818182 2.20179151 +5.32453568 2.19721742 +5.33088954 2.19294220 +5.33724340 2.18926362 +5.34359726 2.18576371 +5.34995112 2.18274758 +5.35630499 2.17987881 +5.36265885 2.17713283 +5.36901271 2.17468567 +5.37536657 2.17233874 +5.38172043 2.17006553 +5.38807429 2.16786008 +5.39442815 2.16579907 +5.40078201 2.16380630 +5.40713587 2.16184094 +5.41348974 2.15990253 +5.41984360 2.15799046 +5.42619746 2.15609712 +5.43255132 2.15422018 +5.43890518 2.15235753 +5.44525904 2.15050915 +5.45161290 2.14867742 +5.45796676 2.14685502 +5.46432063 2.14504070 +5.47067449 2.14323338 +5.47702835 2.14143305 +5.48338221 2.13964470 +5.48973607 2.13786091 +5.49608993 2.13608110 +5.50244379 2.13432811 +5.50879765 2.13264953 +5.51515152 2.13098914 +5.52150538 2.12933904 +5.52785924 2.12769901 +5.53421310 2.12606893 +5.54056696 2.12444872 +5.54692082 2.12297169 +5.55327468 2.12151101 +5.55962854 2.12000896 +5.56598240 2.11852374 +5.57233627 2.11705545 +5.57869013 2.11576567 +5.58504399 2.11453786 +5.59139785 2.11333588 +5.59775171 2.11220915 +5.60410557 2.11125442 +5.61045943 2.11033818 +5.61681329 2.10945768 +5.62316716 2.10879468 +5.62952102 2.10825077 +5.63587488 2.10774775 +5.64222874 2.10752398 +5.64858260 2.10735134 +5.65493646 2.10726066 +5.66129032 2.10750332 +5.66764418 2.10779560 +5.67399804 2.10835799 +5.68035191 2.10902043 +5.68670577 2.10984600 +5.69305963 2.11097904 +5.69941349 2.11222876 +5.70576735 2.11373651 +5.71212121 2.11528838 +5.71847507 2.11718851 +5.72482893 2.11914029 +5.73118280 2.12140684 +5.73753666 2.12370922 +5.74389052 2.12586442 +5.75024438 2.12753370 +5.75659824 2.12895198 +5.76295210 2.12981477 +5.76930596 2.13011125 +5.77565982 2.12994191 +5.78201369 2.12933282 +5.78836755 2.12820110 +5.79472141 2.12646697 +5.80107527 2.12412333 +5.80742913 2.12143814 +5.81378299 2.11846532 +5.82013685 2.11546501 +5.82649071 2.11243946 +5.83284457 2.10938833 +5.83919844 2.10641445 +5.84555230 2.10343192 +5.85190616 2.10042326 +5.85826002 2.09738809 +5.86461388 2.09432602 +5.87096774 2.09133192 +5.87732160 2.08834373 +5.88367546 2.08532809 +5.89002933 2.08228458 +5.89638319 2.07921279 +5.90273705 2.07619828 +5.90909091 2.07320629 +5.91544477 2.07018544 +5.92179863 2.06713530 +5.92815249 2.06405538 +5.93450635 2.06102044 +5.94086022 2.05802700 +5.94721408 2.05500322 +5.95356794 2.05194862 +5.95992180 2.04886268 +5.96627566 2.04580749 +5.97262952 2.04281556 +5.97898338 2.03979173 +5.98533724 2.03673546 +5.99169110 2.03364618 +5.99804497 2.03057122 +6.00439883 2.02758451 +6.01075269 2.02456426 +6.01710655 2.02150987 +6.02346041 2.01842071 +6.02981427 2.01532679 +6.03616813 2.01234998 +6.04252199 2.00933789 +6.04887586 2.00628987 +6.05522972 2.00320521 +6.06158358 1.99367430 +6.06793744 1.98376780 +6.07429130 1.97466694 +6.08064516 1.96634034 +6.08699902 1.95875037 +6.09335288 1.95185501 +6.09970674 1.94600727 +6.10606061 1.94074745 +6.11241447 1.93600522 +6.11876833 1.93173876 +6.12512219 1.92790747 +6.13147605 1.92468156 +6.13782991 1.92183518 +6.14418377 1.91928890 +6.15053763 1.91701322 +6.15689150 1.91498087 +6.16324536 1.91327102 +6.16959922 1.91178585 +6.17595308 1.91046069 +6.18230694 1.90927830 +6.18866080 1.90822309 +6.19501466 1.90733119 +6.20136852 1.90656708 +6.20772239 1.90588399 +6.21407625 1.90527278 +6.22043011 1.90472528 +6.22678397 1.90425780 +6.23313783 1.90386237 +6.23949169 1.90350656 +6.24584555 1.90308083 +6.25219941 1.90118262 +6.25855327 1.90112632 +6.26490714 1.90107469 +6.27126100 1.90102316 +6.27761486 1.90097173 +6.28396872 1.90092039 +6.29032258 1.90087093 +6.29667644 1.90082693 +6.30303030 1.90078302 +6.30938416 1.90073919 +6.31573803 1.90069544 +6.32209189 1.90065273 +6.32844575 1.90061628 +6.33479961 1.90057990 +6.34115347 1.90054359 +6.34750733 1.90050735 +6.35386119 1.90047129 +6.36021505 1.90044231 +6.36656891 1.90041337 +6.37292278 1.90038449 +6.37927664 1.90035566 +6.38563050 1.90032689 +6.39198436 1.90030458 +6.39833822 1.90028301 +6.40469208 1.90026147 +6.41104594 1.90023998 +6.41739980 1.90021852 +6.42375367 1.90020269 +6.43010753 1.90018839 +6.43646139 1.90017411 +6.44281525 1.90015986 +6.44916911 1.90014564 +6.45552297 1.90013620 +6.46187683 1.90012909 +6.46823069 1.90012200 +6.47458456 1.90011492 +6.48093842 1.90010785 +6.48729228 1.90010472 +6.49364614 1.90010472 +6.50000000 1.90010472 diff --git a/examples/mamdani/AllTerms.fll b/examples/mamdani/AllTerms.fll new file mode 100644 index 0000000..58d5705 --- /dev/null +++ b/examples/mamdani/AllTerms.fll @@ -0,0 +1,77 @@ +Engine: qtfuzzylite +InputVariable: AllInputTerms + enabled: true + range: 0.000 6.500 + term: A Sigmoid 0.500 -20.000 + term: B ZShape 0.000 1.000 + term: C Ramp 1.000 0.000 + term: D Triangle 0.500 1.000 1.500 + term: E Trapezoid 1.000 1.250 1.750 2.000 + term: F Concave 0.850 0.250 + term: G Rectangle 1.750 2.250 + term: H Discrete 2.000 0.000 2.250 1.000 2.500 0.500 2.750 1.000 3.000 0.000 + term: I Gaussian 3.000 0.200 + term: J Cosine 3.250 0.650 + term: K GaussianProduct 3.500 0.100 3.300 0.300 + term: L Spike 3.640 1.040 + term: M Bell 4.000 0.250 3.000 + term: N PiShape 4.000 4.500 4.500 5.000 + term: O Concave 5.650 6.250 + term: P SigmoidDifference 4.750 10.000 30.000 5.250 + term: Q SigmoidProduct 5.250 20.000 -10.000 5.750 + term: R Ramp 5.500 6.500 + term: S SShape 5.500 6.500 + term: T Sigmoid 6.000 20.000 +OutputVariable: AllOutputTerms + enabled: true + range: 0.000 6.500 + accumulation: Maximum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: A Sigmoid 0.500 -20.000 + term: B ZShape 0.000 1.000 + term: C Ramp 1.000 0.000 + term: D Triangle 0.500 1.000 1.500 + term: E Trapezoid 1.000 1.250 1.750 2.000 + term: F Concave 0.850 0.250 + term: G Rectangle 1.750 2.250 + term: H Discrete 2.000 0.000 2.250 1.000 2.500 0.500 2.750 1.000 3.000 0.000 + term: I Gaussian 3.000 0.200 + term: J Cosine 3.250 0.650 + term: K GaussianProduct 3.500 0.100 3.300 0.300 + term: L Spike 3.640 1.040 + term: M Bell 4.000 0.250 3.000 + term: N PiShape 4.000 4.500 4.500 5.000 + term: O Concave 5.650 6.250 + term: P SigmoidDifference 4.750 10.000 30.000 5.250 + term: Q SigmoidProduct 5.250 20.000 -10.000 5.750 + term: R Ramp 5.500 6.500 + term: S SShape 5.500 6.500 + term: T Sigmoid 6.000 20.000 +RuleBlock: + enabled: true + conjunction: Minimum + disjunction: Maximum + activation: Minimum + rule: if AllInputTerms is A then AllOutputTerms is T + rule: if AllInputTerms is B then AllOutputTerms is S + rule: if AllInputTerms is C then AllOutputTerms is R + rule: if AllInputTerms is D then AllOutputTerms is Q + rule: if AllInputTerms is E then AllOutputTerms is P + rule: if AllInputTerms is F then AllOutputTerms is O + rule: if AllInputTerms is G then AllOutputTerms is N + rule: if AllInputTerms is H then AllOutputTerms is M + rule: if AllInputTerms is I then AllOutputTerms is L + rule: if AllInputTerms is J then AllOutputTerms is K + rule: if AllInputTerms is K then AllOutputTerms is J + rule: if AllInputTerms is L then AllOutputTerms is I + rule: if AllInputTerms is M then AllOutputTerms is H + rule: if AllInputTerms is N then AllOutputTerms is G + rule: if AllInputTerms is O then AllOutputTerms is F + rule: if AllInputTerms is P then AllOutputTerms is E + rule: if AllInputTerms is Q then AllOutputTerms is D + rule: if AllInputTerms is R then AllOutputTerms is C + rule: if AllInputTerms is S then AllOutputTerms is B + rule: if AllInputTerms is T then AllOutputTerms is A
\ No newline at end of file diff --git a/examples/mamdani/AllTerms.java b/examples/mamdani/AllTerms.java new file mode 100644 index 0000000..c59f9a1 --- /dev/null +++ b/examples/mamdani/AllTerms.java @@ -0,0 +1,105 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class AllTerms{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("qtfuzzylite"); + +InputVariable inputVariable = new InputVariable(); +inputVariable.setEnabled(true); +inputVariable.setName("AllInputTerms"); +inputVariable.setRange(0.000, 6.500); +inputVariable.addTerm(new Sigmoid("A", 0.500, -20.000)); +inputVariable.addTerm(new ZShape("B", 0.000, 1.000)); +inputVariable.addTerm(new Ramp("C", 1.000, 0.000)); +inputVariable.addTerm(new Triangle("D", 0.500, 1.000, 1.500)); +inputVariable.addTerm(new Trapezoid("E", 1.000, 1.250, 1.750, 2.000)); +inputVariable.addTerm(new Concave("F", 0.850, 0.250)); +inputVariable.addTerm(new Rectangle("G", 1.750, 2.250)); +inputVariable.addTerm(Discrete.create("H", 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000)); +inputVariable.addTerm(new Gaussian("I", 3.000, 0.200)); +inputVariable.addTerm(new Cosine("J", 3.250, 0.650)); +inputVariable.addTerm(new GaussianProduct("K", 3.500, 0.100, 3.300, 0.300)); +inputVariable.addTerm(new Spike("L", 3.640, 1.040)); +inputVariable.addTerm(new Bell("M", 4.000, 0.250, 3.000)); +inputVariable.addTerm(new PiShape("N", 4.000, 4.500, 4.500, 5.000)); +inputVariable.addTerm(new Concave("O", 5.650, 6.250)); +inputVariable.addTerm(new SigmoidDifference("P", 4.750, 10.000, 30.000, 5.250)); +inputVariable.addTerm(new SigmoidProduct("Q", 5.250, 20.000, -10.000, 5.750)); +inputVariable.addTerm(new Ramp("R", 5.500, 6.500)); +inputVariable.addTerm(new SShape("S", 5.500, 6.500)); +inputVariable.addTerm(new Sigmoid("T", 6.000, 20.000)); +engine.addInputVariable(inputVariable); + +OutputVariable outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("AllOutputTerms"); +outputVariable.setRange(0.000, 6.500); +outputVariable.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable.setDefuzzifier(new Centroid(200)); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(new Sigmoid("A", 0.500, -20.000)); +outputVariable.addTerm(new ZShape("B", 0.000, 1.000)); +outputVariable.addTerm(new Ramp("C", 1.000, 0.000)); +outputVariable.addTerm(new Triangle("D", 0.500, 1.000, 1.500)); +outputVariable.addTerm(new Trapezoid("E", 1.000, 1.250, 1.750, 2.000)); +outputVariable.addTerm(new Concave("F", 0.850, 0.250)); +outputVariable.addTerm(new Rectangle("G", 1.750, 2.250)); +outputVariable.addTerm(Discrete.create("H", 2.000, 0.000, 2.250, 1.000, 2.500, 0.500, 2.750, 1.000, 3.000, 0.000)); +outputVariable.addTerm(new Gaussian("I", 3.000, 0.200)); +outputVariable.addTerm(new Cosine("J", 3.250, 0.650)); +outputVariable.addTerm(new GaussianProduct("K", 3.500, 0.100, 3.300, 0.300)); +outputVariable.addTerm(new Spike("L", 3.640, 1.040)); +outputVariable.addTerm(new Bell("M", 4.000, 0.250, 3.000)); +outputVariable.addTerm(new PiShape("N", 4.000, 4.500, 4.500, 5.000)); +outputVariable.addTerm(new Concave("O", 5.650, 6.250)); +outputVariable.addTerm(new SigmoidDifference("P", 4.750, 10.000, 30.000, 5.250)); +outputVariable.addTerm(new SigmoidProduct("Q", 5.250, 20.000, -10.000, 5.750)); +outputVariable.addTerm(new Ramp("R", 5.500, 6.500)); +outputVariable.addTerm(new SShape("S", 5.500, 6.500)); +outputVariable.addTerm(new Sigmoid("T", 6.000, 20.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new Minimum()); +ruleBlock.setDisjunction(new Maximum()); +ruleBlock.setActivation(new Minimum()); +ruleBlock.addRule(Rule.parse("if AllInputTerms is A then AllOutputTerms is T", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is B then AllOutputTerms is S", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is C then AllOutputTerms is R", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is D then AllOutputTerms is Q", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is E then AllOutputTerms is P", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is F then AllOutputTerms is O", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is G then AllOutputTerms is N", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is H then AllOutputTerms is M", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is I then AllOutputTerms is L", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is J then AllOutputTerms is K", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is K then AllOutputTerms is J", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is L then AllOutputTerms is I", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is M then AllOutputTerms is H", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is N then AllOutputTerms is G", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is O then AllOutputTerms is F", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is P then AllOutputTerms is E", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is Q then AllOutputTerms is D", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is R then AllOutputTerms is C", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is S then AllOutputTerms is B", engine)); +ruleBlock.addRule(Rule.parse("if AllInputTerms is T then AllOutputTerms is A", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/mamdani/Laundry.cpp b/examples/mamdani/Laundry.cpp new file mode 100644 index 0000000..7fbcb11 --- /dev/null +++ b/examples/mamdani/Laundry.cpp @@ -0,0 +1,67 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Laundry"); + +InputVariable* inputVariable1 = new InputVariable; +inputVariable1->setEnabled(true); +inputVariable1->setName("Load"); +inputVariable1->setRange(0.000, 6.000); +inputVariable1->addTerm(Discrete::create("small", 8, 0.000, 1.000, 1.000, 1.000, 2.000, 0.800, 5.000, 0.000)); +inputVariable1->addTerm(Discrete::create("normal", 6, 3.000, 0.000, 4.000, 1.000, 6.000, 0.000)); +engine->addInputVariable(inputVariable1); + +InputVariable* inputVariable2 = new InputVariable; +inputVariable2->setEnabled(true); +inputVariable2->setName("Dirt"); +inputVariable2->setRange(0.000, 6.000); +inputVariable2->addTerm(Discrete::create("low", 6, 0.000, 1.000, 2.000, 0.800, 5.000, 0.000)); +inputVariable2->addTerm(Discrete::create("high", 8, 1.000, 0.000, 2.000, 0.200, 4.000, 0.800, 6.000, 1.000)); +engine->addInputVariable(inputVariable2); + +OutputVariable* outputVariable1 = new OutputVariable; +outputVariable1->setEnabled(true); +outputVariable1->setName("Detergent"); +outputVariable1->setRange(0.000, 80.000); +outputVariable1->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable1->setDefuzzifier(new MeanOfMaximum(500)); +outputVariable1->setDefaultValue(fl::nan); +outputVariable1->setLockPreviousOutputValue(false); +outputVariable1->setLockOutputValueInRange(false); +outputVariable1->addTerm(Discrete::create("less", 6, 10.000, 0.000, 40.000, 1.000, 50.000, 0.000)); +outputVariable1->addTerm(Discrete::create("normal", 8, 40.000, 0.000, 50.000, 1.000, 60.000, 1.000, 80.000, 0.000)); +outputVariable1->addTerm(Discrete::create("more", 4, 50.000, 0.000, 80.000, 1.000)); +engine->addOutputVariable(outputVariable1); + +OutputVariable* outputVariable2 = new OutputVariable; +outputVariable2->setEnabled(true); +outputVariable2->setName("Cycle"); +outputVariable2->setRange(0.000, 20.000); +outputVariable2->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable2->setDefuzzifier(new MeanOfMaximum(500)); +outputVariable2->setDefaultValue(fl::nan); +outputVariable2->setLockPreviousOutputValue(false); +outputVariable2->setLockOutputValueInRange(false); +outputVariable2->addTerm(Discrete::create("short", 6, 0.000, 1.000, 10.000, 1.000, 20.000, 0.000)); +outputVariable2->addTerm(Discrete::create("long", 4, 10.000, 0.000, 20.000, 1.000)); +engine->addOutputVariable(outputVariable2); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new Minimum); +ruleBlock->setDisjunction(new Maximum); +ruleBlock->setActivation(new Minimum); +ruleBlock->addRule(fl::Rule::parse("if Load is small and Dirt is not high then Detergent is less", engine)); +ruleBlock->addRule(fl::Rule::parse("if Load is small and Dirt is high then Detergent is normal", engine)); +ruleBlock->addRule(fl::Rule::parse("if Load is normal and Dirt is low then Detergent is less", engine)); +ruleBlock->addRule(fl::Rule::parse("if Load is normal and Dirt is high then Detergent is more", engine)); +ruleBlock->addRule(fl::Rule::parse("if Detergent is normal or Detergent is less then Cycle is short", engine)); +ruleBlock->addRule(fl::Rule::parse("if Detergent is more then Cycle is long", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/Laundry.fcl b/examples/mamdani/Laundry.fcl new file mode 100644 index 0000000..a5d5380 --- /dev/null +++ b/examples/mamdani/Laundry.fcl @@ -0,0 +1,56 @@ +FUNCTION_BLOCK Laundry + +VAR_INPUT + Load: REAL; + Dirt: REAL; +END_VAR + +VAR_OUTPUT + Detergent: REAL; + Cycle: REAL; +END_VAR + +FUZZIFY Load + RANGE := (0.000 .. 6.000); + TERM small := (0.000, 1.000) (1.000, 1.000) (2.000, 0.800) (5.000, 0.000); + TERM normal := (3.000, 0.000) (4.000, 1.000) (6.000, 0.000); +END_FUZZIFY + +FUZZIFY Dirt + RANGE := (0.000 .. 6.000); + TERM low := (0.000, 1.000) (2.000, 0.800) (5.000, 0.000); + TERM high := (1.000, 0.000) (2.000, 0.200) (4.000, 0.800) (6.000, 1.000); +END_FUZZIFY + +DEFUZZIFY Detergent + RANGE := (0.000 .. 80.000); + TERM less := (10.000, 0.000) (40.000, 1.000) (50.000, 0.000); + TERM normal := (40.000, 0.000) (50.000, 1.000) (60.000, 1.000) (80.000, 0.000); + TERM more := (50.000, 0.000) (80.000, 1.000); + METHOD : MM; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +DEFUZZIFY Cycle + RANGE := (0.000 .. 20.000); + TERM short := (0.000, 1.000) (10.000, 1.000) (20.000, 0.000); + TERM long := (10.000, 0.000) (20.000, 1.000); + METHOD : MM; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : MIN; + OR : MAX; + ACT : MIN; + RULE 1 : if Load is small and Dirt is not high then Detergent is less + RULE 2 : if Load is small and Dirt is high then Detergent is normal + RULE 3 : if Load is normal and Dirt is low then Detergent is less + RULE 4 : if Load is normal and Dirt is high then Detergent is more + RULE 5 : if Detergent is normal or Detergent is less then Cycle is short + RULE 6 : if Detergent is more then Cycle is long +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/Laundry.fld b/examples/mamdani/Laundry.fld new file mode 100644 index 0000000..f72dfb6 --- /dev/null +++ b/examples/mamdani/Laundry.fld @@ -0,0 +1,1026 @@ +#@Engine: Laundry; +#@InputVariable: Load; @InputVariable: Dirt; @OutputVariable: Detergent; @OutputVariable: Cycle; +0.00000000 0.00000000 39.92000000 5.00000000 +0.00000000 0.19354839 39.92000000 5.00000000 +0.00000000 0.38709677 39.92000000 5.00000000 +0.00000000 0.58064516 39.92000000 5.00000000 +0.00000000 0.77419355 39.92000000 5.00000000 +0.00000000 0.96774194 39.92000000 5.00000000 +0.00000000 1.16129032 39.68000000 5.16000000 +0.00000000 1.35483871 39.28000000 5.36000000 +0.00000000 1.54838710 38.88000000 5.54000000 +0.00000000 1.74193548 38.48000000 5.74000000 +0.00000000 1.93548387 38.16000000 5.94000000 +0.00000000 2.12903226 37.60000000 6.20000000 +0.00000000 2.32258065 37.04000000 6.48000000 +0.00000000 2.51612903 36.40000000 6.78000000 +0.00000000 2.70967742 35.92000000 7.06000000 +0.00000000 2.90322581 35.28000000 7.36000000 +0.00000000 3.09677419 57.36000000 7.36000000 +0.00000000 3.29032258 57.12000000 7.06000000 +0.00000000 3.48387097 56.72000000 6.78000000 +0.00000000 3.67741935 56.48000000 6.48000000 +0.00000000 3.87096774 56.24000000 6.20000000 +0.00000000 4.06451613 55.92000000 5.96000000 +0.00000000 4.25806452 55.92000000 5.88000000 +0.00000000 4.45161290 55.76000000 5.78000000 +0.00000000 4.64516129 55.68000000 5.68000000 +0.00000000 4.83870968 55.60000000 5.58000000 +0.00000000 5.03225806 55.44000000 5.48000000 +0.00000000 5.22580645 55.44000000 5.38000000 +0.00000000 5.41935484 55.28000000 5.30000000 +0.00000000 5.61290323 55.20000000 5.20000000 +0.00000000 5.80645161 55.04000000 5.10000000 +0.00000000 6.00000000 54.96000000 5.00000000 +0.19354839 0.00000000 39.92000000 5.00000000 +0.19354839 0.19354839 39.92000000 5.00000000 +0.19354839 0.38709677 39.92000000 5.00000000 +0.19354839 0.58064516 39.92000000 5.00000000 +0.19354839 0.77419355 39.92000000 5.00000000 +0.19354839 0.96774194 39.92000000 5.00000000 +0.19354839 1.16129032 39.68000000 5.16000000 +0.19354839 1.35483871 39.28000000 5.36000000 +0.19354839 1.54838710 38.88000000 5.54000000 +0.19354839 1.74193548 38.48000000 5.74000000 +0.19354839 1.93548387 38.16000000 5.94000000 +0.19354839 2.12903226 37.60000000 6.20000000 +0.19354839 2.32258065 37.04000000 6.48000000 +0.19354839 2.51612903 36.40000000 6.78000000 +0.19354839 2.70967742 35.92000000 7.06000000 +0.19354839 2.90322581 35.28000000 7.36000000 +0.19354839 3.09677419 57.36000000 7.36000000 +0.19354839 3.29032258 57.12000000 7.06000000 +0.19354839 3.48387097 56.72000000 6.78000000 +0.19354839 3.67741935 56.48000000 6.48000000 +0.19354839 3.87096774 56.24000000 6.20000000 +0.19354839 4.06451613 55.92000000 5.96000000 +0.19354839 4.25806452 55.92000000 5.88000000 +0.19354839 4.45161290 55.76000000 5.78000000 +0.19354839 4.64516129 55.68000000 5.68000000 +0.19354839 4.83870968 55.60000000 5.58000000 +0.19354839 5.03225806 55.44000000 5.48000000 +0.19354839 5.22580645 55.44000000 5.38000000 +0.19354839 5.41935484 55.28000000 5.30000000 +0.19354839 5.61290323 55.20000000 5.20000000 +0.19354839 5.80645161 55.04000000 5.10000000 +0.19354839 6.00000000 54.96000000 5.00000000 +0.38709677 0.00000000 39.92000000 5.00000000 +0.38709677 0.19354839 39.92000000 5.00000000 +0.38709677 0.38709677 39.92000000 5.00000000 +0.38709677 0.58064516 39.92000000 5.00000000 +0.38709677 0.77419355 39.92000000 5.00000000 +0.38709677 0.96774194 39.92000000 5.00000000 +0.38709677 1.16129032 39.68000000 5.16000000 +0.38709677 1.35483871 39.28000000 5.36000000 +0.38709677 1.54838710 38.88000000 5.54000000 +0.38709677 1.74193548 38.48000000 5.74000000 +0.38709677 1.93548387 38.16000000 5.94000000 +0.38709677 2.12903226 37.60000000 6.20000000 +0.38709677 2.32258065 37.04000000 6.48000000 +0.38709677 2.51612903 36.40000000 6.78000000 +0.38709677 2.70967742 35.92000000 7.06000000 +0.38709677 2.90322581 35.28000000 7.36000000 +0.38709677 3.09677419 57.36000000 7.36000000 +0.38709677 3.29032258 57.12000000 7.06000000 +0.38709677 3.48387097 56.72000000 6.78000000 +0.38709677 3.67741935 56.48000000 6.48000000 +0.38709677 3.87096774 56.24000000 6.20000000 +0.38709677 4.06451613 55.92000000 5.96000000 +0.38709677 4.25806452 55.92000000 5.88000000 +0.38709677 4.45161290 55.76000000 5.78000000 +0.38709677 4.64516129 55.68000000 5.68000000 +0.38709677 4.83870968 55.60000000 5.58000000 +0.38709677 5.03225806 55.44000000 5.48000000 +0.38709677 5.22580645 55.44000000 5.38000000 +0.38709677 5.41935484 55.28000000 5.30000000 +0.38709677 5.61290323 55.20000000 5.20000000 +0.38709677 5.80645161 55.04000000 5.10000000 +0.38709677 6.00000000 54.96000000 5.00000000 +0.58064516 0.00000000 39.92000000 5.00000000 +0.58064516 0.19354839 39.92000000 5.00000000 +0.58064516 0.38709677 39.92000000 5.00000000 +0.58064516 0.58064516 39.92000000 5.00000000 +0.58064516 0.77419355 39.92000000 5.00000000 +0.58064516 0.96774194 39.92000000 5.00000000 +0.58064516 1.16129032 39.68000000 5.16000000 +0.58064516 1.35483871 39.28000000 5.36000000 +0.58064516 1.54838710 38.88000000 5.54000000 +0.58064516 1.74193548 38.48000000 5.74000000 +0.58064516 1.93548387 38.16000000 5.94000000 +0.58064516 2.12903226 37.60000000 6.20000000 +0.58064516 2.32258065 37.04000000 6.48000000 +0.58064516 2.51612903 36.40000000 6.78000000 +0.58064516 2.70967742 35.92000000 7.06000000 +0.58064516 2.90322581 35.28000000 7.36000000 +0.58064516 3.09677419 57.36000000 7.36000000 +0.58064516 3.29032258 57.12000000 7.06000000 +0.58064516 3.48387097 56.72000000 6.78000000 +0.58064516 3.67741935 56.48000000 6.48000000 +0.58064516 3.87096774 56.24000000 6.20000000 +0.58064516 4.06451613 55.92000000 5.96000000 +0.58064516 4.25806452 55.92000000 5.88000000 +0.58064516 4.45161290 55.76000000 5.78000000 +0.58064516 4.64516129 55.68000000 5.68000000 +0.58064516 4.83870968 55.60000000 5.58000000 +0.58064516 5.03225806 55.44000000 5.48000000 +0.58064516 5.22580645 55.44000000 5.38000000 +0.58064516 5.41935484 55.28000000 5.30000000 +0.58064516 5.61290323 55.20000000 5.20000000 +0.58064516 5.80645161 55.04000000 5.10000000 +0.58064516 6.00000000 54.96000000 5.00000000 +0.77419355 0.00000000 39.92000000 5.00000000 +0.77419355 0.19354839 39.92000000 5.00000000 +0.77419355 0.38709677 39.92000000 5.00000000 +0.77419355 0.58064516 39.92000000 5.00000000 +0.77419355 0.77419355 39.92000000 5.00000000 +0.77419355 0.96774194 39.92000000 5.00000000 +0.77419355 1.16129032 39.68000000 5.16000000 +0.77419355 1.35483871 39.28000000 5.36000000 +0.77419355 1.54838710 38.88000000 5.54000000 +0.77419355 1.74193548 38.48000000 5.74000000 +0.77419355 1.93548387 38.16000000 5.94000000 +0.77419355 2.12903226 37.60000000 6.20000000 +0.77419355 2.32258065 37.04000000 6.48000000 +0.77419355 2.51612903 36.40000000 6.78000000 +0.77419355 2.70967742 35.92000000 7.06000000 +0.77419355 2.90322581 35.28000000 7.36000000 +0.77419355 3.09677419 57.36000000 7.36000000 +0.77419355 3.29032258 57.12000000 7.06000000 +0.77419355 3.48387097 56.72000000 6.78000000 +0.77419355 3.67741935 56.48000000 6.48000000 +0.77419355 3.87096774 56.24000000 6.20000000 +0.77419355 4.06451613 55.92000000 5.96000000 +0.77419355 4.25806452 55.92000000 5.88000000 +0.77419355 4.45161290 55.76000000 5.78000000 +0.77419355 4.64516129 55.68000000 5.68000000 +0.77419355 4.83870968 55.60000000 5.58000000 +0.77419355 5.03225806 55.44000000 5.48000000 +0.77419355 5.22580645 55.44000000 5.38000000 +0.77419355 5.41935484 55.28000000 5.30000000 +0.77419355 5.61290323 55.20000000 5.20000000 +0.77419355 5.80645161 55.04000000 5.10000000 +0.77419355 6.00000000 54.96000000 5.00000000 +0.96774194 0.00000000 39.92000000 5.00000000 +0.96774194 0.19354839 39.92000000 5.00000000 +0.96774194 0.38709677 39.92000000 5.00000000 +0.96774194 0.58064516 39.92000000 5.00000000 +0.96774194 0.77419355 39.92000000 5.00000000 +0.96774194 0.96774194 39.92000000 5.00000000 +0.96774194 1.16129032 39.68000000 5.16000000 +0.96774194 1.35483871 39.28000000 5.36000000 +0.96774194 1.54838710 38.88000000 5.54000000 +0.96774194 1.74193548 38.48000000 5.74000000 +0.96774194 1.93548387 38.16000000 5.94000000 +0.96774194 2.12903226 37.60000000 6.20000000 +0.96774194 2.32258065 37.04000000 6.48000000 +0.96774194 2.51612903 36.40000000 6.78000000 +0.96774194 2.70967742 35.92000000 7.06000000 +0.96774194 2.90322581 35.28000000 7.36000000 +0.96774194 3.09677419 57.36000000 7.36000000 +0.96774194 3.29032258 57.12000000 7.06000000 +0.96774194 3.48387097 56.72000000 6.78000000 +0.96774194 3.67741935 56.48000000 6.48000000 +0.96774194 3.87096774 56.24000000 6.20000000 +0.96774194 4.06451613 55.92000000 5.96000000 +0.96774194 4.25806452 55.92000000 5.88000000 +0.96774194 4.45161290 55.76000000 5.78000000 +0.96774194 4.64516129 55.68000000 5.68000000 +0.96774194 4.83870968 55.60000000 5.58000000 +0.96774194 5.03225806 55.44000000 5.48000000 +0.96774194 5.22580645 55.44000000 5.38000000 +0.96774194 5.41935484 55.28000000 5.30000000 +0.96774194 5.61290323 55.20000000 5.20000000 +0.96774194 5.80645161 55.04000000 5.10000000 +0.96774194 6.00000000 54.96000000 5.00000000 +1.16129032 0.00000000 39.68000000 5.16000000 +1.16129032 0.19354839 39.68000000 5.16000000 +1.16129032 0.38709677 39.68000000 5.16000000 +1.16129032 0.58064516 39.68000000 5.16000000 +1.16129032 0.77419355 39.68000000 5.16000000 +1.16129032 0.96774194 39.68000000 5.16000000 +1.16129032 1.16129032 39.68000000 5.16000000 +1.16129032 1.35483871 39.28000000 5.36000000 +1.16129032 1.54838710 38.88000000 5.54000000 +1.16129032 1.74193548 38.48000000 5.74000000 +1.16129032 1.93548387 38.16000000 5.94000000 +1.16129032 2.12903226 37.60000000 6.20000000 +1.16129032 2.32258065 37.04000000 6.48000000 +1.16129032 2.51612903 36.40000000 6.78000000 +1.16129032 2.70967742 35.92000000 7.06000000 +1.16129032 2.90322581 35.28000000 7.36000000 +1.16129032 3.09677419 57.36000000 7.36000000 +1.16129032 3.29032258 57.12000000 7.06000000 +1.16129032 3.48387097 56.72000000 6.78000000 +1.16129032 3.67741935 56.48000000 6.48000000 +1.16129032 3.87096774 56.24000000 6.20000000 +1.16129032 4.06451613 55.92000000 5.96000000 +1.16129032 4.25806452 55.92000000 5.88000000 +1.16129032 4.45161290 55.76000000 5.78000000 +1.16129032 4.64516129 55.68000000 5.68000000 +1.16129032 4.83870968 55.60000000 5.58000000 +1.16129032 5.03225806 55.44000000 5.48000000 +1.16129032 5.22580645 55.44000000 5.38000000 +1.16129032 5.41935484 55.28000000 5.30000000 +1.16129032 5.61290323 55.20000000 5.20000000 +1.16129032 5.80645161 55.12000000 5.16000000 +1.16129032 6.00000000 55.12000000 5.16000000 +1.35483871 0.00000000 39.28000000 5.36000000 +1.35483871 0.19354839 39.28000000 5.36000000 +1.35483871 0.38709677 39.28000000 5.36000000 +1.35483871 0.58064516 39.28000000 5.36000000 +1.35483871 0.77419355 39.28000000 5.36000000 +1.35483871 0.96774194 39.28000000 5.36000000 +1.35483871 1.16129032 39.28000000 5.36000000 +1.35483871 1.35483871 39.28000000 5.36000000 +1.35483871 1.54838710 38.88000000 5.54000000 +1.35483871 1.74193548 38.48000000 5.74000000 +1.35483871 1.93548387 38.16000000 5.94000000 +1.35483871 2.12903226 37.60000000 6.20000000 +1.35483871 2.32258065 37.04000000 6.48000000 +1.35483871 2.51612903 36.40000000 6.78000000 +1.35483871 2.70967742 35.92000000 7.06000000 +1.35483871 2.90322581 35.28000000 7.36000000 +1.35483871 3.09677419 57.36000000 7.36000000 +1.35483871 3.29032258 57.12000000 7.06000000 +1.35483871 3.48387097 56.72000000 6.78000000 +1.35483871 3.67741935 56.48000000 6.48000000 +1.35483871 3.87096774 56.24000000 6.20000000 +1.35483871 4.06451613 55.92000000 5.96000000 +1.35483871 4.25806452 55.92000000 5.88000000 +1.35483871 4.45161290 55.76000000 5.78000000 +1.35483871 4.64516129 55.68000000 5.68000000 +1.35483871 4.83870968 55.60000000 5.58000000 +1.35483871 5.03225806 55.44000000 5.48000000 +1.35483871 5.22580645 55.44000000 5.38000000 +1.35483871 5.41935484 55.36000000 5.36000000 +1.35483871 5.61290323 55.36000000 5.36000000 +1.35483871 5.80645161 55.36000000 5.36000000 +1.35483871 6.00000000 55.36000000 5.36000000 +1.54838710 0.00000000 38.88000000 5.54000000 +1.54838710 0.19354839 38.88000000 5.54000000 +1.54838710 0.38709677 38.88000000 5.54000000 +1.54838710 0.58064516 38.88000000 5.54000000 +1.54838710 0.77419355 38.88000000 5.54000000 +1.54838710 0.96774194 38.88000000 5.54000000 +1.54838710 1.16129032 38.88000000 5.54000000 +1.54838710 1.35483871 38.88000000 5.54000000 +1.54838710 1.54838710 38.88000000 5.54000000 +1.54838710 1.74193548 38.48000000 5.74000000 +1.54838710 1.93548387 38.16000000 5.94000000 +1.54838710 2.12903226 37.60000000 6.20000000 +1.54838710 2.32258065 37.04000000 6.48000000 +1.54838710 2.51612903 36.40000000 6.78000000 +1.54838710 2.70967742 35.92000000 7.06000000 +1.54838710 2.90322581 35.28000000 7.36000000 +1.54838710 3.09677419 57.36000000 7.36000000 +1.54838710 3.29032258 57.12000000 7.06000000 +1.54838710 3.48387097 56.72000000 6.78000000 +1.54838710 3.67741935 56.48000000 6.48000000 +1.54838710 3.87096774 56.24000000 6.20000000 +1.54838710 4.06451613 55.92000000 5.96000000 +1.54838710 4.25806452 55.92000000 5.88000000 +1.54838710 4.45161290 55.76000000 5.78000000 +1.54838710 4.64516129 55.68000000 5.68000000 +1.54838710 4.83870968 55.60000000 5.58000000 +1.54838710 5.03225806 55.60000000 5.54000000 +1.54838710 5.22580645 55.60000000 5.54000000 +1.54838710 5.41935484 55.60000000 5.54000000 +1.54838710 5.61290323 55.60000000 5.54000000 +1.54838710 5.80645161 55.60000000 5.54000000 +1.54838710 6.00000000 55.60000000 5.54000000 +1.74193548 0.00000000 38.48000000 5.74000000 +1.74193548 0.19354839 38.48000000 5.74000000 +1.74193548 0.38709677 38.48000000 5.74000000 +1.74193548 0.58064516 38.48000000 5.74000000 +1.74193548 0.77419355 38.48000000 5.74000000 +1.74193548 0.96774194 38.48000000 5.74000000 +1.74193548 1.16129032 38.48000000 5.74000000 +1.74193548 1.35483871 38.48000000 5.74000000 +1.74193548 1.54838710 38.48000000 5.74000000 +1.74193548 1.74193548 38.48000000 5.74000000 +1.74193548 1.93548387 38.16000000 5.94000000 +1.74193548 2.12903226 37.60000000 6.20000000 +1.74193548 2.32258065 37.04000000 6.48000000 +1.74193548 2.51612903 36.40000000 6.78000000 +1.74193548 2.70967742 35.92000000 7.06000000 +1.74193548 2.90322581 35.28000000 7.36000000 +1.74193548 3.09677419 57.36000000 7.36000000 +1.74193548 3.29032258 57.12000000 7.06000000 +1.74193548 3.48387097 56.72000000 6.78000000 +1.74193548 3.67741935 56.48000000 6.48000000 +1.74193548 3.87096774 56.24000000 6.20000000 +1.74193548 4.06451613 55.92000000 5.96000000 +1.74193548 4.25806452 55.92000000 5.88000000 +1.74193548 4.45161290 55.76000000 5.78000000 +1.74193548 4.64516129 55.76000000 5.74000000 +1.74193548 4.83870968 55.76000000 5.74000000 +1.74193548 5.03225806 55.76000000 5.74000000 +1.74193548 5.22580645 55.76000000 5.74000000 +1.74193548 5.41935484 55.76000000 5.74000000 +1.74193548 5.61290323 55.76000000 5.74000000 +1.74193548 5.80645161 55.76000000 5.74000000 +1.74193548 6.00000000 55.76000000 5.74000000 +1.93548387 0.00000000 38.16000000 5.94000000 +1.93548387 0.19354839 38.16000000 5.94000000 +1.93548387 0.38709677 38.16000000 5.94000000 +1.93548387 0.58064516 38.16000000 5.94000000 +1.93548387 0.77419355 38.16000000 5.94000000 +1.93548387 0.96774194 38.16000000 5.94000000 +1.93548387 1.16129032 38.16000000 5.94000000 +1.93548387 1.35483871 38.16000000 5.94000000 +1.93548387 1.54838710 38.16000000 5.94000000 +1.93548387 1.74193548 38.16000000 5.94000000 +1.93548387 1.93548387 38.16000000 5.94000000 +1.93548387 2.12903226 37.60000000 6.20000000 +1.93548387 2.32258065 37.04000000 6.48000000 +1.93548387 2.51612903 36.40000000 6.78000000 +1.93548387 2.70967742 35.92000000 7.06000000 +1.93548387 2.90322581 35.28000000 7.36000000 +1.93548387 3.09677419 57.36000000 7.36000000 +1.93548387 3.29032258 57.12000000 7.06000000 +1.93548387 3.48387097 56.72000000 6.78000000 +1.93548387 3.67741935 56.48000000 6.48000000 +1.93548387 3.87096774 56.24000000 6.20000000 +1.93548387 4.06451613 55.92000000 5.96000000 +1.93548387 4.25806452 55.92000000 5.94000000 +1.93548387 4.45161290 55.92000000 5.94000000 +1.93548387 4.64516129 55.92000000 5.94000000 +1.93548387 4.83870968 55.92000000 5.94000000 +1.93548387 5.03225806 55.92000000 5.94000000 +1.93548387 5.22580645 55.92000000 5.94000000 +1.93548387 5.41935484 55.92000000 5.94000000 +1.93548387 5.61290323 55.92000000 5.94000000 +1.93548387 5.80645161 55.92000000 5.94000000 +1.93548387 6.00000000 55.92000000 5.94000000 +2.12903226 0.00000000 37.68000000 6.18000000 +2.12903226 0.19354839 37.68000000 6.18000000 +2.12903226 0.38709677 37.68000000 6.18000000 +2.12903226 0.58064516 37.68000000 6.18000000 +2.12903226 0.77419355 37.68000000 6.18000000 +2.12903226 0.96774194 37.68000000 6.18000000 +2.12903226 1.16129032 37.68000000 6.18000000 +2.12903226 1.35483871 37.68000000 6.18000000 +2.12903226 1.54838710 37.68000000 6.18000000 +2.12903226 1.74193548 37.68000000 6.18000000 +2.12903226 1.93548387 37.68000000 6.18000000 +2.12903226 2.12903226 37.60000000 6.20000000 +2.12903226 2.32258065 37.04000000 6.48000000 +2.12903226 2.51612903 36.40000000 6.78000000 +2.12903226 2.70967742 35.92000000 7.06000000 +2.12903226 2.90322581 35.28000000 7.36000000 +2.12903226 3.09677419 57.36000000 7.36000000 +2.12903226 3.29032258 57.12000000 7.06000000 +2.12903226 3.48387097 56.72000000 6.78000000 +2.12903226 3.67741935 56.48000000 6.48000000 +2.12903226 3.87096774 56.24000000 6.20000000 +2.12903226 4.06451613 56.16000000 6.18000000 +2.12903226 4.25806452 56.16000000 6.18000000 +2.12903226 4.45161290 56.16000000 6.18000000 +2.12903226 4.64516129 56.16000000 6.18000000 +2.12903226 4.83870968 56.16000000 6.18000000 +2.12903226 5.03225806 56.16000000 6.18000000 +2.12903226 5.22580645 56.16000000 6.18000000 +2.12903226 5.41935484 56.16000000 6.18000000 +2.12903226 5.61290323 56.16000000 6.18000000 +2.12903226 5.80645161 56.16000000 6.18000000 +2.12903226 6.00000000 56.16000000 6.18000000 +2.32258065 0.00000000 37.12000000 6.44000000 +2.32258065 0.19354839 37.12000000 6.44000000 +2.32258065 0.38709677 37.12000000 6.44000000 +2.32258065 0.58064516 37.12000000 6.44000000 +2.32258065 0.77419355 37.12000000 6.44000000 +2.32258065 0.96774194 37.12000000 6.44000000 +2.32258065 1.16129032 37.12000000 6.44000000 +2.32258065 1.35483871 37.12000000 6.44000000 +2.32258065 1.54838710 37.12000000 6.44000000 +2.32258065 1.74193548 37.12000000 6.44000000 +2.32258065 1.93548387 37.12000000 6.44000000 +2.32258065 2.12903226 37.12000000 6.44000000 +2.32258065 2.32258065 37.04000000 6.48000000 +2.32258065 2.51612903 36.40000000 6.78000000 +2.32258065 2.70967742 35.92000000 7.06000000 +2.32258065 2.90322581 35.28000000 7.36000000 +2.32258065 3.09677419 57.36000000 7.36000000 +2.32258065 3.29032258 57.12000000 7.06000000 +2.32258065 3.48387097 56.72000000 6.78000000 +2.32258065 3.67741935 56.48000000 6.48000000 +2.32258065 3.87096774 56.48000000 6.44000000 +2.32258065 4.06451613 56.48000000 6.44000000 +2.32258065 4.25806452 56.48000000 6.44000000 +2.32258065 4.45161290 56.48000000 6.44000000 +2.32258065 4.64516129 56.48000000 6.44000000 +2.32258065 4.83870968 56.48000000 6.44000000 +2.32258065 5.03225806 56.48000000 6.44000000 +2.32258065 5.22580645 56.48000000 6.44000000 +2.32258065 5.41935484 56.48000000 6.44000000 +2.32258065 5.61290323 56.48000000 6.44000000 +2.32258065 5.80645161 56.48000000 6.44000000 +2.32258065 6.00000000 56.48000000 6.44000000 +2.51612903 0.00000000 36.64000000 6.68000000 +2.51612903 0.19354839 36.64000000 6.68000000 +2.51612903 0.38709677 36.64000000 6.68000000 +2.51612903 0.58064516 36.64000000 6.68000000 +2.51612903 0.77419355 36.64000000 6.68000000 +2.51612903 0.96774194 36.64000000 6.68000000 +2.51612903 1.16129032 36.64000000 6.68000000 +2.51612903 1.35483871 36.64000000 6.68000000 +2.51612903 1.54838710 36.64000000 6.68000000 +2.51612903 1.74193548 36.64000000 6.68000000 +2.51612903 1.93548387 36.64000000 6.68000000 +2.51612903 2.12903226 36.64000000 6.68000000 +2.51612903 2.32258065 36.64000000 6.68000000 +2.51612903 2.51612903 36.40000000 6.78000000 +2.51612903 2.70967742 35.92000000 7.06000000 +2.51612903 2.90322581 35.28000000 7.36000000 +2.51612903 3.09677419 57.36000000 7.36000000 +2.51612903 3.29032258 57.12000000 7.06000000 +2.51612903 3.48387097 56.72000000 6.78000000 +2.51612903 3.67741935 56.64000000 6.68000000 +2.51612903 3.87096774 56.64000000 6.68000000 +2.51612903 4.06451613 56.64000000 6.68000000 +2.51612903 4.25806452 56.64000000 6.68000000 +2.51612903 4.45161290 56.64000000 6.68000000 +2.51612903 4.64516129 56.64000000 6.68000000 +2.51612903 4.83870968 56.64000000 6.68000000 +2.51612903 5.03225806 56.64000000 6.68000000 +2.51612903 5.22580645 56.64000000 6.68000000 +2.51612903 5.41935484 56.64000000 6.68000000 +2.51612903 5.61290323 56.64000000 6.68000000 +2.51612903 5.80645161 56.64000000 6.68000000 +2.51612903 6.00000000 56.64000000 6.68000000 +2.70967742 0.00000000 36.08000000 6.94000000 +2.70967742 0.19354839 36.08000000 6.94000000 +2.70967742 0.38709677 36.08000000 6.94000000 +2.70967742 0.58064516 36.08000000 6.94000000 +2.70967742 0.77419355 36.08000000 6.94000000 +2.70967742 0.96774194 36.08000000 6.94000000 +2.70967742 1.16129032 36.08000000 6.94000000 +2.70967742 1.35483871 36.08000000 6.94000000 +2.70967742 1.54838710 36.08000000 6.94000000 +2.70967742 1.74193548 36.08000000 6.94000000 +2.70967742 1.93548387 36.08000000 6.94000000 +2.70967742 2.12903226 36.08000000 6.94000000 +2.70967742 2.32258065 36.08000000 6.94000000 +2.70967742 2.51612903 36.08000000 6.94000000 +2.70967742 2.70967742 35.92000000 7.06000000 +2.70967742 2.90322581 35.28000000 7.36000000 +2.70967742 3.09677419 57.36000000 7.36000000 +2.70967742 3.29032258 57.12000000 7.06000000 +2.70967742 3.48387097 56.96000000 6.94000000 +2.70967742 3.67741935 56.96000000 6.94000000 +2.70967742 3.87096774 56.96000000 6.94000000 +2.70967742 4.06451613 56.96000000 6.94000000 +2.70967742 4.25806452 56.96000000 6.94000000 +2.70967742 4.45161290 56.96000000 6.94000000 +2.70967742 4.64516129 56.96000000 6.94000000 +2.70967742 4.83870968 56.96000000 6.94000000 +2.70967742 5.03225806 56.96000000 6.94000000 +2.70967742 5.22580645 56.96000000 6.94000000 +2.70967742 5.41935484 56.96000000 6.94000000 +2.70967742 5.61290323 56.96000000 6.94000000 +2.70967742 5.80645161 56.96000000 6.94000000 +2.70967742 6.00000000 56.96000000 6.94000000 +2.90322581 0.00000000 35.60000000 7.20000000 +2.90322581 0.19354839 35.60000000 7.20000000 +2.90322581 0.38709677 35.60000000 7.20000000 +2.90322581 0.58064516 35.60000000 7.20000000 +2.90322581 0.77419355 35.60000000 7.20000000 +2.90322581 0.96774194 35.60000000 7.20000000 +2.90322581 1.16129032 35.60000000 7.20000000 +2.90322581 1.35483871 35.60000000 7.20000000 +2.90322581 1.54838710 35.60000000 7.20000000 +2.90322581 1.74193548 35.60000000 7.20000000 +2.90322581 1.93548387 35.60000000 7.20000000 +2.90322581 2.12903226 35.60000000 7.20000000 +2.90322581 2.32258065 35.60000000 7.20000000 +2.90322581 2.51612903 35.60000000 7.20000000 +2.90322581 2.70967742 35.60000000 7.20000000 +2.90322581 2.90322581 35.28000000 7.36000000 +2.90322581 3.09677419 57.36000000 7.36000000 +2.90322581 3.29032258 57.20000000 7.20000000 +2.90322581 3.48387097 57.20000000 7.20000000 +2.90322581 3.67741935 57.20000000 7.20000000 +2.90322581 3.87096774 57.20000000 7.20000000 +2.90322581 4.06451613 57.20000000 7.20000000 +2.90322581 4.25806452 57.20000000 7.20000000 +2.90322581 4.45161290 57.20000000 7.20000000 +2.90322581 4.64516129 57.20000000 7.20000000 +2.90322581 4.83870968 57.20000000 7.20000000 +2.90322581 5.03225806 57.20000000 7.20000000 +2.90322581 5.22580645 57.20000000 7.20000000 +2.90322581 5.41935484 57.20000000 7.20000000 +2.90322581 5.61290323 57.20000000 7.20000000 +2.90322581 5.80645161 57.20000000 7.20000000 +2.90322581 6.00000000 57.20000000 7.20000000 +3.09677419 0.00000000 35.12000000 7.46000000 +3.09677419 0.19354839 35.12000000 7.46000000 +3.09677419 0.38709677 35.12000000 7.46000000 +3.09677419 0.58064516 35.12000000 7.46000000 +3.09677419 0.77419355 35.12000000 7.46000000 +3.09677419 0.96774194 35.12000000 7.46000000 +3.09677419 1.16129032 35.12000000 7.46000000 +3.09677419 1.35483871 35.12000000 7.46000000 +3.09677419 1.54838710 35.12000000 7.46000000 +3.09677419 1.74193548 35.12000000 7.46000000 +3.09677419 1.93548387 35.12000000 7.46000000 +3.09677419 2.12903226 35.12000000 7.46000000 +3.09677419 2.32258065 35.12000000 7.46000000 +3.09677419 2.51612903 35.12000000 7.46000000 +3.09677419 2.70967742 35.12000000 7.46000000 +3.09677419 2.90322581 35.12000000 7.46000000 +3.09677419 3.09677419 57.52000000 7.46000000 +3.09677419 3.29032258 57.52000000 7.46000000 +3.09677419 3.48387097 57.52000000 7.46000000 +3.09677419 3.67741935 57.52000000 7.46000000 +3.09677419 3.87096774 57.52000000 7.46000000 +3.09677419 4.06451613 57.52000000 7.46000000 +3.09677419 4.25806452 57.52000000 7.46000000 +3.09677419 4.45161290 57.52000000 7.46000000 +3.09677419 4.64516129 57.52000000 7.46000000 +3.09677419 4.83870968 57.52000000 7.46000000 +3.09677419 5.03225806 57.52000000 7.46000000 +3.09677419 5.22580645 57.52000000 7.46000000 +3.09677419 5.41935484 57.52000000 7.46000000 +3.09677419 5.61290323 57.52000000 7.46000000 +3.09677419 5.80645161 57.52000000 7.46000000 +3.09677419 6.00000000 57.52000000 7.46000000 +3.29032258 0.00000000 34.56000000 7.72000000 +3.29032258 0.19354839 34.56000000 7.72000000 +3.29032258 0.38709677 34.56000000 7.72000000 +3.29032258 0.58064516 34.56000000 7.72000000 +3.29032258 0.77419355 34.56000000 7.72000000 +3.29032258 0.96774194 34.56000000 7.72000000 +3.29032258 1.16129032 34.56000000 7.72000000 +3.29032258 1.35483871 34.56000000 7.72000000 +3.29032258 1.54838710 34.56000000 7.72000000 +3.29032258 1.74193548 34.56000000 7.72000000 +3.29032258 1.93548387 34.56000000 7.72000000 +3.29032258 2.12903226 34.56000000 7.72000000 +3.29032258 2.32258065 34.56000000 7.72000000 +3.29032258 2.51612903 34.56000000 7.72000000 +3.29032258 2.70967742 34.56000000 7.72000000 +3.29032258 2.90322581 47.28000000 7.72000000 +3.29032258 3.09677419 47.28000000 7.72000000 +3.29032258 3.29032258 57.68000000 7.72000000 +3.29032258 3.48387097 57.68000000 7.72000000 +3.29032258 3.67741935 57.68000000 7.72000000 +3.29032258 3.87096774 57.68000000 7.72000000 +3.29032258 4.06451613 57.68000000 7.72000000 +3.29032258 4.25806452 57.68000000 7.72000000 +3.29032258 4.45161290 57.68000000 7.72000000 +3.29032258 4.64516129 57.68000000 7.72000000 +3.29032258 4.83870968 57.68000000 7.72000000 +3.29032258 5.03225806 57.68000000 7.72000000 +3.29032258 5.22580645 57.68000000 7.72000000 +3.29032258 5.41935484 57.68000000 7.72000000 +3.29032258 5.61290323 57.68000000 7.72000000 +3.29032258 5.80645161 57.68000000 7.72000000 +3.29032258 6.00000000 57.68000000 7.72000000 +3.48387097 0.00000000 34.80000000 7.58000000 +3.48387097 0.19354839 34.80000000 7.58000000 +3.48387097 0.38709677 34.80000000 7.58000000 +3.48387097 0.58064516 34.80000000 7.58000000 +3.48387097 0.77419355 34.80000000 7.58000000 +3.48387097 0.96774194 34.80000000 7.58000000 +3.48387097 1.16129032 34.80000000 7.58000000 +3.48387097 1.35483871 34.80000000 7.58000000 +3.48387097 1.54838710 34.80000000 7.58000000 +3.48387097 1.74193548 34.80000000 7.58000000 +3.48387097 1.93548387 34.80000000 7.58000000 +3.48387097 2.12903226 34.80000000 7.58000000 +3.48387097 2.32258065 34.80000000 7.58000000 +3.48387097 2.51612903 34.80000000 7.58000000 +3.48387097 2.70967742 34.80000000 7.58000000 +3.48387097 2.90322581 34.80000000 7.58000000 +3.48387097 3.09677419 34.80000000 10.00000000 +3.48387097 3.29032258 72.24000000 17.42000000 +3.48387097 3.48387097 72.24000000 17.42000000 +3.48387097 3.67741935 72.24000000 17.42000000 +3.48387097 3.87096774 72.24000000 17.42000000 +3.48387097 4.06451613 72.24000000 17.42000000 +3.48387097 4.25806452 72.24000000 17.42000000 +3.48387097 4.45161290 72.24000000 17.42000000 +3.48387097 4.64516129 72.24000000 17.42000000 +3.48387097 4.83870968 72.24000000 17.42000000 +3.48387097 5.03225806 72.24000000 17.42000000 +3.48387097 5.22580645 72.24000000 17.42000000 +3.48387097 5.41935484 72.24000000 17.42000000 +3.48387097 5.61290323 72.24000000 17.42000000 +3.48387097 5.80645161 72.24000000 17.42000000 +3.48387097 6.00000000 72.24000000 17.42000000 +3.67741935 0.00000000 36.80000000 6.62000000 +3.67741935 0.19354839 36.80000000 6.62000000 +3.67741935 0.38709677 36.80000000 6.62000000 +3.67741935 0.58064516 36.80000000 6.62000000 +3.67741935 0.77419355 36.80000000 6.62000000 +3.67741935 0.96774194 36.80000000 6.62000000 +3.67741935 1.16129032 36.80000000 6.62000000 +3.67741935 1.35483871 36.80000000 6.62000000 +3.67741935 1.54838710 36.80000000 6.62000000 +3.67741935 1.74193548 36.80000000 6.62000000 +3.67741935 1.93548387 36.80000000 6.62000000 +3.67741935 2.12903226 36.80000000 6.62000000 +3.67741935 2.32258065 36.80000000 6.62000000 +3.67741935 2.51612903 36.64000000 6.68000000 +3.67741935 2.70967742 36.08000000 6.94000000 +3.67741935 2.90322581 35.60000000 7.20000000 +3.67741935 3.09677419 72.96000000 17.64000000 +3.67741935 3.29032258 73.84000000 17.94000000 +3.67741935 3.48387097 74.64000000 18.22000000 +3.67741935 3.67741935 75.20000000 18.38000000 +3.67741935 3.87096774 75.20000000 18.38000000 +3.67741935 4.06451613 75.20000000 18.38000000 +3.67741935 4.25806452 75.20000000 18.38000000 +3.67741935 4.45161290 75.20000000 18.38000000 +3.67741935 4.64516129 75.20000000 18.38000000 +3.67741935 4.83870968 75.20000000 18.38000000 +3.67741935 5.03225806 75.20000000 18.38000000 +3.67741935 5.22580645 75.20000000 18.38000000 +3.67741935 5.41935484 75.20000000 18.38000000 +3.67741935 5.61290323 75.20000000 18.38000000 +3.67741935 5.80645161 75.20000000 18.38000000 +3.67741935 6.00000000 75.20000000 18.38000000 +3.87096774 0.00000000 38.72000000 5.64000000 +3.87096774 0.19354839 38.72000000 5.64000000 +3.87096774 0.38709677 38.72000000 5.64000000 +3.87096774 0.58064516 38.72000000 5.64000000 +3.87096774 0.77419355 38.72000000 5.64000000 +3.87096774 0.96774194 38.72000000 5.64000000 +3.87096774 1.16129032 38.72000000 5.64000000 +3.87096774 1.35483871 38.64000000 5.68000000 +3.87096774 1.54838710 38.48000000 5.78000000 +3.87096774 1.74193548 38.24000000 5.88000000 +3.87096774 1.93548387 38.08000000 5.96000000 +3.87096774 2.12903226 37.68000000 6.18000000 +3.87096774 2.32258065 37.12000000 6.44000000 +3.87096774 2.51612903 36.64000000 6.68000000 +3.87096774 2.70967742 36.08000000 6.94000000 +3.87096774 2.90322581 35.60000000 7.20000000 +3.87096774 3.09677419 72.96000000 17.64000000 +3.87096774 3.29032258 73.84000000 17.94000000 +3.87096774 3.48387097 74.64000000 18.22000000 +3.87096774 3.67741935 75.52000000 18.52000000 +3.87096774 3.87096774 76.40000000 18.80000000 +3.87096774 4.06451613 77.12000000 19.04000000 +3.87096774 4.25806452 77.36000000 19.12000000 +3.87096774 4.45161290 77.68000000 19.22000000 +3.87096774 4.64516129 78.00000000 19.32000000 +3.87096774 4.83870968 78.08000000 19.36000000 +3.87096774 5.03225806 78.08000000 19.36000000 +3.87096774 5.22580645 78.08000000 19.36000000 +3.87096774 5.41935484 78.08000000 19.36000000 +3.87096774 5.61290323 78.08000000 19.36000000 +3.87096774 5.80645161 78.08000000 19.36000000 +3.87096774 6.00000000 78.08000000 19.36000000 +4.06451613 0.00000000 39.68000000 5.16000000 +4.06451613 0.19354839 39.68000000 5.16000000 +4.06451613 0.38709677 39.60000000 5.20000000 +4.06451613 0.58064516 39.44000000 5.30000000 +4.06451613 0.77419355 39.20000000 5.38000000 +4.06451613 0.96774194 39.04000000 5.48000000 +4.06451613 1.16129032 38.80000000 5.58000000 +4.06451613 1.35483871 38.64000000 5.68000000 +4.06451613 1.54838710 38.48000000 5.78000000 +4.06451613 1.74193548 38.24000000 5.88000000 +4.06451613 1.93548387 38.08000000 5.96000000 +4.06451613 2.12903226 37.68000000 6.18000000 +4.06451613 2.32258065 37.12000000 6.44000000 +4.06451613 2.51612903 36.64000000 6.68000000 +4.06451613 2.70967742 36.08000000 6.94000000 +4.06451613 2.90322581 35.60000000 7.20000000 +4.06451613 3.09677419 72.96000000 17.64000000 +4.06451613 3.29032258 73.84000000 17.94000000 +4.06451613 3.48387097 74.64000000 18.22000000 +4.06451613 3.67741935 75.52000000 18.52000000 +4.06451613 3.87096774 76.40000000 18.80000000 +4.06451613 4.06451613 77.12000000 19.04000000 +4.06451613 4.25806452 77.36000000 19.12000000 +4.06451613 4.45161290 77.68000000 19.22000000 +4.06451613 4.64516129 78.00000000 19.32000000 +4.06451613 4.83870968 78.24000000 19.42000000 +4.06451613 5.03225806 78.56000000 19.52000000 +4.06451613 5.22580645 78.80000000 19.62000000 +4.06451613 5.41935484 79.12000000 19.70000000 +4.06451613 5.61290323 79.44000000 19.80000000 +4.06451613 5.80645161 79.52000000 19.84000000 +4.06451613 6.00000000 79.52000000 19.84000000 +4.25806452 0.00000000 38.72000000 5.64000000 +4.25806452 0.19354839 38.72000000 5.64000000 +4.25806452 0.38709677 38.72000000 5.64000000 +4.25806452 0.58064516 38.72000000 5.64000000 +4.25806452 0.77419355 38.72000000 5.64000000 +4.25806452 0.96774194 38.72000000 5.64000000 +4.25806452 1.16129032 38.72000000 5.64000000 +4.25806452 1.35483871 38.64000000 5.68000000 +4.25806452 1.54838710 38.48000000 5.78000000 +4.25806452 1.74193548 38.24000000 5.88000000 +4.25806452 1.93548387 38.08000000 5.96000000 +4.25806452 2.12903226 37.68000000 6.18000000 +4.25806452 2.32258065 37.12000000 6.44000000 +4.25806452 2.51612903 36.64000000 6.68000000 +4.25806452 2.70967742 36.08000000 6.94000000 +4.25806452 2.90322581 35.60000000 7.20000000 +4.25806452 3.09677419 72.96000000 17.64000000 +4.25806452 3.29032258 73.84000000 17.94000000 +4.25806452 3.48387097 74.64000000 18.22000000 +4.25806452 3.67741935 75.52000000 18.52000000 +4.25806452 3.87096774 76.40000000 18.80000000 +4.25806452 4.06451613 77.12000000 19.04000000 +4.25806452 4.25806452 77.36000000 19.12000000 +4.25806452 4.45161290 77.68000000 19.22000000 +4.25806452 4.64516129 78.00000000 19.32000000 +4.25806452 4.83870968 78.08000000 19.36000000 +4.25806452 5.03225806 78.08000000 19.36000000 +4.25806452 5.22580645 78.08000000 19.36000000 +4.25806452 5.41935484 78.08000000 19.36000000 +4.25806452 5.61290323 78.08000000 19.36000000 +4.25806452 5.80645161 78.08000000 19.36000000 +4.25806452 6.00000000 78.08000000 19.36000000 +4.45161290 0.00000000 37.76000000 6.12000000 +4.45161290 0.19354839 37.76000000 6.12000000 +4.45161290 0.38709677 37.76000000 6.12000000 +4.45161290 0.58064516 37.76000000 6.12000000 +4.45161290 0.77419355 37.76000000 6.12000000 +4.45161290 0.96774194 37.76000000 6.12000000 +4.45161290 1.16129032 37.76000000 6.12000000 +4.45161290 1.35483871 37.76000000 6.12000000 +4.45161290 1.54838710 37.76000000 6.12000000 +4.45161290 1.74193548 37.76000000 6.12000000 +4.45161290 1.93548387 37.76000000 6.12000000 +4.45161290 2.12903226 37.68000000 6.18000000 +4.45161290 2.32258065 37.12000000 6.44000000 +4.45161290 2.51612903 36.64000000 6.68000000 +4.45161290 2.70967742 36.08000000 6.94000000 +4.45161290 2.90322581 35.60000000 7.20000000 +4.45161290 3.09677419 72.96000000 17.64000000 +4.45161290 3.29032258 73.84000000 17.94000000 +4.45161290 3.48387097 74.64000000 18.22000000 +4.45161290 3.67741935 75.52000000 18.52000000 +4.45161290 3.87096774 76.40000000 18.80000000 +4.45161290 4.06451613 76.64000000 18.88000000 +4.45161290 4.25806452 76.64000000 18.88000000 +4.45161290 4.45161290 76.64000000 18.88000000 +4.45161290 4.64516129 76.64000000 18.88000000 +4.45161290 4.83870968 76.64000000 18.88000000 +4.45161290 5.03225806 76.64000000 18.88000000 +4.45161290 5.22580645 76.64000000 18.88000000 +4.45161290 5.41935484 76.64000000 18.88000000 +4.45161290 5.61290323 76.64000000 18.88000000 +4.45161290 5.80645161 76.64000000 18.88000000 +4.45161290 6.00000000 76.64000000 18.88000000 +4.64516129 0.00000000 36.80000000 6.62000000 +4.64516129 0.19354839 36.80000000 6.62000000 +4.64516129 0.38709677 36.80000000 6.62000000 +4.64516129 0.58064516 36.80000000 6.62000000 +4.64516129 0.77419355 36.80000000 6.62000000 +4.64516129 0.96774194 36.80000000 6.62000000 +4.64516129 1.16129032 36.80000000 6.62000000 +4.64516129 1.35483871 36.80000000 6.62000000 +4.64516129 1.54838710 36.80000000 6.62000000 +4.64516129 1.74193548 36.80000000 6.62000000 +4.64516129 1.93548387 36.80000000 6.62000000 +4.64516129 2.12903226 36.80000000 6.62000000 +4.64516129 2.32258065 36.80000000 6.62000000 +4.64516129 2.51612903 36.64000000 6.68000000 +4.64516129 2.70967742 36.08000000 6.94000000 +4.64516129 2.90322581 35.60000000 7.20000000 +4.64516129 3.09677419 72.96000000 17.64000000 +4.64516129 3.29032258 73.84000000 17.94000000 +4.64516129 3.48387097 74.64000000 18.22000000 +4.64516129 3.67741935 75.20000000 18.38000000 +4.64516129 3.87096774 75.20000000 18.38000000 +4.64516129 4.06451613 75.20000000 18.38000000 +4.64516129 4.25806452 75.20000000 18.38000000 +4.64516129 4.45161290 75.20000000 18.38000000 +4.64516129 4.64516129 75.20000000 18.38000000 +4.64516129 4.83870968 75.20000000 18.38000000 +4.64516129 5.03225806 75.20000000 18.38000000 +4.64516129 5.22580645 75.20000000 18.38000000 +4.64516129 5.41935484 75.20000000 18.38000000 +4.64516129 5.61290323 75.20000000 18.38000000 +4.64516129 5.80645161 75.20000000 18.38000000 +4.64516129 6.00000000 75.20000000 18.38000000 +4.83870968 0.00000000 35.76000000 7.10000000 +4.83870968 0.19354839 35.76000000 7.10000000 +4.83870968 0.38709677 35.76000000 7.10000000 +4.83870968 0.58064516 35.76000000 7.10000000 +4.83870968 0.77419355 35.76000000 7.10000000 +4.83870968 0.96774194 35.76000000 7.10000000 +4.83870968 1.16129032 35.76000000 7.10000000 +4.83870968 1.35483871 35.76000000 7.10000000 +4.83870968 1.54838710 35.76000000 7.10000000 +4.83870968 1.74193548 35.76000000 7.10000000 +4.83870968 1.93548387 35.76000000 7.10000000 +4.83870968 2.12903226 35.76000000 7.10000000 +4.83870968 2.32258065 35.76000000 7.10000000 +4.83870968 2.51612903 35.76000000 7.10000000 +4.83870968 2.70967742 35.76000000 7.10000000 +4.83870968 2.90322581 35.60000000 7.20000000 +4.83870968 3.09677419 72.96000000 17.64000000 +4.83870968 3.29032258 73.68000000 17.90000000 +4.83870968 3.48387097 73.68000000 17.90000000 +4.83870968 3.67741935 73.68000000 17.90000000 +4.83870968 3.87096774 73.68000000 17.90000000 +4.83870968 4.06451613 73.68000000 17.90000000 +4.83870968 4.25806452 73.68000000 17.90000000 +4.83870968 4.45161290 73.68000000 17.90000000 +4.83870968 4.64516129 73.68000000 17.90000000 +4.83870968 4.83870968 73.68000000 17.90000000 +4.83870968 5.03225806 73.68000000 17.90000000 +4.83870968 5.22580645 73.68000000 17.90000000 +4.83870968 5.41935484 73.68000000 17.90000000 +4.83870968 5.61290323 73.68000000 17.90000000 +4.83870968 5.80645161 73.68000000 17.90000000 +4.83870968 6.00000000 73.68000000 17.90000000 +5.03225806 0.00000000 34.80000000 7.58000000 +5.03225806 0.19354839 34.80000000 7.58000000 +5.03225806 0.38709677 34.80000000 7.58000000 +5.03225806 0.58064516 34.80000000 7.58000000 +5.03225806 0.77419355 34.80000000 7.58000000 +5.03225806 0.96774194 34.80000000 7.58000000 +5.03225806 1.16129032 34.80000000 7.58000000 +5.03225806 1.35483871 34.80000000 7.58000000 +5.03225806 1.54838710 34.80000000 7.58000000 +5.03225806 1.74193548 34.80000000 7.58000000 +5.03225806 1.93548387 34.80000000 7.58000000 +5.03225806 2.12903226 34.80000000 7.58000000 +5.03225806 2.32258065 34.80000000 7.58000000 +5.03225806 2.51612903 34.80000000 7.58000000 +5.03225806 2.70967742 34.80000000 7.58000000 +5.03225806 2.90322581 34.80000000 7.58000000 +5.03225806 3.09677419 34.80000000 10.00000000 +5.03225806 3.29032258 72.24000000 17.42000000 +5.03225806 3.48387097 72.24000000 17.42000000 +5.03225806 3.67741935 72.24000000 17.42000000 +5.03225806 3.87096774 72.24000000 17.42000000 +5.03225806 4.06451613 72.24000000 17.42000000 +5.03225806 4.25806452 72.24000000 17.42000000 +5.03225806 4.45161290 72.24000000 17.42000000 +5.03225806 4.64516129 72.24000000 17.42000000 +5.03225806 4.83870968 72.24000000 17.42000000 +5.03225806 5.03225806 72.24000000 17.42000000 +5.03225806 5.22580645 72.24000000 17.42000000 +5.03225806 5.41935484 72.24000000 17.42000000 +5.03225806 5.61290323 72.24000000 17.42000000 +5.03225806 5.80645161 72.24000000 17.42000000 +5.03225806 6.00000000 72.24000000 17.42000000 +5.22580645 0.00000000 33.84000000 8.06000000 +5.22580645 0.19354839 33.84000000 8.06000000 +5.22580645 0.38709677 33.84000000 8.06000000 +5.22580645 0.58064516 33.84000000 8.06000000 +5.22580645 0.77419355 33.84000000 8.06000000 +5.22580645 0.96774194 33.84000000 8.06000000 +5.22580645 1.16129032 33.84000000 8.06000000 +5.22580645 1.35483871 33.84000000 8.06000000 +5.22580645 1.54838710 33.84000000 8.06000000 +5.22580645 1.74193548 33.84000000 8.06000000 +5.22580645 1.93548387 33.84000000 8.06000000 +5.22580645 2.12903226 33.84000000 8.06000000 +5.22580645 2.32258065 33.84000000 8.06000000 +5.22580645 2.51612903 33.84000000 8.06000000 +5.22580645 2.70967742 33.84000000 10.00000000 +5.22580645 2.90322581 33.84000000 10.00000000 +5.22580645 3.09677419 33.84000000 10.00000000 +5.22580645 3.29032258 33.84000000 10.00000000 +5.22580645 3.48387097 33.84000000 10.00000000 +5.22580645 3.67741935 70.80000000 16.94000000 +5.22580645 3.87096774 70.80000000 16.94000000 +5.22580645 4.06451613 70.80000000 16.94000000 +5.22580645 4.25806452 70.80000000 16.94000000 +5.22580645 4.45161290 70.80000000 16.94000000 +5.22580645 4.64516129 70.80000000 16.94000000 +5.22580645 4.83870968 70.80000000 16.94000000 +5.22580645 5.03225806 70.80000000 16.94000000 +5.22580645 5.22580645 70.80000000 16.94000000 +5.22580645 5.41935484 70.80000000 16.94000000 +5.22580645 5.61290323 70.80000000 16.94000000 +5.22580645 5.80645161 70.80000000 16.94000000 +5.22580645 6.00000000 70.80000000 16.94000000 +5.41935484 0.00000000 32.88000000 8.54000000 +5.41935484 0.19354839 32.88000000 8.54000000 +5.41935484 0.38709677 32.88000000 8.54000000 +5.41935484 0.58064516 32.88000000 8.54000000 +5.41935484 0.77419355 32.88000000 8.54000000 +5.41935484 0.96774194 32.88000000 8.54000000 +5.41935484 1.16129032 32.88000000 8.54000000 +5.41935484 1.35483871 32.88000000 8.54000000 +5.41935484 1.54838710 32.88000000 8.54000000 +5.41935484 1.74193548 32.88000000 8.54000000 +5.41935484 1.93548387 32.88000000 8.54000000 +5.41935484 2.12903226 32.88000000 8.54000000 +5.41935484 2.32258065 32.88000000 10.00000000 +5.41935484 2.51612903 32.88000000 10.00000000 +5.41935484 2.70967742 32.88000000 10.00000000 +5.41935484 2.90322581 32.88000000 10.00000000 +5.41935484 3.09677419 32.88000000 10.00000000 +5.41935484 3.29032258 32.88000000 10.00000000 +5.41935484 3.48387097 32.88000000 10.00000000 +5.41935484 3.67741935 32.88000000 10.00000000 +5.41935484 3.87096774 32.88000000 10.00000000 +5.41935484 4.06451613 69.36000000 16.46000000 +5.41935484 4.25806452 69.36000000 16.46000000 +5.41935484 4.45161290 69.36000000 16.46000000 +5.41935484 4.64516129 69.36000000 16.46000000 +5.41935484 4.83870968 69.36000000 16.46000000 +5.41935484 5.03225806 69.36000000 16.46000000 +5.41935484 5.22580645 69.36000000 16.46000000 +5.41935484 5.41935484 69.36000000 16.46000000 +5.41935484 5.61290323 69.36000000 16.46000000 +5.41935484 5.80645161 69.36000000 16.46000000 +5.41935484 6.00000000 69.36000000 16.46000000 +5.61290323 0.00000000 31.92000000 9.04000000 +5.61290323 0.19354839 31.92000000 9.04000000 +5.61290323 0.38709677 31.92000000 9.04000000 +5.61290323 0.58064516 31.92000000 9.04000000 +5.61290323 0.77419355 31.92000000 9.04000000 +5.61290323 0.96774194 31.92000000 9.04000000 +5.61290323 1.16129032 31.92000000 9.04000000 +5.61290323 1.35483871 31.92000000 9.04000000 +5.61290323 1.54838710 31.92000000 9.04000000 +5.61290323 1.74193548 31.92000000 9.04000000 +5.61290323 1.93548387 31.92000000 9.04000000 +5.61290323 2.12903226 31.92000000 10.00000000 +5.61290323 2.32258065 31.92000000 10.00000000 +5.61290323 2.51612903 31.92000000 10.00000000 +5.61290323 2.70967742 31.92000000 10.00000000 +5.61290323 2.90322581 31.92000000 10.00000000 +5.61290323 3.09677419 31.92000000 10.00000000 +5.61290323 3.29032258 31.92000000 10.00000000 +5.61290323 3.48387097 31.92000000 10.00000000 +5.61290323 3.67741935 31.92000000 10.00000000 +5.61290323 3.87096774 31.92000000 10.00000000 +5.61290323 4.06451613 31.92000000 10.00000000 +5.61290323 4.25806452 31.92000000 10.00000000 +5.61290323 4.45161290 67.92000000 15.96000000 +5.61290323 4.64516129 67.92000000 15.96000000 +5.61290323 4.83870968 67.92000000 15.96000000 +5.61290323 5.03225806 67.92000000 15.96000000 +5.61290323 5.22580645 67.92000000 15.96000000 +5.61290323 5.41935484 67.92000000 15.96000000 +5.61290323 5.61290323 67.92000000 15.96000000 +5.61290323 5.80645161 67.92000000 15.96000000 +5.61290323 6.00000000 67.92000000 15.96000000 +5.80645161 0.00000000 30.96000000 9.52000000 +5.80645161 0.19354839 30.96000000 9.52000000 +5.80645161 0.38709677 30.96000000 9.52000000 +5.80645161 0.58064516 30.96000000 9.52000000 +5.80645161 0.77419355 30.96000000 9.52000000 +5.80645161 0.96774194 30.96000000 9.52000000 +5.80645161 1.16129032 30.96000000 9.52000000 +5.80645161 1.35483871 30.96000000 9.52000000 +5.80645161 1.54838710 30.96000000 10.00000000 +5.80645161 1.74193548 30.96000000 10.00000000 +5.80645161 1.93548387 30.96000000 10.00000000 +5.80645161 2.12903226 30.96000000 10.00000000 +5.80645161 2.32258065 30.96000000 10.00000000 +5.80645161 2.51612903 30.96000000 10.00000000 +5.80645161 2.70967742 30.96000000 10.00000000 +5.80645161 2.90322581 30.96000000 10.00000000 +5.80645161 3.09677419 30.96000000 10.00000000 +5.80645161 3.29032258 30.96000000 10.00000000 +5.80645161 3.48387097 30.96000000 10.00000000 +5.80645161 3.67741935 30.96000000 10.00000000 +5.80645161 3.87096774 30.96000000 10.00000000 +5.80645161 4.06451613 30.96000000 10.00000000 +5.80645161 4.25806452 30.96000000 10.00000000 +5.80645161 4.45161290 30.96000000 10.00000000 +5.80645161 4.64516129 66.48000000 15.48000000 +5.80645161 4.83870968 66.48000000 15.48000000 +5.80645161 5.03225806 66.48000000 15.48000000 +5.80645161 5.22580645 66.48000000 15.48000000 +5.80645161 5.41935484 66.48000000 15.48000000 +5.80645161 5.61290323 66.48000000 15.48000000 +5.80645161 5.80645161 66.48000000 15.48000000 +5.80645161 6.00000000 66.48000000 15.48000000 +6.00000000 0.00000000 nan nan +6.00000000 0.19354839 nan nan +6.00000000 0.38709677 nan nan +6.00000000 0.58064516 nan nan +6.00000000 0.77419355 nan nan +6.00000000 0.96774194 nan nan +6.00000000 1.16129032 nan nan +6.00000000 1.35483871 nan nan +6.00000000 1.54838710 nan nan +6.00000000 1.74193548 nan nan +6.00000000 1.93548387 nan nan +6.00000000 2.12903226 nan nan +6.00000000 2.32258065 nan nan +6.00000000 2.51612903 nan nan +6.00000000 2.70967742 nan nan +6.00000000 2.90322581 nan nan +6.00000000 3.09677419 nan nan +6.00000000 3.29032258 nan nan +6.00000000 3.48387097 nan nan +6.00000000 3.67741935 nan nan +6.00000000 3.87096774 nan nan +6.00000000 4.06451613 nan nan +6.00000000 4.25806452 nan nan +6.00000000 4.45161290 nan nan +6.00000000 4.64516129 nan nan +6.00000000 4.83870968 nan nan +6.00000000 5.03225806 nan nan +6.00000000 5.22580645 nan nan +6.00000000 5.41935484 nan nan +6.00000000 5.61290323 nan nan +6.00000000 5.80645161 nan nan +6.00000000 6.00000000 nan nan diff --git a/examples/mamdani/Laundry.fll b/examples/mamdani/Laundry.fll new file mode 100644 index 0000000..ef6fd44 --- /dev/null +++ b/examples/mamdani/Laundry.fll @@ -0,0 +1,43 @@ +Engine: Laundry +InputVariable: Load + enabled: true + range: 0.000 6.000 + term: small Discrete 0.000 1.000 1.000 1.000 2.000 0.800 5.000 0.000 + term: normal Discrete 3.000 0.000 4.000 1.000 6.000 0.000 +InputVariable: Dirt + enabled: true + range: 0.000 6.000 + term: low Discrete 0.000 1.000 2.000 0.800 5.000 0.000 + term: high Discrete 1.000 0.000 2.000 0.200 4.000 0.800 6.000 1.000 +OutputVariable: Detergent + enabled: true + range: 0.000 80.000 + accumulation: Maximum + defuzzifier: MeanOfMaximum 500 + default: nan + lock-previous: false + lock-range: false + term: less Discrete 10.000 0.000 40.000 1.000 50.000 0.000 + term: normal Discrete 40.000 0.000 50.000 1.000 60.000 1.000 80.000 0.000 + term: more Discrete 50.000 0.000 80.000 1.000 +OutputVariable: Cycle + enabled: true + range: 0.000 20.000 + accumulation: Maximum + defuzzifier: MeanOfMaximum 500 + default: nan + lock-previous: false + lock-range: false + term: short Discrete 0.000 1.000 10.000 1.000 20.000 0.000 + term: long Discrete 10.000 0.000 20.000 1.000 +RuleBlock: + enabled: true + conjunction: Minimum + disjunction: Maximum + activation: Minimum + rule: if Load is small and Dirt is not high then Detergent is less + rule: if Load is small and Dirt is high then Detergent is normal + rule: if Load is normal and Dirt is low then Detergent is less + rule: if Load is normal and Dirt is high then Detergent is more + rule: if Detergent is normal or Detergent is less then Cycle is short + rule: if Detergent is more then Cycle is long
\ No newline at end of file diff --git a/examples/mamdani/Laundry.java b/examples/mamdani/Laundry.java new file mode 100644 index 0000000..d45e77e --- /dev/null +++ b/examples/mamdani/Laundry.java @@ -0,0 +1,77 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class Laundry{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Laundry"); + +InputVariable inputVariable1 = new InputVariable(); +inputVariable1.setEnabled(true); +inputVariable1.setName("Load"); +inputVariable1.setRange(0.000, 6.000); +inputVariable1.addTerm(Discrete.create("small", 0.000, 1.000, 1.000, 1.000, 2.000, 0.800, 5.000, 0.000)); +inputVariable1.addTerm(Discrete.create("normal", 3.000, 0.000, 4.000, 1.000, 6.000, 0.000)); +engine.addInputVariable(inputVariable1); + +InputVariable inputVariable2 = new InputVariable(); +inputVariable2.setEnabled(true); +inputVariable2.setName("Dirt"); +inputVariable2.setRange(0.000, 6.000); +inputVariable2.addTerm(Discrete.create("low", 0.000, 1.000, 2.000, 0.800, 5.000, 0.000)); +inputVariable2.addTerm(Discrete.create("high", 1.000, 0.000, 2.000, 0.200, 4.000, 0.800, 6.000, 1.000)); +engine.addInputVariable(inputVariable2); + +OutputVariable outputVariable1 = new OutputVariable(); +outputVariable1.setEnabled(true); +outputVariable1.setName("Detergent"); +outputVariable1.setRange(0.000, 80.000); +outputVariable1.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable1.setDefuzzifier(new MeanOfMaximum(500)); +outputVariable1.setDefaultValue(Double.NaN); +outputVariable1.setLockPreviousOutputValue(false); +outputVariable1.setLockOutputValueInRange(false); +outputVariable1.addTerm(Discrete.create("less", 10.000, 0.000, 40.000, 1.000, 50.000, 0.000)); +outputVariable1.addTerm(Discrete.create("normal", 40.000, 0.000, 50.000, 1.000, 60.000, 1.000, 80.000, 0.000)); +outputVariable1.addTerm(Discrete.create("more", 50.000, 0.000, 80.000, 1.000)); +engine.addOutputVariable(outputVariable1); + +OutputVariable outputVariable2 = new OutputVariable(); +outputVariable2.setEnabled(true); +outputVariable2.setName("Cycle"); +outputVariable2.setRange(0.000, 20.000); +outputVariable2.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable2.setDefuzzifier(new MeanOfMaximum(500)); +outputVariable2.setDefaultValue(Double.NaN); +outputVariable2.setLockPreviousOutputValue(false); +outputVariable2.setLockOutputValueInRange(false); +outputVariable2.addTerm(Discrete.create("short", 0.000, 1.000, 10.000, 1.000, 20.000, 0.000)); +outputVariable2.addTerm(Discrete.create("long", 10.000, 0.000, 20.000, 1.000)); +engine.addOutputVariable(outputVariable2); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new Minimum()); +ruleBlock.setDisjunction(new Maximum()); +ruleBlock.setActivation(new Minimum()); +ruleBlock.addRule(Rule.parse("if Load is small and Dirt is not high then Detergent is less", engine)); +ruleBlock.addRule(Rule.parse("if Load is small and Dirt is high then Detergent is normal", engine)); +ruleBlock.addRule(Rule.parse("if Load is normal and Dirt is low then Detergent is less", engine)); +ruleBlock.addRule(Rule.parse("if Load is normal and Dirt is high then Detergent is more", engine)); +ruleBlock.addRule(Rule.parse("if Detergent is normal or Detergent is less then Cycle is short", engine)); +ruleBlock.addRule(Rule.parse("if Detergent is more then Cycle is long", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/mamdani/SimpleDimmer.cpp b/examples/mamdani/SimpleDimmer.cpp new file mode 100644 index 0000000..b4c6897 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.cpp @@ -0,0 +1,44 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("simple-dimmer"); + +InputVariable* inputVariable = new InputVariable; +inputVariable->setEnabled(true); +inputVariable->setName("Ambient"); +inputVariable->setRange(0.000, 1.000); +inputVariable->addTerm(new Triangle("DARK", 0.000, 0.250, 0.500)); +inputVariable->addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +inputVariable->addTerm(new Triangle("BRIGHT", 0.500, 0.750, 1.000)); +engine->addInputVariable(inputVariable); + +OutputVariable* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("Power"); +outputVariable->setRange(0.000, 1.000); +outputVariable->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable->setDefuzzifier(new Centroid(200)); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(new Triangle("LOW", 0.000, 0.250, 0.500)); +outputVariable->addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +outputVariable->addTerm(new Triangle("HIGH", 0.500, 0.750, 1.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(fl::null); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(new Minimum); +ruleBlock->addRule(fl::Rule::parse("if Ambient is DARK then Power is HIGH", engine)); +ruleBlock->addRule(fl::Rule::parse("if Ambient is MEDIUM then Power is MEDIUM", engine)); +ruleBlock->addRule(fl::Rule::parse("if Ambient is BRIGHT then Power is LOW", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/SimpleDimmer.fcl b/examples/mamdani/SimpleDimmer.fcl new file mode 100644 index 0000000..a9b9552 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.fcl @@ -0,0 +1,35 @@ +FUNCTION_BLOCK simple-dimmer + +VAR_INPUT + Ambient: REAL; +END_VAR + +VAR_OUTPUT + Power: REAL; +END_VAR + +FUZZIFY Ambient + RANGE := (0.000 .. 1.000); + TERM DARK := Triangle 0.000 0.250 0.500; + TERM MEDIUM := Triangle 0.250 0.500 0.750; + TERM BRIGHT := Triangle 0.500 0.750 1.000; +END_FUZZIFY + +DEFUZZIFY Power + RANGE := (0.000 .. 1.000); + TERM LOW := Triangle 0.000 0.250 0.500; + TERM MEDIUM := Triangle 0.250 0.500 0.750; + TERM HIGH := Triangle 0.500 0.750 1.000; + METHOD : COG; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + ACT : MIN; + RULE 1 : if Ambient is DARK then Power is HIGH + RULE 2 : if Ambient is MEDIUM then Power is MEDIUM + RULE 3 : if Ambient is BRIGHT then Power is LOW +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/SimpleDimmer.fis b/examples/mamdani/SimpleDimmer.fis new file mode 100644 index 0000000..40ac849 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.fis @@ -0,0 +1,32 @@ +[System] +Name='simple-dimmer' +Type='mamdani' +NumInputs=1 +NumOutputs=1 +NumRules=3 +AndMethod='' +OrMethod='' +ImpMethod='min' +AggMethod='max' +DefuzzMethod='centroid' + +[Input1] +Name='Ambient' +Range=[0.000 1.000] +NumMFs=3 +MF1='DARK':'trimf',[0.000 0.250 0.500] +MF2='MEDIUM':'trimf',[0.250 0.500 0.750] +MF3='BRIGHT':'trimf',[0.500 0.750 1.000] + +[Output1] +Name='Power' +Range=[0.000 1.000] +NumMFs=3 +MF1='LOW':'trimf',[0.000 0.250 0.500] +MF2='MEDIUM':'trimf',[0.250 0.500 0.750] +MF3='HIGH':'trimf',[0.500 0.750 1.000] + +[Rules] +1.000 , 3.000 (1.000) : 1 +2.000 , 2.000 (1.000) : 1 +3.000 , 1.000 (1.000) : 1 diff --git a/examples/mamdani/SimpleDimmer.fld b/examples/mamdani/SimpleDimmer.fld new file mode 100644 index 0000000..4d9a671 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.fld @@ -0,0 +1,1026 @@ +#@Engine: simple-dimmer; +#@InputVariable: Ambient; @OutputVariable: Power; +0.00000000 nan +0.00097752 0.75000000 +0.00195503 0.75000000 +0.00293255 0.75000000 +0.00391007 0.75000000 +0.00488759 0.75000000 +0.00586510 0.75000000 +0.00684262 0.75000000 +0.00782014 0.75000000 +0.00879765 0.75000000 +0.00977517 0.75000000 +0.01075269 0.75000000 +0.01173021 0.75000000 +0.01270772 0.75000000 +0.01368524 0.75000000 +0.01466276 0.75000000 +0.01564027 0.75000000 +0.01661779 0.75000000 +0.01759531 0.75000000 +0.01857283 0.75000000 +0.01955034 0.75000000 +0.02052786 0.75000000 +0.02150538 0.75000000 +0.02248289 0.75000000 +0.02346041 0.75000000 +0.02443793 0.75000000 +0.02541544 0.75000000 +0.02639296 0.75000000 +0.02737048 0.75000000 +0.02834800 0.75000000 +0.02932551 0.75000000 +0.03030303 0.75000000 +0.03128055 0.75000000 +0.03225806 0.75000000 +0.03323558 0.75000000 +0.03421310 0.75000000 +0.03519062 0.75000000 +0.03616813 0.75000000 +0.03714565 0.75000000 +0.03812317 0.75000000 +0.03910068 0.75000000 +0.04007820 0.75000000 +0.04105572 0.75000000 +0.04203324 0.75000000 +0.04301075 0.75000000 +0.04398827 0.75000000 +0.04496579 0.75000000 +0.04594330 0.75000000 +0.04692082 0.75000000 +0.04789834 0.75000000 +0.04887586 0.75000000 +0.04985337 0.75000000 +0.05083089 0.75000000 +0.05180841 0.75000000 +0.05278592 0.75000000 +0.05376344 0.75000000 +0.05474096 0.75000000 +0.05571848 0.75000000 +0.05669599 0.75000000 +0.05767351 0.75000000 +0.05865103 0.75000000 +0.05962854 0.75000000 +0.06060606 0.75000000 +0.06158358 0.75000000 +0.06256109 0.75000000 +0.06353861 0.75000000 +0.06451613 0.75000000 +0.06549365 0.75000000 +0.06647116 0.75000000 +0.06744868 0.75000000 +0.06842620 0.75000000 +0.06940371 0.75000000 +0.07038123 0.75000000 +0.07135875 0.75000000 +0.07233627 0.75000000 +0.07331378 0.75000000 +0.07429130 0.75000000 +0.07526882 0.75000000 +0.07624633 0.75000000 +0.07722385 0.75000000 +0.07820137 0.75000000 +0.07917889 0.75000000 +0.08015640 0.75000000 +0.08113392 0.75000000 +0.08211144 0.75000000 +0.08308895 0.75000000 +0.08406647 0.75000000 +0.08504399 0.75000000 +0.08602151 0.75000000 +0.08699902 0.75000000 +0.08797654 0.75000000 +0.08895406 0.75000000 +0.08993157 0.75000000 +0.09090909 0.75000000 +0.09188661 0.75000000 +0.09286413 0.75000000 +0.09384164 0.75000000 +0.09481916 0.75000000 +0.09579668 0.75000000 +0.09677419 0.75000000 +0.09775171 0.75000000 +0.09872923 0.75000000 +0.09970674 0.75000000 +0.10068426 0.75000000 +0.10166178 0.75000000 +0.10263930 0.75000000 +0.10361681 0.75000000 +0.10459433 0.75000000 +0.10557185 0.75000000 +0.10654936 0.75000000 +0.10752688 0.75000000 +0.10850440 0.75000000 +0.10948192 0.75000000 +0.11045943 0.75000000 +0.11143695 0.75000000 +0.11241447 0.75000000 +0.11339198 0.75000000 +0.11436950 0.75000000 +0.11534702 0.75000000 +0.11632454 0.75000000 +0.11730205 0.75000000 +0.11827957 0.75000000 +0.11925709 0.75000000 +0.12023460 0.75000000 +0.12121212 0.75000000 +0.12218964 0.75000000 +0.12316716 0.75000000 +0.12414467 0.75000000 +0.12512219 0.75000000 +0.12609971 0.75000000 +0.12707722 0.75000000 +0.12805474 0.75000000 +0.12903226 0.75000000 +0.13000978 0.75000000 +0.13098729 0.75000000 +0.13196481 0.75000000 +0.13294233 0.75000000 +0.13391984 0.75000000 +0.13489736 0.75000000 +0.13587488 0.75000000 +0.13685239 0.75000000 +0.13782991 0.75000000 +0.13880743 0.75000000 +0.13978495 0.75000000 +0.14076246 0.75000000 +0.14173998 0.75000000 +0.14271750 0.75000000 +0.14369501 0.75000000 +0.14467253 0.75000000 +0.14565005 0.75000000 +0.14662757 0.75000000 +0.14760508 0.75000000 +0.14858260 0.75000000 +0.14956012 0.75000000 +0.15053763 0.75000000 +0.15151515 0.75000000 +0.15249267 0.75000000 +0.15347019 0.75000000 +0.15444770 0.75000000 +0.15542522 0.75000000 +0.15640274 0.75000000 +0.15738025 0.75000000 +0.15835777 0.75000000 +0.15933529 0.75000000 +0.16031281 0.75000000 +0.16129032 0.75000000 +0.16226784 0.75000000 +0.16324536 0.75000000 +0.16422287 0.75000000 +0.16520039 0.75000000 +0.16617791 0.75000000 +0.16715543 0.75000000 +0.16813294 0.75000000 +0.16911046 0.75000000 +0.17008798 0.75000000 +0.17106549 0.75000000 +0.17204301 0.75000000 +0.17302053 0.75000000 +0.17399804 0.75000000 +0.17497556 0.75000000 +0.17595308 0.75000000 +0.17693060 0.75000000 +0.17790811 0.75000000 +0.17888563 0.75000000 +0.17986315 0.75000000 +0.18084066 0.75000000 +0.18181818 0.75000000 +0.18279570 0.75000000 +0.18377322 0.75000000 +0.18475073 0.75000000 +0.18572825 0.75000000 +0.18670577 0.75000000 +0.18768328 0.75000000 +0.18866080 0.75000000 +0.18963832 0.75000000 +0.19061584 0.75000000 +0.19159335 0.75000000 +0.19257087 0.75000000 +0.19354839 0.75000000 +0.19452590 0.75000000 +0.19550342 0.75000000 +0.19648094 0.75000000 +0.19745846 0.75000000 +0.19843597 0.75000000 +0.19941349 0.75000000 +0.20039101 0.75000000 +0.20136852 0.75000000 +0.20234604 0.75000000 +0.20332356 0.75000000 +0.20430108 0.75000000 +0.20527859 0.75000000 +0.20625611 0.75000000 +0.20723363 0.75000000 +0.20821114 0.75000000 +0.20918866 0.75000000 +0.21016618 0.75000000 +0.21114370 0.75000000 +0.21212121 0.75000000 +0.21309873 0.75000000 +0.21407625 0.75000000 +0.21505376 0.75000000 +0.21603128 0.75000000 +0.21700880 0.75000000 +0.21798631 0.75000000 +0.21896383 0.75000000 +0.21994135 0.75000000 +0.22091887 0.75000000 +0.22189638 0.75000000 +0.22287390 0.75000000 +0.22385142 0.75000000 +0.22482893 0.75000000 +0.22580645 0.75000000 +0.22678397 0.75000000 +0.22776149 0.75000000 +0.22873900 0.75000000 +0.22971652 0.75000000 +0.23069404 0.75000000 +0.23167155 0.75000000 +0.23264907 0.75000000 +0.23362659 0.75000000 +0.23460411 0.75000000 +0.23558162 0.75000000 +0.23655914 0.75000000 +0.23753666 0.75000000 +0.23851417 0.75000000 +0.23949169 0.75000000 +0.24046921 0.75000000 +0.24144673 0.75000000 +0.24242424 0.75000000 +0.24340176 0.75000000 +0.24437928 0.75000000 +0.24535679 0.75000000 +0.24633431 0.75000000 +0.24731183 0.75000000 +0.24828935 0.75000000 +0.24926686 0.75000000 +0.25024438 0.74963379 +0.25122190 0.74817607 +0.25219941 0.74672965 +0.25317693 0.74530727 +0.25415445 0.74390115 +0.25513196 0.74250538 +0.25610948 0.74111985 +0.25708700 0.73974444 +0.25806452 0.73838897 +0.25904203 0.73705025 +0.26001955 0.73572080 +0.26099707 0.73440054 +0.26197458 0.73308936 +0.26295210 0.73179453 +0.26392962 0.73051679 +0.26490714 0.72924739 +0.26588465 0.72798623 +0.26686217 0.72673323 +0.26783969 0.72549344 +0.26881720 0.72427097 +0.26979472 0.72305599 +0.27077224 0.72184842 +0.27174976 0.72064820 +0.27272727 0.71945844 +0.27370479 0.71828610 +0.27468231 0.71712050 +0.27565982 0.71596157 +0.27663734 0.71480927 +0.27761486 0.71366501 +0.27859238 0.71253818 +0.27956989 0.71141742 +0.28054741 0.71030267 +0.28152493 0.70919389 +0.28250244 0.70809106 +0.28347996 0.70700557 +0.28445748 0.70592553 +0.28543500 0.70485092 +0.28641251 0.70378169 +0.28739003 0.70271779 +0.28836755 0.70166862 +0.28934506 0.70062558 +0.29032258 0.69958742 +0.29130010 0.69855412 +0.29227761 0.69752564 +0.29325513 0.69650949 +0.29423265 0.69550004 +0.29521017 0.69449498 +0.29618768 0.69349430 +0.29716520 0.69249796 +0.29814272 0.69151186 +0.29912023 0.69053287 +0.30009775 0.68955785 +0.30107527 0.68858676 +0.30205279 0.68761958 +0.30303030 0.68666076 +0.30400782 0.68570938 +0.30498534 0.68476154 +0.30596285 0.68381725 +0.30694037 0.68287647 +0.30791789 0.68194242 +0.30889541 0.68101598 +0.30987292 0.68009273 +0.31085044 0.67917264 +0.31182796 0.67825571 +0.31280547 0.67734408 +0.31378299 0.67644013 +0.31476051 0.67553902 +0.31573803 0.67464075 +0.31671554 0.67374530 +0.31769306 0.67285389 +0.31867058 0.67197014 +0.31964809 0.67108892 +0.32062561 0.67021023 +0.32160313 0.66933404 +0.32258065 0.66846082 +0.32355816 0.66759513 +0.32453568 0.66673167 +0.32551320 0.66587045 +0.32649071 0.66501145 +0.32746823 0.66415466 +0.32844575 0.66330485 +0.32942326 0.66245716 +0.33040078 0.66161144 +0.33137830 0.66076767 +0.33235582 0.65992584 +0.33333333 0.65908967 +0.33431085 0.65825587 +0.33528837 0.65742377 +0.33626588 0.65659337 +0.33724340 0.65576467 +0.33822092 0.65494046 +0.33919844 0.65411875 +0.34017595 0.65329850 +0.34115347 0.65247971 +0.34213099 0.65166237 +0.34310850 0.65084852 +0.34408602 0.65003719 +0.34506354 0.64922708 +0.34604106 0.64841821 +0.34701857 0.64761056 +0.34799609 0.64680554 +0.34897361 0.64600293 +0.34995112 0.64520134 +0.35092864 0.64440076 +0.35190616 0.64360119 +0.35288368 0.64280350 +0.35386119 0.64200804 +0.35483871 0.64121338 +0.35581623 0.64041952 +0.35679374 0.63962646 +0.35777126 0.63883468 +0.35874878 0.63804481 +0.35972630 0.63725555 +0.36070381 0.63646688 +0.36168133 0.63567880 +0.36265885 0.63489151 +0.36363636 0.63410574 +0.36461388 0.63332037 +0.36559140 0.63253539 +0.36656891 0.63175080 +0.36754643 0.63096664 +0.36852395 0.63018348 +0.36950147 0.62940052 +0.37047898 0.62861775 +0.37145650 0.62783518 +0.37243402 0.62705280 +0.37341153 0.62627077 +0.37438905 0.62548876 +0.37536657 0.62470674 +0.37634409 0.62392473 +0.37732160 0.62314272 +0.37829912 0.62236043 +0.37927664 0.62157791 +0.38025415 0.62079519 +0.38123167 0.62001228 +0.38220919 0.61922917 +0.38318671 0.61844529 +0.38416422 0.61766080 +0.38514174 0.61687591 +0.38611926 0.61609064 +0.38709677 0.61530497 +0.38807429 0.61451813 +0.38905181 0.61373020 +0.39002933 0.61294168 +0.39100684 0.61215256 +0.39198436 0.61136285 +0.39296188 0.61057168 +0.39393939 0.60977882 +0.39491691 0.60898516 +0.39589443 0.60819070 +0.39687195 0.60739544 +0.39784946 0.60659855 +0.39882698 0.60579922 +0.39980450 0.60499890 +0.40078201 0.60419756 +0.40175953 0.60339521 +0.40273705 0.60259116 +0.40371457 0.60178382 +0.40469208 0.60097525 +0.40566960 0.60016546 +0.40664712 0.59935443 +0.40762463 0.59854174 +0.40860215 0.59772477 +0.40957967 0.59690634 +0.41055718 0.59608645 +0.41153470 0.59526511 +0.41251222 0.59444225 +0.41348974 0.59361396 +0.41446725 0.59278399 +0.41544477 0.59195232 +0.41642229 0.59111894 +0.41739980 0.59028386 +0.41837732 0.58944297 +0.41935484 0.58859969 +0.42033236 0.58775445 +0.42130987 0.58690726 +0.42228739 0.58605810 +0.42326491 0.58520295 +0.42424242 0.58434451 +0.42521994 0.58348384 +0.42619746 0.58262095 +0.42717498 0.58175582 +0.42815249 0.58088462 +0.42913001 0.58000905 +0.43010753 0.57913099 +0.43108504 0.57825040 +0.43206256 0.57736728 +0.43304008 0.57647812 +0.43401760 0.57558337 +0.43499511 0.57468581 +0.43597263 0.57378542 +0.43695015 0.57288218 +0.43792766 0.57197303 +0.43890518 0.57105688 +0.43988270 0.57013759 +0.44086022 0.56921513 +0.44183773 0.56828949 +0.44281525 0.56735818 +0.44379277 0.56641827 +0.44477028 0.56547486 +0.44574780 0.56452791 +0.44672532 0.56357742 +0.44770283 0.56262161 +0.44868035 0.56165541 +0.44965787 0.56068529 +0.45063539 0.55971125 +0.45161290 0.55873326 +0.45259042 0.55775044 +0.45356794 0.55675519 +0.45454545 0.55575559 +0.45552297 0.55475164 +0.45650049 0.55374329 +0.45747801 0.55273051 +0.45845552 0.55170345 +0.45943304 0.55067135 +0.46041056 0.54963442 +0.46138807 0.54859260 +0.46236559 0.54754587 +0.46334311 0.54648479 +0.46432063 0.54541689 +0.46529814 0.54434363 +0.46627566 0.54326495 +0.46725318 0.54218083 +0.46823069 0.54108237 +0.46920821 0.53997508 +0.47018573 0.53886183 +0.47116325 0.53774257 +0.47214076 0.53661727 +0.47311828 0.53547778 +0.47409580 0.53432712 +0.47507331 0.53316986 +0.47605083 0.53200593 +0.47702835 0.53083528 +0.47800587 0.52965071 +0.47898338 0.52845232 +0.47996090 0.52724659 +0.48093842 0.52603347 +0.48191593 0.52481288 +0.48289345 0.52357875 +0.48387097 0.52232778 +0.48484848 0.52106867 +0.48582600 0.51980133 +0.48680352 0.51852569 +0.48778104 0.51723703 +0.48875855 0.51592811 +0.48973607 0.51461012 +0.49071359 0.51328298 +0.49169110 0.51194659 +0.49266862 0.51059784 +0.49364614 0.50922495 +0.49462366 0.50784195 +0.49560117 0.50644876 +0.49657869 0.50504524 +0.49755621 0.50363020 +0.49853372 0.50218659 +0.49951124 0.50073171 +0.50048876 0.49926829 +0.50146628 0.49781341 +0.50244379 0.49636980 +0.50342131 0.49495476 +0.50439883 0.49355124 +0.50537634 0.49215805 +0.50635386 0.49077505 +0.50733138 0.48940216 +0.50830890 0.48805341 +0.50928641 0.48671702 +0.51026393 0.48538988 +0.51124145 0.48407189 +0.51221896 0.48276297 +0.51319648 0.48147431 +0.51417400 0.48019867 +0.51515152 0.47893133 +0.51612903 0.47767222 +0.51710655 0.47642125 +0.51808407 0.47518712 +0.51906158 0.47396653 +0.52003910 0.47275341 +0.52101662 0.47154768 +0.52199413 0.47034929 +0.52297165 0.46916472 +0.52394917 0.46799407 +0.52492669 0.46683014 +0.52590420 0.46567288 +0.52688172 0.46452222 +0.52785924 0.46338273 +0.52883675 0.46225743 +0.52981427 0.46113817 +0.53079179 0.46002492 +0.53176931 0.45891763 +0.53274682 0.45781917 +0.53372434 0.45673505 +0.53470186 0.45565637 +0.53567937 0.45458311 +0.53665689 0.45351521 +0.53763441 0.45245413 +0.53861193 0.45140740 +0.53958944 0.45036558 +0.54056696 0.44932865 +0.54154448 0.44829655 +0.54252199 0.44726949 +0.54349951 0.44625671 +0.54447703 0.44524836 +0.54545455 0.44424441 +0.54643206 0.44324481 +0.54740958 0.44224956 +0.54838710 0.44126674 +0.54936461 0.44028875 +0.55034213 0.43931471 +0.55131965 0.43834459 +0.55229717 0.43737839 +0.55327468 0.43642258 +0.55425220 0.43547209 +0.55522972 0.43452514 +0.55620723 0.43358173 +0.55718475 0.43264182 +0.55816227 0.43171051 +0.55913978 0.43078487 +0.56011730 0.42986241 +0.56109482 0.42894312 +0.56207234 0.42802697 +0.56304985 0.42711782 +0.56402737 0.42621458 +0.56500489 0.42531419 +0.56598240 0.42441663 +0.56695992 0.42352188 +0.56793744 0.42263272 +0.56891496 0.42174960 +0.56989247 0.42086901 +0.57086999 0.41999095 +0.57184751 0.41911538 +0.57282502 0.41824418 +0.57380254 0.41737905 +0.57478006 0.41651616 +0.57575758 0.41565549 +0.57673509 0.41479705 +0.57771261 0.41394190 +0.57869013 0.41309274 +0.57966764 0.41224555 +0.58064516 0.41140031 +0.58162268 0.41055703 +0.58260020 0.40971614 +0.58357771 0.40888106 +0.58455523 0.40804768 +0.58553275 0.40721601 +0.58651026 0.40638604 +0.58748778 0.40555775 +0.58846530 0.40473489 +0.58944282 0.40391355 +0.59042033 0.40309366 +0.59139785 0.40227523 +0.59237537 0.40145826 +0.59335288 0.40064557 +0.59433040 0.39983454 +0.59530792 0.39902475 +0.59628543 0.39821618 +0.59726295 0.39740884 +0.59824047 0.39660479 +0.59921799 0.39580244 +0.60019550 0.39500110 +0.60117302 0.39420078 +0.60215054 0.39340145 +0.60312805 0.39260456 +0.60410557 0.39180930 +0.60508309 0.39101484 +0.60606061 0.39022118 +0.60703812 0.38942832 +0.60801564 0.38863715 +0.60899316 0.38784744 +0.60997067 0.38705832 +0.61094819 0.38626980 +0.61192571 0.38548187 +0.61290323 0.38469503 +0.61388074 0.38390936 +0.61485826 0.38312409 +0.61583578 0.38233920 +0.61681329 0.38155471 +0.61779081 0.38077083 +0.61876833 0.37998772 +0.61974585 0.37920481 +0.62072336 0.37842209 +0.62170088 0.37763957 +0.62267840 0.37685728 +0.62365591 0.37607527 +0.62463343 0.37529326 +0.62561095 0.37451124 +0.62658847 0.37372923 +0.62756598 0.37294720 +0.62854350 0.37216482 +0.62952102 0.37138225 +0.63049853 0.37059948 +0.63147605 0.36981652 +0.63245357 0.36903336 +0.63343109 0.36824920 +0.63440860 0.36746461 +0.63538612 0.36667963 +0.63636364 0.36589426 +0.63734115 0.36510849 +0.63831867 0.36432120 +0.63929619 0.36353312 +0.64027370 0.36274445 +0.64125122 0.36195519 +0.64222874 0.36116532 +0.64320626 0.36037354 +0.64418377 0.35958048 +0.64516129 0.35878662 +0.64613881 0.35799196 +0.64711632 0.35719650 +0.64809384 0.35639881 +0.64907136 0.35559924 +0.65004888 0.35479866 +0.65102639 0.35399707 +0.65200391 0.35319446 +0.65298143 0.35238944 +0.65395894 0.35158179 +0.65493646 0.35077292 +0.65591398 0.34996281 +0.65689150 0.34915148 +0.65786901 0.34833763 +0.65884653 0.34752029 +0.65982405 0.34670150 +0.66080156 0.34588125 +0.66177908 0.34505954 +0.66275660 0.34423533 +0.66373412 0.34340663 +0.66471163 0.34257623 +0.66568915 0.34174413 +0.66666667 0.34091033 +0.66764418 0.34007416 +0.66862170 0.33923233 +0.66959922 0.33838856 +0.67057674 0.33754284 +0.67155425 0.33669515 +0.67253177 0.33584534 +0.67350929 0.33498855 +0.67448680 0.33412955 +0.67546432 0.33326833 +0.67644184 0.33240487 +0.67741935 0.33153918 +0.67839687 0.33066596 +0.67937439 0.32978977 +0.68035191 0.32891108 +0.68132942 0.32802986 +0.68230694 0.32714611 +0.68328446 0.32625470 +0.68426197 0.32535925 +0.68523949 0.32446098 +0.68621701 0.32355987 +0.68719453 0.32265592 +0.68817204 0.32174429 +0.68914956 0.32082736 +0.69012708 0.31990727 +0.69110459 0.31898402 +0.69208211 0.31805758 +0.69305963 0.31712353 +0.69403715 0.31618275 +0.69501466 0.31523846 +0.69599218 0.31429062 +0.69696970 0.31333924 +0.69794721 0.31238042 +0.69892473 0.31141324 +0.69990225 0.31044215 +0.70087977 0.30946713 +0.70185728 0.30848814 +0.70283480 0.30750204 +0.70381232 0.30650570 +0.70478983 0.30550502 +0.70576735 0.30449996 +0.70674487 0.30349051 +0.70772239 0.30247436 +0.70869990 0.30144588 +0.70967742 0.30041258 +0.71065494 0.29937442 +0.71163245 0.29833138 +0.71260997 0.29728221 +0.71358749 0.29621831 +0.71456500 0.29514908 +0.71554252 0.29407447 +0.71652004 0.29299443 +0.71749756 0.29190894 +0.71847507 0.29080611 +0.71945259 0.28969733 +0.72043011 0.28858258 +0.72140762 0.28746182 +0.72238514 0.28633499 +0.72336266 0.28519073 +0.72434018 0.28403843 +0.72531769 0.28287950 +0.72629521 0.28171390 +0.72727273 0.28054156 +0.72825024 0.27935180 +0.72922776 0.27815158 +0.73020528 0.27694401 +0.73118280 0.27572903 +0.73216031 0.27450656 +0.73313783 0.27326677 +0.73411535 0.27201377 +0.73509286 0.27075261 +0.73607038 0.26948321 +0.73704790 0.26820547 +0.73802542 0.26691064 +0.73900293 0.26559946 +0.73998045 0.26427920 +0.74095797 0.26294975 +0.74193548 0.26161103 +0.74291300 0.26025556 +0.74389052 0.25888015 +0.74486804 0.25749462 +0.74584555 0.25609885 +0.74682307 0.25469273 +0.74780059 0.25327035 +0.74877810 0.25182393 +0.74975562 0.25036621 +0.75073314 0.25000000 +0.75171065 0.25000000 +0.75268817 0.25000000 +0.75366569 0.25000000 +0.75464321 0.25000000 +0.75562072 0.25000000 +0.75659824 0.25000000 +0.75757576 0.25000000 +0.75855327 0.25000000 +0.75953079 0.25000000 +0.76050831 0.25000000 +0.76148583 0.25000000 +0.76246334 0.25000000 +0.76344086 0.25000000 +0.76441838 0.25000000 +0.76539589 0.25000000 +0.76637341 0.25000000 +0.76735093 0.25000000 +0.76832845 0.25000000 +0.76930596 0.25000000 +0.77028348 0.25000000 +0.77126100 0.25000000 +0.77223851 0.25000000 +0.77321603 0.25000000 +0.77419355 0.25000000 +0.77517107 0.25000000 +0.77614858 0.25000000 +0.77712610 0.25000000 +0.77810362 0.25000000 +0.77908113 0.25000000 +0.78005865 0.25000000 +0.78103617 0.25000000 +0.78201369 0.25000000 +0.78299120 0.25000000 +0.78396872 0.25000000 +0.78494624 0.25000000 +0.78592375 0.25000000 +0.78690127 0.25000000 +0.78787879 0.25000000 +0.78885630 0.25000000 +0.78983382 0.25000000 +0.79081134 0.25000000 +0.79178886 0.25000000 +0.79276637 0.25000000 +0.79374389 0.25000000 +0.79472141 0.25000000 +0.79569892 0.25000000 +0.79667644 0.25000000 +0.79765396 0.25000000 +0.79863148 0.25000000 +0.79960899 0.25000000 +0.80058651 0.25000000 +0.80156403 0.25000000 +0.80254154 0.25000000 +0.80351906 0.25000000 +0.80449658 0.25000000 +0.80547410 0.25000000 +0.80645161 0.25000000 +0.80742913 0.25000000 +0.80840665 0.25000000 +0.80938416 0.25000000 +0.81036168 0.25000000 +0.81133920 0.25000000 +0.81231672 0.25000000 +0.81329423 0.25000000 +0.81427175 0.25000000 +0.81524927 0.25000000 +0.81622678 0.25000000 +0.81720430 0.25000000 +0.81818182 0.25000000 +0.81915934 0.25000000 +0.82013685 0.25000000 +0.82111437 0.25000000 +0.82209189 0.25000000 +0.82306940 0.25000000 +0.82404692 0.25000000 +0.82502444 0.25000000 +0.82600196 0.25000000 +0.82697947 0.25000000 +0.82795699 0.25000000 +0.82893451 0.25000000 +0.82991202 0.25000000 +0.83088954 0.25000000 +0.83186706 0.25000000 +0.83284457 0.25000000 +0.83382209 0.25000000 +0.83479961 0.25000000 +0.83577713 0.25000000 +0.83675464 0.25000000 +0.83773216 0.25000000 +0.83870968 0.25000000 +0.83968719 0.25000000 +0.84066471 0.25000000 +0.84164223 0.25000000 +0.84261975 0.25000000 +0.84359726 0.25000000 +0.84457478 0.25000000 +0.84555230 0.25000000 +0.84652981 0.25000000 +0.84750733 0.25000000 +0.84848485 0.25000000 +0.84946237 0.25000000 +0.85043988 0.25000000 +0.85141740 0.25000000 +0.85239492 0.25000000 +0.85337243 0.25000000 +0.85434995 0.25000000 +0.85532747 0.25000000 +0.85630499 0.25000000 +0.85728250 0.25000000 +0.85826002 0.25000000 +0.85923754 0.25000000 +0.86021505 0.25000000 +0.86119257 0.25000000 +0.86217009 0.25000000 +0.86314761 0.25000000 +0.86412512 0.25000000 +0.86510264 0.25000000 +0.86608016 0.25000000 +0.86705767 0.25000000 +0.86803519 0.25000000 +0.86901271 0.25000000 +0.86999022 0.25000000 +0.87096774 0.25000000 +0.87194526 0.25000000 +0.87292278 0.25000000 +0.87390029 0.25000000 +0.87487781 0.25000000 +0.87585533 0.25000000 +0.87683284 0.25000000 +0.87781036 0.25000000 +0.87878788 0.25000000 +0.87976540 0.25000000 +0.88074291 0.25000000 +0.88172043 0.25000000 +0.88269795 0.25000000 +0.88367546 0.25000000 +0.88465298 0.25000000 +0.88563050 0.25000000 +0.88660802 0.25000000 +0.88758553 0.25000000 +0.88856305 0.25000000 +0.88954057 0.25000000 +0.89051808 0.25000000 +0.89149560 0.25000000 +0.89247312 0.25000000 +0.89345064 0.25000000 +0.89442815 0.25000000 +0.89540567 0.25000000 +0.89638319 0.25000000 +0.89736070 0.25000000 +0.89833822 0.25000000 +0.89931574 0.25000000 +0.90029326 0.25000000 +0.90127077 0.25000000 +0.90224829 0.25000000 +0.90322581 0.25000000 +0.90420332 0.25000000 +0.90518084 0.25000000 +0.90615836 0.25000000 +0.90713587 0.25000000 +0.90811339 0.25000000 +0.90909091 0.25000000 +0.91006843 0.25000000 +0.91104594 0.25000000 +0.91202346 0.25000000 +0.91300098 0.25000000 +0.91397849 0.25000000 +0.91495601 0.25000000 +0.91593353 0.25000000 +0.91691105 0.25000000 +0.91788856 0.25000000 +0.91886608 0.25000000 +0.91984360 0.25000000 +0.92082111 0.25000000 +0.92179863 0.25000000 +0.92277615 0.25000000 +0.92375367 0.25000000 +0.92473118 0.25000000 +0.92570870 0.25000000 +0.92668622 0.25000000 +0.92766373 0.25000000 +0.92864125 0.25000000 +0.92961877 0.25000000 +0.93059629 0.25000000 +0.93157380 0.25000000 +0.93255132 0.25000000 +0.93352884 0.25000000 +0.93450635 0.25000000 +0.93548387 0.25000000 +0.93646139 0.25000000 +0.93743891 0.25000000 +0.93841642 0.25000000 +0.93939394 0.25000000 +0.94037146 0.25000000 +0.94134897 0.25000000 +0.94232649 0.25000000 +0.94330401 0.25000000 +0.94428152 0.25000000 +0.94525904 0.25000000 +0.94623656 0.25000000 +0.94721408 0.25000000 +0.94819159 0.25000000 +0.94916911 0.25000000 +0.95014663 0.25000000 +0.95112414 0.25000000 +0.95210166 0.25000000 +0.95307918 0.25000000 +0.95405670 0.25000000 +0.95503421 0.25000000 +0.95601173 0.25000000 +0.95698925 0.25000000 +0.95796676 0.25000000 +0.95894428 0.25000000 +0.95992180 0.25000000 +0.96089932 0.25000000 +0.96187683 0.25000000 +0.96285435 0.25000000 +0.96383187 0.25000000 +0.96480938 0.25000000 +0.96578690 0.25000000 +0.96676442 0.25000000 +0.96774194 0.25000000 +0.96871945 0.25000000 +0.96969697 0.25000000 +0.97067449 0.25000000 +0.97165200 0.25000000 +0.97262952 0.25000000 +0.97360704 0.25000000 +0.97458456 0.25000000 +0.97556207 0.25000000 +0.97653959 0.25000000 +0.97751711 0.25000000 +0.97849462 0.25000000 +0.97947214 0.25000000 +0.98044966 0.25000000 +0.98142717 0.25000000 +0.98240469 0.25000000 +0.98338221 0.25000000 +0.98435973 0.25000000 +0.98533724 0.25000000 +0.98631476 0.25000000 +0.98729228 0.25000000 +0.98826979 0.25000000 +0.98924731 0.25000000 +0.99022483 0.25000000 +0.99120235 0.25000000 +0.99217986 0.25000000 +0.99315738 0.25000000 +0.99413490 0.25000000 +0.99511241 0.25000000 +0.99608993 0.25000000 +0.99706745 0.25000000 +0.99804497 0.25000000 +0.99902248 0.25000000 +1.00000000 nan diff --git a/examples/mamdani/SimpleDimmer.fll b/examples/mamdani/SimpleDimmer.fll new file mode 100644 index 0000000..3a4f8f9 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.fll @@ -0,0 +1,26 @@ +Engine: simple-dimmer +InputVariable: Ambient + enabled: true + range: 0.000 1.000 + term: DARK Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: BRIGHT Triangle 0.500 0.750 1.000 +OutputVariable: Power + enabled: true + range: 0.000 1.000 + accumulation: Maximum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: LOW Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: HIGH Triangle 0.500 0.750 1.000 +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: Minimum + rule: if Ambient is DARK then Power is HIGH + rule: if Ambient is MEDIUM then Power is MEDIUM + rule: if Ambient is BRIGHT then Power is LOW
\ No newline at end of file diff --git a/examples/mamdani/SimpleDimmer.java b/examples/mamdani/SimpleDimmer.java new file mode 100644 index 0000000..1846722 --- /dev/null +++ b/examples/mamdani/SimpleDimmer.java @@ -0,0 +1,54 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class SimpleDimmer{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("simple-dimmer"); + +InputVariable inputVariable = new InputVariable(); +inputVariable.setEnabled(true); +inputVariable.setName("Ambient"); +inputVariable.setRange(0.000, 1.000); +inputVariable.addTerm(new Triangle("DARK", 0.000, 0.250, 0.500)); +inputVariable.addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +inputVariable.addTerm(new Triangle("BRIGHT", 0.500, 0.750, 1.000)); +engine.addInputVariable(inputVariable); + +OutputVariable outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("Power"); +outputVariable.setRange(0.000, 1.000); +outputVariable.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable.setDefuzzifier(new Centroid(200)); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(new Triangle("LOW", 0.000, 0.250, 0.500)); +outputVariable.addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +outputVariable.addTerm(new Triangle("HIGH", 0.500, 0.750, 1.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(null); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(new Minimum()); +ruleBlock.addRule(Rule.parse("if Ambient is DARK then Power is HIGH", engine)); +ruleBlock.addRule(Rule.parse("if Ambient is MEDIUM then Power is MEDIUM", engine)); +ruleBlock.addRule(Rule.parse("if Ambient is BRIGHT then Power is LOW", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/mamdani/SimpleDimmerChained.fll b/examples/mamdani/SimpleDimmerChained.fll new file mode 100644 index 0000000..fd6b945 --- /dev/null +++ b/examples/mamdani/SimpleDimmerChained.fll @@ -0,0 +1,40 @@ +Engine: simple-dimmer +InputVariable: Ambient + enabled: true + range: 0.000 1.000 + term: DARK Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: BRIGHT Triangle 0.500 0.750 1.000 +OutputVariable: Power + enabled: true + range: 0.000 1.000 + accumulation: Maximum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: LOW Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: HIGH Triangle 0.500 0.750 1.000 +OutputVariable: InversePower + enabled: true + range: 0.000 1.000 + accumulation: Maximum + defuzzifier: Centroid 500 + default: nan + lock-previous: false + lock-range: false + term: LOW Cosine 0.200 0.500 + term: MEDIUM Cosine 0.500 0.500 + term: HIGH Cosine 0.800 0.500 +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: Minimum + rule: if Ambient is DARK then Power is HIGH + rule: if Ambient is MEDIUM then Power is MEDIUM + rule: if Ambient is BRIGHT then Power is LOW + rule: if Power is LOW then InversePower is HIGH + rule: if Power is MEDIUM then InversePower is MEDIUM + rule: if Power is HIGH then InversePower is LOW
\ No newline at end of file diff --git a/examples/mamdani/SimpleDimmerInverse.cpp b/examples/mamdani/SimpleDimmerInverse.cpp new file mode 100644 index 0000000..cad1100 --- /dev/null +++ b/examples/mamdani/SimpleDimmerInverse.cpp @@ -0,0 +1,61 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("simple-dimmer"); + +InputVariable* inputVariable = new InputVariable; +inputVariable->setEnabled(true); +inputVariable->setName("Ambient"); +inputVariable->setRange(0.000, 1.000); +inputVariable->addTerm(new Triangle("DARK", 0.000, 0.250, 0.500)); +inputVariable->addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +inputVariable->addTerm(new Triangle("BRIGHT", 0.500, 0.750, 1.000)); +engine->addInputVariable(inputVariable); + +OutputVariable* outputVariable1 = new OutputVariable; +outputVariable1->setEnabled(true); +outputVariable1->setName("Power"); +outputVariable1->setRange(0.000, 1.000); +outputVariable1->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable1->setDefuzzifier(new Centroid(200)); +outputVariable1->setDefaultValue(fl::nan); +outputVariable1->setLockPreviousOutputValue(false); +outputVariable1->setLockOutputValueInRange(false); +outputVariable1->addTerm(new Triangle("LOW", 0.000, 0.250, 0.500)); +outputVariable1->addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +outputVariable1->addTerm(new Triangle("HIGH", 0.500, 0.750, 1.000)); +engine->addOutputVariable(outputVariable1); + +OutputVariable* outputVariable2 = new OutputVariable; +outputVariable2->setEnabled(true); +outputVariable2->setName("InversePower"); +outputVariable2->setRange(0.000, 1.000); +outputVariable2->fuzzyOutput()->setAccumulation(new Maximum); +outputVariable2->setDefuzzifier(new Centroid(500)); +outputVariable2->setDefaultValue(fl::nan); +outputVariable2->setLockPreviousOutputValue(false); +outputVariable2->setLockOutputValueInRange(false); +outputVariable2->addTerm(new Cosine("LOW", 0.200, 0.500)); +outputVariable2->addTerm(new Cosine("MEDIUM", 0.500, 0.500)); +outputVariable2->addTerm(new Cosine("HIGH", 0.800, 0.500)); +engine->addOutputVariable(outputVariable2); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(NULL); +ruleBlock->setDisjunction(NULL); +ruleBlock->setActivation(new Minimum); +ruleBlock->addRule(fl::Rule::parse("if Ambient is DARK then Power is HIGH", engine)); +ruleBlock->addRule(fl::Rule::parse("if Ambient is MEDIUM then Power is MEDIUM", engine)); +ruleBlock->addRule(fl::Rule::parse("if Ambient is BRIGHT then Power is LOW", engine)); +ruleBlock->addRule(fl::Rule::parse("if Power is LOW then InversePower is HIGH", engine)); +ruleBlock->addRule(fl::Rule::parse("if Power is MEDIUM then InversePower is MEDIUM", engine)); +ruleBlock->addRule(fl::Rule::parse("if Power is HIGH then InversePower is LOW", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/SimpleDimmerInverse.fcl b/examples/mamdani/SimpleDimmerInverse.fcl new file mode 100644 index 0000000..337bc2b --- /dev/null +++ b/examples/mamdani/SimpleDimmerInverse.fcl @@ -0,0 +1,49 @@ +FUNCTION_BLOCK simple-dimmer + +VAR_INPUT + Ambient: REAL; +END_VAR + +VAR_OUTPUT + Power: REAL; + InversePower: REAL; +END_VAR + +FUZZIFY Ambient + RANGE := (0.000 .. 1.000); + TERM DARK := Triangle 0.000 0.250 0.500; + TERM MEDIUM := Triangle 0.250 0.500 0.750; + TERM BRIGHT := Triangle 0.500 0.750 1.000; +END_FUZZIFY + +DEFUZZIFY Power + RANGE := (0.000 .. 1.000); + TERM LOW := Triangle 0.000 0.250 0.500; + TERM MEDIUM := Triangle 0.250 0.500 0.750; + TERM HIGH := Triangle 0.500 0.750 1.000; + METHOD : COG; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +DEFUZZIFY InversePower + RANGE := (0.000 .. 1.000); + TERM LOW := Cosine 0.200 0.500; + TERM MEDIUM := Cosine 0.500 0.500; + TERM HIGH := Cosine 0.800 0.500; + METHOD : COG; + ACCU : MAX; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + ACT : MIN; + RULE 1 : if Ambient is DARK then Power is HIGH + RULE 2 : if Ambient is MEDIUM then Power is MEDIUM + RULE 3 : if Ambient is BRIGHT then Power is LOW + RULE 4 : if Power is LOW then InversePower is HIGH + RULE 5 : if Power is MEDIUM then InversePower is MEDIUM + RULE 6 : if Power is HIGH then InversePower is LOW +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/SimpleDimmerInverse.fld b/examples/mamdani/SimpleDimmerInverse.fld new file mode 100644 index 0000000..45373fa --- /dev/null +++ b/examples/mamdani/SimpleDimmerInverse.fld @@ -0,0 +1,1026 @@ +#@Engine: simple-dimmer; +#@InputVariable: Ambient; @OutputVariable: Power; @OutputVariable: InversePower; +0.00000000 nan nan +0.00097752 0.75000000 0.22167150 +0.00195503 0.75000000 0.22030661 +0.00293255 0.75000000 0.21927211 +0.00391007 0.75000000 0.21837259 +0.00488759 0.75000000 0.21759504 +0.00586510 0.75000000 0.21689174 +0.00684262 0.75000000 0.21624205 +0.00782014 0.75000000 0.21563550 +0.00879765 0.75000000 0.21506612 +0.00977517 0.75000000 0.21453019 +0.01075269 0.75000000 0.21402519 +0.01173021 0.75000000 0.21353593 +0.01270772 0.75000000 0.21305965 +0.01368524 0.75000000 0.21260950 +0.01466276 0.75000000 0.21218150 +0.01564027 0.75000000 0.21174980 +0.01661779 0.75000000 0.21134250 +0.01759531 0.75000000 0.21094779 +0.01857283 0.75000000 0.21055498 +0.01955034 0.75000000 0.21018558 +0.02052786 0.75000000 0.20981005 +0.02150538 0.75000000 0.20945327 +0.02248289 0.75000000 0.20909971 +0.02346041 0.75000000 0.20875478 +0.02443793 0.75000000 0.20841846 +0.02541544 0.75000000 0.20810890 +0.02639296 0.75000000 0.20782234 +0.02737048 0.75000000 0.20755709 +0.02834800 0.75000000 0.20731004 +0.02932551 0.75000000 0.20708013 +0.03030303 0.75000000 0.20686499 +0.03128055 0.75000000 0.20666370 +0.03225806 0.75000000 0.20647468 +0.03323558 0.75000000 0.20629689 +0.03421310 0.75000000 0.20612956 +0.03519062 0.75000000 0.20597128 +0.03616813 0.75000000 0.20582215 +0.03714565 0.75000000 0.20568029 +0.03812317 0.75000000 0.20554655 +0.03910068 0.75000000 0.20541899 +0.04007820 0.75000000 0.20529802 +0.04105572 0.75000000 0.20518274 +0.04203324 0.75000000 0.20507272 +0.04301075 0.75000000 0.20496807 +0.04398827 0.75000000 0.20486764 +0.04496579 0.75000000 0.20477210 +0.04594330 0.75000000 0.20468037 +0.04692082 0.75000000 0.20459248 +0.04789834 0.75000000 0.20450839 +0.04887586 0.75000000 0.20442732 +0.04985337 0.75000000 0.20434987 +0.05083089 0.75000000 0.20427519 +0.05180841 0.75000000 0.20420327 +0.05278592 0.75000000 0.20413428 +0.05376344 0.75000000 0.20406751 +0.05474096 0.75000000 0.20400336 +0.05571848 0.75000000 0.20394144 +0.05669599 0.75000000 0.20388140 +0.05767351 0.75000000 0.20382383 +0.05865103 0.75000000 0.20376794 +0.05962854 0.75000000 0.20371384 +0.06060606 0.75000000 0.20366171 +0.06158358 0.75000000 0.20361103 +0.06256109 0.75000000 0.20356203 +0.06353861 0.75000000 0.20351462 +0.06451613 0.75000000 0.20346845 +0.06549365 0.75000000 0.20342386 +0.06647116 0.75000000 0.20338055 +0.06744868 0.75000000 0.20333832 +0.06842620 0.75000000 0.20329758 +0.06940371 0.75000000 0.20325787 +0.07038123 0.75000000 0.20321911 +0.07135875 0.75000000 0.20318172 +0.07233627 0.75000000 0.20314519 +0.07331378 0.75000000 0.20310954 +0.07429130 0.75000000 0.20307507 +0.07526882 0.75000000 0.20304135 +0.07624633 0.75000000 0.20300844 +0.07722385 0.75000000 0.20297656 +0.07820137 0.75000000 0.20294536 +0.07917889 0.75000000 0.20291488 +0.08015640 0.75000000 0.20288533 +0.08113392 0.75000000 0.20285637 +0.08211144 0.75000000 0.20282806 +0.08308895 0.75000000 0.20280059 +0.08406647 0.75000000 0.20277365 +0.08504399 0.75000000 0.20274728 +0.08602151 0.75000000 0.20272169 +0.08699902 0.75000000 0.20269657 +0.08797654 0.75000000 0.20267195 +0.08895406 0.75000000 0.20264805 +0.08993157 0.75000000 0.20262458 +0.09090909 0.75000000 0.20260154 +0.09188661 0.75000000 0.20257918 +0.09286413 0.75000000 0.20255721 +0.09384164 0.75000000 0.20253561 +0.09481916 0.75000000 0.20251464 +0.09579668 0.75000000 0.20249404 +0.09677419 0.75000000 0.20247377 +0.09775171 0.75000000 0.20245404 +0.09872923 0.75000000 0.20243468 +0.09970674 0.75000000 0.20241563 +0.10068426 0.75000000 0.20239704 +0.10166178 0.75000000 0.20237883 +0.10263930 0.75000000 0.20236089 +0.10361681 0.75000000 0.20234334 +0.10459433 0.75000000 0.20232618 +0.10557185 0.75000000 0.20230927 +0.10654936 0.75000000 0.20229268 +0.10752688 0.75000000 0.20227648 +0.10850440 0.75000000 0.20226051 +0.10948192 0.75000000 0.20224480 +0.11045943 0.75000000 0.20222950 +0.11143695 0.75000000 0.20221441 +0.11241447 0.75000000 0.20219951 +0.11339198 0.75000000 0.20218503 +0.11436950 0.75000000 0.20217075 +0.11534702 0.75000000 0.20215665 +0.11632454 0.75000000 0.20214289 +0.11730205 0.75000000 0.20212935 +0.11827957 0.75000000 0.20211599 +0.11925709 0.75000000 0.20210290 +0.12023460 0.75000000 0.20209006 +0.12121212 0.75000000 0.20207738 +0.12218964 0.75000000 0.20206492 +0.12316716 0.75000000 0.20205274 +0.12414467 0.75000000 0.20204069 +0.12512219 0.75000000 0.20202881 +0.12609971 0.75000000 0.20201724 +0.12707722 0.75000000 0.20200579 +0.12805474 0.75000000 0.20199447 +0.12903226 0.75000000 0.20198344 +0.13000978 0.75000000 0.20197255 +0.13098729 0.75000000 0.20196178 +0.13196481 0.75000000 0.20195125 +0.13294233 0.75000000 0.20194088 +0.13391984 0.75000000 0.20193062 +0.13489736 0.75000000 0.20192055 +0.13587488 0.75000000 0.20191067 +0.13685239 0.75000000 0.20190089 +0.13782991 0.75000000 0.20189126 +0.13880743 0.75000000 0.20188184 +0.13978495 0.75000000 0.20187251 +0.14076246 0.75000000 0.20186329 +0.14173998 0.75000000 0.20185431 +0.14271750 0.75000000 0.20184541 +0.14369501 0.75000000 0.20183659 +0.14467253 0.75000000 0.20182800 +0.14565005 0.75000000 0.20181950 +0.14662757 0.75000000 0.20181108 +0.14760508 0.75000000 0.20180284 +0.14858260 0.75000000 0.20179472 +0.14956012 0.75000000 0.20178668 +0.15053763 0.75000000 0.20177878 +0.15151515 0.75000000 0.20177102 +0.15249267 0.75000000 0.20176333 +0.15347019 0.75000000 0.20175576 +0.15444770 0.75000000 0.20174834 +0.15542522 0.75000000 0.20174097 +0.15640274 0.75000000 0.20173372 +0.15738025 0.75000000 0.20172662 +0.15835777 0.75000000 0.20171957 +0.15933529 0.75000000 0.20171261 +0.16031281 0.75000000 0.20170581 +0.16129032 0.75000000 0.20169907 +0.16226784 0.75000000 0.20169239 +0.16324536 0.75000000 0.20168588 +0.16422287 0.75000000 0.20167942 +0.16520039 0.75000000 0.20167302 +0.16617791 0.75000000 0.20166679 +0.16715543 0.75000000 0.20166060 +0.16813294 0.75000000 0.20165446 +0.16911046 0.75000000 0.20164849 +0.17008798 0.75000000 0.20164256 +0.17106549 0.75000000 0.20163668 +0.17204301 0.75000000 0.20163095 +0.17302053 0.75000000 0.20162527 +0.17399804 0.75000000 0.20161963 +0.17497556 0.75000000 0.20161414 +0.17595308 0.75000000 0.20160869 +0.17693060 0.75000000 0.20160329 +0.17790811 0.75000000 0.20159803 +0.17888563 0.75000000 0.20159280 +0.17986315 0.75000000 0.20158764 +0.18084066 0.75000000 0.20158259 +0.18181818 0.75000000 0.20157758 +0.18279570 0.75000000 0.20157264 +0.18377322 0.75000000 0.20156780 +0.18475073 0.75000000 0.20156299 +0.18572825 0.75000000 0.20155827 +0.18670577 0.75000000 0.20155363 +0.18768328 0.75000000 0.20154902 +0.18866080 0.75000000 0.20154451 +0.18963832 0.75000000 0.20154006 +0.19061584 0.75000000 0.20153564 +0.19159335 0.75000000 0.20153134 +0.19257087 0.75000000 0.20152707 +0.19354839 0.75000000 0.20152286 +0.19452590 0.75000000 0.20151874 +0.19550342 0.75000000 0.20151465 +0.19648094 0.75000000 0.20151063 +0.19745846 0.75000000 0.20150669 +0.19843597 0.75000000 0.20150276 +0.19941349 0.75000000 0.20149895 +0.20039101 0.75000000 0.20149517 +0.20136852 0.75000000 0.20149144 +0.20234604 0.75000000 0.20148780 +0.20332356 0.75000000 0.20148417 +0.20430108 0.75000000 0.20148065 +0.20527859 0.75000000 0.20147715 +0.20625611 0.75000000 0.20147372 +0.20723363 0.75000000 0.20147035 +0.20821114 0.75000000 0.20146701 +0.20918866 0.75000000 0.20146377 +0.21016618 0.75000000 0.20146055 +0.21114370 0.75000000 0.20145740 +0.21212121 0.75000000 0.20145431 +0.21309873 0.75000000 0.20145125 +0.21407625 0.75000000 0.20144828 +0.21505376 0.75000000 0.20144532 +0.21603128 0.75000000 0.20144246 +0.21700880 0.75000000 0.20143962 +0.21798631 0.75000000 0.20143687 +0.21896383 0.75000000 0.20143414 +0.21994135 0.75000000 0.20143149 +0.22091887 0.75000000 0.20142887 +0.22189638 0.75000000 0.20142632 +0.22287390 0.75000000 0.20142382 +0.22385142 0.75000000 0.20142138 +0.22482893 0.75000000 0.20141899 +0.22580645 0.75000000 0.20141666 +0.22678397 0.75000000 0.20141437 +0.22776149 0.75000000 0.20141216 +0.22873900 0.75000000 0.20140998 +0.22971652 0.75000000 0.20140789 +0.23069404 0.75000000 0.20140583 +0.23167155 0.75000000 0.20140385 +0.23264907 0.75000000 0.20140191 +0.23362659 0.75000000 0.20140003 +0.23460411 0.75000000 0.20139823 +0.23558162 0.75000000 0.20139648 +0.23655914 0.75000000 0.20139479 +0.23753666 0.75000000 0.20139318 +0.23851417 0.75000000 0.20139162 +0.23949169 0.75000000 0.20139013 +0.24046921 0.75000000 0.20138872 +0.24144673 0.75000000 0.20138738 +0.24242424 0.75000000 0.20138613 +0.24340176 0.75000000 0.20138495 +0.24437928 0.75000000 0.20138385 +0.24535679 0.75000000 0.20138285 +0.24633431 0.75000000 0.20138195 +0.24731183 0.75000000 0.20138117 +0.24828935 0.75000000 0.20138052 +0.24926686 0.75000000 0.20138004 +0.25024438 0.74963379 0.20184621 +0.25122190 0.74817607 0.20367689 +0.25219941 0.74672965 0.20547042 +0.25317693 0.74530727 0.20723292 +0.25415445 0.74390115 0.20896960 +0.25513196 0.74250538 0.21068200 +0.25610948 0.74111985 0.21237142 +0.25708700 0.73974444 0.21403914 +0.25806452 0.73838897 0.21568634 +0.25904203 0.73705025 0.21731416 +0.26001955 0.73572080 0.21892367 +0.26099707 0.73440054 0.22051588 +0.26197458 0.73308936 0.22209176 +0.26295210 0.73179453 0.22364976 +0.26392962 0.73051679 0.22519215 +0.26490714 0.72924739 0.22672038 +0.26588465 0.72798623 0.22823273 +0.26686217 0.72673323 0.22973063 +0.26783969 0.72549344 0.23121629 +0.26881720 0.72427097 0.23268587 +0.26979472 0.72305599 0.23414401 +0.27077224 0.72184842 0.23558882 +0.27174976 0.72064820 0.23702103 +0.27272727 0.71945844 0.23844203 +0.27370479 0.71828610 0.23984979 +0.27468231 0.71712050 0.24124792 +0.27565982 0.71596157 0.24263262 +0.27663734 0.71480927 0.24400876 +0.27761486 0.71366501 0.24537168 +0.27859238 0.71253818 0.24672667 +0.27956989 0.71141742 0.24806903 +0.28054741 0.71030267 0.24940367 +0.28152493 0.70919389 0.25072659 +0.28250244 0.70809106 0.25204165 +0.28347996 0.70700557 0.25334618 +0.28445748 0.70592553 0.25464239 +0.28543500 0.70485092 0.25592952 +0.28641251 0.70378169 0.25720758 +0.28739003 0.70271779 0.25847822 +0.28836755 0.70166862 0.25973880 +0.28934506 0.70062558 0.26099337 +0.29032258 0.69958742 0.26223755 +0.29130010 0.69855412 0.26347553 +0.29227761 0.69752564 0.26470524 +0.29325513 0.69650949 0.26592723 +0.29423265 0.69550004 0.26714320 +0.29521017 0.69449498 0.26834979 +0.29618768 0.69349430 0.26955111 +0.29716520 0.69249796 0.27074444 +0.29814272 0.69151186 0.27193114 +0.29912023 0.69053287 0.27311234 +0.30009775 0.68955785 0.27428495 +0.30107527 0.68858676 0.27545274 +0.30205279 0.68761958 0.27661362 +0.30303030 0.68666076 0.27776803 +0.30400782 0.68570938 0.27891786 +0.30498534 0.68476154 0.28005970 +0.30596285 0.68381725 0.28119682 +0.30694037 0.68287647 0.28232868 +0.30791789 0.68194242 0.28345356 +0.30889541 0.68101598 0.28457426 +0.30987292 0.68009273 0.28568897 +0.31085044 0.67917264 0.28679805 +0.31182796 0.67825571 0.28790314 +0.31280547 0.67734408 0.28900176 +0.31378299 0.67644013 0.29009583 +0.31476051 0.67553902 0.29118611 +0.31573803 0.67464075 0.29226963 +0.31671554 0.67374530 0.29334946 +0.31769306 0.67285389 0.29442525 +0.31867058 0.67197014 0.29549502 +0.31964809 0.67108892 0.29656133 +0.32062561 0.67021023 0.29762345 +0.32160313 0.66933404 0.29868024 +0.32258065 0.66846082 0.29973374 +0.32355816 0.66759513 0.30078303 +0.32453568 0.66673167 0.30182751 +0.32551320 0.66587045 0.30286887 +0.32649071 0.66501145 0.30390610 +0.32746823 0.66415466 0.30493893 +0.32844575 0.66330485 0.30596879 +0.32942326 0.66245716 0.30699470 +0.33040078 0.66161144 0.30801651 +0.33137830 0.66076767 0.30903550 +0.33235582 0.65992584 0.31005075 +0.33333333 0.65908967 0.31106215 +0.33431085 0.65825587 0.31207087 +0.33528837 0.65742377 0.31307613 +0.33626588 0.65659337 0.31407770 +0.33724340 0.65576467 0.31507673 +0.33822092 0.65494046 0.31607198 +0.33919844 0.65411875 0.31706264 +0.34017595 0.65329850 0.31805099 +0.34115347 0.65247971 0.31903617 +0.34213099 0.65166237 0.32001692 +0.34310850 0.65084852 0.32099560 +0.34408602 0.65003719 0.32197170 +0.34506354 0.64922708 0.32294352 +0.34604106 0.64841821 0.32391349 +0.34701857 0.64761056 0.32488146 +0.34799609 0.64680554 0.32584530 +0.34897361 0.64600293 0.32680750 +0.34995112 0.64520134 0.32776805 +0.35092864 0.64440076 0.32872502 +0.35190616 0.64360119 0.32968035 +0.35288368 0.64280350 0.33063426 +0.35386119 0.64200804 0.33158533 +0.35483871 0.64121338 0.33253470 +0.35581623 0.64041952 0.33348284 +0.35679374 0.63962646 0.33442883 +0.35777126 0.63883468 0.33537310 +0.35874878 0.63804481 0.33631634 +0.35972630 0.63725555 0.33725803 +0.36070381 0.63646688 0.33819806 +0.36168133 0.63567880 0.33913724 +0.36265885 0.63489151 0.34007538 +0.36363636 0.63410574 0.34101201 +0.36461388 0.63332037 0.34194799 +0.36559140 0.63253539 0.34288331 +0.36656891 0.63175080 0.34381737 +0.36754643 0.63096664 0.34475097 +0.36852395 0.63018348 0.34568410 +0.36950147 0.62940052 0.34661650 +0.37047898 0.62861775 0.34754854 +0.37145650 0.62783518 0.34848030 +0.37243402 0.62705280 0.34941175 +0.37341153 0.62627077 0.35034304 +0.37438905 0.62548876 0.35127424 +0.37536657 0.62470674 0.35220543 +0.37634409 0.62392473 0.35313679 +0.37732160 0.62314272 0.35406824 +0.37829912 0.62236043 0.35499987 +0.37927664 0.62157791 0.35593211 +0.38025415 0.62079519 0.35686463 +0.38123167 0.62001228 0.35779743 +0.38220919 0.61922917 0.35873133 +0.38318671 0.61844529 0.35966573 +0.38416422 0.61766080 0.36060060 +0.38514174 0.61687591 0.36153679 +0.38611926 0.61609064 0.36247390 +0.38709677 0.61530497 0.36341166 +0.38807429 0.61451813 0.36435085 +0.38905181 0.61373020 0.36529150 +0.39002933 0.61294168 0.36623299 +0.39100684 0.61215256 0.36717592 +0.39198436 0.61136285 0.36812094 +0.39296188 0.61057168 0.36906701 +0.39393939 0.60977882 0.37001444 +0.39491691 0.60898516 0.37096469 +0.39589443 0.60819070 0.37191618 +0.39687195 0.60739544 0.37286891 +0.39784946 0.60659855 0.37382525 +0.39882698 0.60579922 0.37478304 +0.39980450 0.60499890 0.37574227 +0.40078201 0.60419756 0.37670519 +0.40175953 0.60339521 0.37767018 +0.40273705 0.60259116 0.37863682 +0.40371457 0.60178382 0.37960719 +0.40469208 0.60097525 0.38058030 +0.40566960 0.60016546 0.38155526 +0.40664712 0.59935443 0.38253399 +0.40762463 0.59854174 0.38351615 +0.40860215 0.59772477 0.38450040 +0.40957967 0.59690634 0.38548843 +0.41055718 0.59608645 0.38648062 +0.41153470 0.59526511 0.38747513 +0.41251222 0.59444225 0.38847349 +0.41348974 0.59361396 0.38947672 +0.41446725 0.59278399 0.39048250 +0.41544477 0.59195232 0.39149155 +0.41642229 0.59111894 0.39250467 +0.41739980 0.59028386 0.39352048 +0.41837732 0.58944297 0.39453968 +0.41935484 0.58859969 0.39556327 +0.42033236 0.58775445 0.39658970 +0.42130987 0.58690726 0.39761971 +0.42228739 0.58605810 0.39865437 +0.42326491 0.58520295 0.39969203 +0.42424242 0.58434451 0.40073354 +0.42521994 0.58348384 0.40177991 +0.42619746 0.58262095 0.40282942 +0.42717498 0.58175582 0.40388318 +0.42815249 0.58088462 0.40494190 +0.42913001 0.58000905 0.40600393 +0.43010753 0.57913099 0.40707072 +0.43108504 0.57825040 0.40814248 +0.43206256 0.57736728 0.40921771 +0.43304008 0.57647812 0.41029836 +0.43401760 0.57558337 0.41138386 +0.43499511 0.57468581 0.41247301 +0.43597263 0.57378542 0.41356841 +0.43695015 0.57288218 0.41466839 +0.43792766 0.57197303 0.41577220 +0.43890518 0.57105688 0.41688332 +0.43988270 0.57013759 0.41799853 +0.44086022 0.56921513 0.41911858 +0.44183773 0.56828949 0.42024563 +0.44281525 0.56735818 0.42137689 +0.44379277 0.56641827 0.42251434 +0.44477028 0.56547486 0.42365807 +0.44574780 0.56452791 0.42480621 +0.44672532 0.56357742 0.42596221 +0.44770283 0.56262161 0.42712348 +0.44868035 0.56165541 0.42829028 +0.44965787 0.56068529 0.42946517 +0.45063539 0.55971125 0.43064489 +0.45161290 0.55873326 0.43183231 +0.45259042 0.55775044 0.43302636 +0.45356794 0.55675519 0.43422600 +0.45454545 0.55575559 0.43543492 +0.45552297 0.55475164 0.43664915 +0.45650049 0.55374329 0.43787175 +0.45747801 0.55273051 0.43910163 +0.45845552 0.55170345 0.44033810 +0.45943304 0.55067135 0.44158421 +0.46041056 0.54963442 0.44283613 +0.46138807 0.54859260 0.44409826 +0.46236559 0.54754587 0.44536727 +0.46334311 0.54648479 0.44664519 +0.46432063 0.54541689 0.44793195 +0.46529814 0.54434363 0.44922653 +0.46627566 0.54326495 0.45053171 +0.46725318 0.54218083 0.45184389 +0.46823069 0.54108237 0.45316819 +0.46920821 0.53997508 0.45449940 +0.47018573 0.53886183 0.45584313 +0.47116325 0.53774257 0.45719450 +0.47214076 0.53661727 0.45855837 +0.47311828 0.53547778 0.45993068 +0.47409580 0.53432712 0.46131585 +0.47507331 0.53316986 0.46270993 +0.47605083 0.53200593 0.46411767 +0.47702835 0.53083528 0.46553438 +0.47800587 0.52965071 0.46695262 +0.47898338 0.52845232 0.46837800 +0.47996090 0.52724659 0.46980609 +0.48093842 0.52603347 0.47123994 +0.48191593 0.52481288 0.47267837 +0.48289345 0.52357875 0.47412061 +0.48387097 0.52232778 0.47556907 +0.48484848 0.52106867 0.47702029 +0.48582600 0.51980133 0.47847676 +0.48680352 0.51852569 0.47993880 +0.48778104 0.51723703 0.48140371 +0.48875855 0.51592811 0.48287336 +0.48973607 0.51461012 0.48434789 +0.49071359 0.51328298 0.48582689 +0.49169110 0.51194659 0.48730922 +0.49266862 0.51059784 0.48879513 +0.49364614 0.50922495 0.49028478 +0.49462366 0.50784195 0.49177772 +0.49560117 0.50644876 0.49327351 +0.49657869 0.50504524 0.49477078 +0.49755621 0.50363020 0.49626887 +0.49853372 0.50218659 0.49776632 +0.49951124 0.50073171 0.49925937 +0.50048876 0.49926829 0.50074063 +0.50146628 0.49781341 0.50223368 +0.50244379 0.49636980 0.50373113 +0.50342131 0.49495476 0.50522922 +0.50439883 0.49355124 0.50672649 +0.50537634 0.49215805 0.50822228 +0.50635386 0.49077505 0.50971522 +0.50733138 0.48940216 0.51120487 +0.50830890 0.48805341 0.51269078 +0.50928641 0.48671702 0.51417311 +0.51026393 0.48538988 0.51565211 +0.51124145 0.48407189 0.51712664 +0.51221896 0.48276297 0.51859629 +0.51319648 0.48147431 0.52006120 +0.51417400 0.48019867 0.52152324 +0.51515152 0.47893133 0.52297971 +0.51612903 0.47767222 0.52443093 +0.51710655 0.47642125 0.52587939 +0.51808407 0.47518712 0.52732163 +0.51906158 0.47396653 0.52876006 +0.52003910 0.47275341 0.53019391 +0.52101662 0.47154768 0.53162200 +0.52199413 0.47034929 0.53304738 +0.52297165 0.46916472 0.53446562 +0.52394917 0.46799407 0.53588233 +0.52492669 0.46683014 0.53729007 +0.52590420 0.46567288 0.53868415 +0.52688172 0.46452222 0.54006932 +0.52785924 0.46338273 0.54144163 +0.52883675 0.46225743 0.54280550 +0.52981427 0.46113817 0.54415687 +0.53079179 0.46002492 0.54550060 +0.53176931 0.45891763 0.54683181 +0.53274682 0.45781917 0.54815611 +0.53372434 0.45673505 0.54946829 +0.53470186 0.45565637 0.55077347 +0.53567937 0.45458311 0.55206805 +0.53665689 0.45351521 0.55335481 +0.53763441 0.45245413 0.55463273 +0.53861193 0.45140740 0.55590174 +0.53958944 0.45036558 0.55716387 +0.54056696 0.44932865 0.55841579 +0.54154448 0.44829655 0.55966190 +0.54252199 0.44726949 0.56089837 +0.54349951 0.44625671 0.56212825 +0.54447703 0.44524836 0.56335085 +0.54545455 0.44424441 0.56456508 +0.54643206 0.44324481 0.56577400 +0.54740958 0.44224956 0.56697364 +0.54838710 0.44126674 0.56816769 +0.54936461 0.44028875 0.56935511 +0.55034213 0.43931471 0.57053483 +0.55131965 0.43834459 0.57170972 +0.55229717 0.43737839 0.57287652 +0.55327468 0.43642258 0.57403779 +0.55425220 0.43547209 0.57519379 +0.55522972 0.43452514 0.57634193 +0.55620723 0.43358173 0.57748566 +0.55718475 0.43264182 0.57862311 +0.55816227 0.43171051 0.57975437 +0.55913978 0.43078487 0.58088142 +0.56011730 0.42986241 0.58200147 +0.56109482 0.42894312 0.58311668 +0.56207234 0.42802697 0.58422780 +0.56304985 0.42711782 0.58533161 +0.56402737 0.42621458 0.58643159 +0.56500489 0.42531419 0.58752699 +0.56598240 0.42441663 0.58861614 +0.56695992 0.42352188 0.58970164 +0.56793744 0.42263272 0.59078229 +0.56891496 0.42174960 0.59185752 +0.56989247 0.42086901 0.59292928 +0.57086999 0.41999095 0.59399607 +0.57184751 0.41911538 0.59505810 +0.57282502 0.41824418 0.59611682 +0.57380254 0.41737905 0.59717058 +0.57478006 0.41651616 0.59822009 +0.57575758 0.41565549 0.59926646 +0.57673509 0.41479705 0.60030797 +0.57771261 0.41394190 0.60134563 +0.57869013 0.41309274 0.60238029 +0.57966764 0.41224555 0.60341030 +0.58064516 0.41140031 0.60443673 +0.58162268 0.41055703 0.60546032 +0.58260020 0.40971614 0.60647952 +0.58357771 0.40888106 0.60749533 +0.58455523 0.40804768 0.60850845 +0.58553275 0.40721601 0.60951750 +0.58651026 0.40638604 0.61052328 +0.58748778 0.40555775 0.61152651 +0.58846530 0.40473489 0.61252487 +0.58944282 0.40391355 0.61351938 +0.59042033 0.40309366 0.61451157 +0.59139785 0.40227523 0.61549960 +0.59237537 0.40145826 0.61648385 +0.59335288 0.40064557 0.61746601 +0.59433040 0.39983454 0.61844474 +0.59530792 0.39902475 0.61941970 +0.59628543 0.39821618 0.62039281 +0.59726295 0.39740884 0.62136318 +0.59824047 0.39660479 0.62232982 +0.59921799 0.39580244 0.62329481 +0.60019550 0.39500110 0.62425773 +0.60117302 0.39420078 0.62521696 +0.60215054 0.39340145 0.62617475 +0.60312805 0.39260456 0.62713109 +0.60410557 0.39180930 0.62808382 +0.60508309 0.39101484 0.62903531 +0.60606061 0.39022118 0.62998556 +0.60703812 0.38942832 0.63093299 +0.60801564 0.38863715 0.63187906 +0.60899316 0.38784744 0.63282408 +0.60997067 0.38705832 0.63376701 +0.61094819 0.38626980 0.63470850 +0.61192571 0.38548187 0.63564915 +0.61290323 0.38469503 0.63658834 +0.61388074 0.38390936 0.63752610 +0.61485826 0.38312409 0.63846321 +0.61583578 0.38233920 0.63939940 +0.61681329 0.38155471 0.64033427 +0.61779081 0.38077083 0.64126867 +0.61876833 0.37998772 0.64220257 +0.61974585 0.37920481 0.64313537 +0.62072336 0.37842209 0.64406789 +0.62170088 0.37763957 0.64500013 +0.62267840 0.37685728 0.64593176 +0.62365591 0.37607527 0.64686321 +0.62463343 0.37529326 0.64779457 +0.62561095 0.37451124 0.64872576 +0.62658847 0.37372923 0.64965696 +0.62756598 0.37294720 0.65058825 +0.62854350 0.37216482 0.65151970 +0.62952102 0.37138225 0.65245146 +0.63049853 0.37059948 0.65338350 +0.63147605 0.36981652 0.65431590 +0.63245357 0.36903336 0.65524903 +0.63343109 0.36824920 0.65618263 +0.63440860 0.36746461 0.65711669 +0.63538612 0.36667963 0.65805201 +0.63636364 0.36589426 0.65898799 +0.63734115 0.36510849 0.65992462 +0.63831867 0.36432120 0.66086276 +0.63929619 0.36353312 0.66180194 +0.64027370 0.36274445 0.66274197 +0.64125122 0.36195519 0.66368366 +0.64222874 0.36116532 0.66462690 +0.64320626 0.36037354 0.66557117 +0.64418377 0.35958048 0.66651716 +0.64516129 0.35878662 0.66746530 +0.64613881 0.35799196 0.66841467 +0.64711632 0.35719650 0.66936574 +0.64809384 0.35639881 0.67031965 +0.64907136 0.35559924 0.67127498 +0.65004888 0.35479866 0.67223195 +0.65102639 0.35399707 0.67319250 +0.65200391 0.35319446 0.67415470 +0.65298143 0.35238944 0.67511854 +0.65395894 0.35158179 0.67608651 +0.65493646 0.35077292 0.67705648 +0.65591398 0.34996281 0.67802830 +0.65689150 0.34915148 0.67900440 +0.65786901 0.34833763 0.67998308 +0.65884653 0.34752029 0.68096383 +0.65982405 0.34670150 0.68194901 +0.66080156 0.34588125 0.68293736 +0.66177908 0.34505954 0.68392802 +0.66275660 0.34423533 0.68492327 +0.66373412 0.34340663 0.68592230 +0.66471163 0.34257623 0.68692387 +0.66568915 0.34174413 0.68792913 +0.66666667 0.34091033 0.68893785 +0.66764418 0.34007416 0.68994925 +0.66862170 0.33923233 0.69096450 +0.66959922 0.33838856 0.69198349 +0.67057674 0.33754284 0.69300530 +0.67155425 0.33669515 0.69403121 +0.67253177 0.33584534 0.69506107 +0.67350929 0.33498855 0.69609390 +0.67448680 0.33412955 0.69713113 +0.67546432 0.33326833 0.69817249 +0.67644184 0.33240487 0.69921697 +0.67741935 0.33153918 0.70026626 +0.67839687 0.33066596 0.70131976 +0.67937439 0.32978977 0.70237655 +0.68035191 0.32891108 0.70343867 +0.68132942 0.32802986 0.70450498 +0.68230694 0.32714611 0.70557475 +0.68328446 0.32625470 0.70665054 +0.68426197 0.32535925 0.70773037 +0.68523949 0.32446098 0.70881389 +0.68621701 0.32355987 0.70990417 +0.68719453 0.32265592 0.71099824 +0.68817204 0.32174429 0.71209686 +0.68914956 0.32082736 0.71320195 +0.69012708 0.31990727 0.71431103 +0.69110459 0.31898402 0.71542574 +0.69208211 0.31805758 0.71654644 +0.69305963 0.31712353 0.71767132 +0.69403715 0.31618275 0.71880318 +0.69501466 0.31523846 0.71994030 +0.69599218 0.31429062 0.72108214 +0.69696970 0.31333924 0.72223197 +0.69794721 0.31238042 0.72338638 +0.69892473 0.31141324 0.72454726 +0.69990225 0.31044215 0.72571505 +0.70087977 0.30946713 0.72688766 +0.70185728 0.30848814 0.72806886 +0.70283480 0.30750204 0.72925556 +0.70381232 0.30650570 0.73044889 +0.70478983 0.30550502 0.73165021 +0.70576735 0.30449996 0.73285680 +0.70674487 0.30349051 0.73407277 +0.70772239 0.30247436 0.73529476 +0.70869990 0.30144588 0.73652447 +0.70967742 0.30041258 0.73776245 +0.71065494 0.29937442 0.73900663 +0.71163245 0.29833138 0.74026120 +0.71260997 0.29728221 0.74152178 +0.71358749 0.29621831 0.74279242 +0.71456500 0.29514908 0.74407048 +0.71554252 0.29407447 0.74535761 +0.71652004 0.29299443 0.74665382 +0.71749756 0.29190894 0.74795835 +0.71847507 0.29080611 0.74927341 +0.71945259 0.28969733 0.75059633 +0.72043011 0.28858258 0.75193097 +0.72140762 0.28746182 0.75327333 +0.72238514 0.28633499 0.75462832 +0.72336266 0.28519073 0.75599124 +0.72434018 0.28403843 0.75736738 +0.72531769 0.28287950 0.75875208 +0.72629521 0.28171390 0.76015021 +0.72727273 0.28054156 0.76155797 +0.72825024 0.27935180 0.76297897 +0.72922776 0.27815158 0.76441118 +0.73020528 0.27694401 0.76585599 +0.73118280 0.27572903 0.76731413 +0.73216031 0.27450656 0.76878371 +0.73313783 0.27326677 0.77026937 +0.73411535 0.27201377 0.77176727 +0.73509286 0.27075261 0.77327962 +0.73607038 0.26948321 0.77480785 +0.73704790 0.26820547 0.77635024 +0.73802542 0.26691064 0.77790824 +0.73900293 0.26559946 0.77948412 +0.73998045 0.26427920 0.78107633 +0.74095797 0.26294975 0.78268584 +0.74193548 0.26161103 0.78431366 +0.74291300 0.26025556 0.78596086 +0.74389052 0.25888015 0.78762858 +0.74486804 0.25749462 0.78931800 +0.74584555 0.25609885 0.79103040 +0.74682307 0.25469273 0.79276708 +0.74780059 0.25327035 0.79452958 +0.74877810 0.25182393 0.79632311 +0.74975562 0.25036621 0.79815379 +0.75073314 0.25000000 0.79861996 +0.75171065 0.25000000 0.79861948 +0.75268817 0.25000000 0.79861883 +0.75366569 0.25000000 0.79861805 +0.75464321 0.25000000 0.79861715 +0.75562072 0.25000000 0.79861615 +0.75659824 0.25000000 0.79861505 +0.75757576 0.25000000 0.79861387 +0.75855327 0.25000000 0.79861262 +0.75953079 0.25000000 0.79861128 +0.76050831 0.25000000 0.79860987 +0.76148583 0.25000000 0.79860838 +0.76246334 0.25000000 0.79860682 +0.76344086 0.25000000 0.79860521 +0.76441838 0.25000000 0.79860352 +0.76539589 0.25000000 0.79860177 +0.76637341 0.25000000 0.79859997 +0.76735093 0.25000000 0.79859809 +0.76832845 0.25000000 0.79859615 +0.76930596 0.25000000 0.79859417 +0.77028348 0.25000000 0.79859211 +0.77126100 0.25000000 0.79859002 +0.77223851 0.25000000 0.79858784 +0.77321603 0.25000000 0.79858563 +0.77419355 0.25000000 0.79858334 +0.77517107 0.25000000 0.79858101 +0.77614858 0.25000000 0.79857862 +0.77712610 0.25000000 0.79857618 +0.77810362 0.25000000 0.79857368 +0.77908113 0.25000000 0.79857113 +0.78005865 0.25000000 0.79856851 +0.78103617 0.25000000 0.79856586 +0.78201369 0.25000000 0.79856313 +0.78299120 0.25000000 0.79856038 +0.78396872 0.25000000 0.79855754 +0.78494624 0.25000000 0.79855468 +0.78592375 0.25000000 0.79855172 +0.78690127 0.25000000 0.79854875 +0.78787879 0.25000000 0.79854569 +0.78885630 0.25000000 0.79854260 +0.78983382 0.25000000 0.79853945 +0.79081134 0.25000000 0.79853623 +0.79178886 0.25000000 0.79853299 +0.79276637 0.25000000 0.79852965 +0.79374389 0.25000000 0.79852628 +0.79472141 0.25000000 0.79852285 +0.79569892 0.25000000 0.79851935 +0.79667644 0.25000000 0.79851583 +0.79765396 0.25000000 0.79851220 +0.79863148 0.25000000 0.79850856 +0.79960899 0.25000000 0.79850483 +0.80058651 0.25000000 0.79850105 +0.80156403 0.25000000 0.79849724 +0.80254154 0.25000000 0.79849331 +0.80351906 0.25000000 0.79848937 +0.80449658 0.25000000 0.79848535 +0.80547410 0.25000000 0.79848126 +0.80645161 0.25000000 0.79847714 +0.80742913 0.25000000 0.79847293 +0.80840665 0.25000000 0.79846866 +0.80938416 0.25000000 0.79846436 +0.81036168 0.25000000 0.79845994 +0.81133920 0.25000000 0.79845549 +0.81231672 0.25000000 0.79845098 +0.81329423 0.25000000 0.79844637 +0.81427175 0.25000000 0.79844173 +0.81524927 0.25000000 0.79843701 +0.81622678 0.25000000 0.79843220 +0.81720430 0.25000000 0.79842736 +0.81818182 0.25000000 0.79842242 +0.81915934 0.25000000 0.79841741 +0.82013685 0.25000000 0.79841236 +0.82111437 0.25000000 0.79840720 +0.82209189 0.25000000 0.79840197 +0.82306940 0.25000000 0.79839671 +0.82404692 0.25000000 0.79839131 +0.82502444 0.25000000 0.79838586 +0.82600196 0.25000000 0.79838037 +0.82697947 0.25000000 0.79837473 +0.82795699 0.25000000 0.79836905 +0.82893451 0.25000000 0.79836332 +0.82991202 0.25000000 0.79835744 +0.83088954 0.25000000 0.79835151 +0.83186706 0.25000000 0.79834554 +0.83284457 0.25000000 0.79833940 +0.83382209 0.25000000 0.79833321 +0.83479961 0.25000000 0.79832698 +0.83577713 0.25000000 0.79832058 +0.83675464 0.25000000 0.79831412 +0.83773216 0.25000000 0.79830761 +0.83870968 0.25000000 0.79830093 +0.83968719 0.25000000 0.79829419 +0.84066471 0.25000000 0.79828739 +0.84164223 0.25000000 0.79828043 +0.84261975 0.25000000 0.79827338 +0.84359726 0.25000000 0.79826628 +0.84457478 0.25000000 0.79825903 +0.84555230 0.25000000 0.79825166 +0.84652981 0.25000000 0.79824424 +0.84750733 0.25000000 0.79823667 +0.84848485 0.25000000 0.79822898 +0.84946237 0.25000000 0.79822122 +0.85043988 0.25000000 0.79821332 +0.85141740 0.25000000 0.79820528 +0.85239492 0.25000000 0.79819716 +0.85337243 0.25000000 0.79818892 +0.85434995 0.25000000 0.79818050 +0.85532747 0.25000000 0.79817200 +0.85630499 0.25000000 0.79816341 +0.85728250 0.25000000 0.79815459 +0.85826002 0.25000000 0.79814569 +0.85923754 0.25000000 0.79813671 +0.86021505 0.25000000 0.79812749 +0.86119257 0.25000000 0.79811816 +0.86217009 0.25000000 0.79810874 +0.86314761 0.25000000 0.79809911 +0.86412512 0.25000000 0.79808933 +0.86510264 0.25000000 0.79807945 +0.86608016 0.25000000 0.79806938 +0.86705767 0.25000000 0.79805912 +0.86803519 0.25000000 0.79804875 +0.86901271 0.25000000 0.79803822 +0.86999022 0.25000000 0.79802745 +0.87096774 0.25000000 0.79801656 +0.87194526 0.25000000 0.79800553 +0.87292278 0.25000000 0.79799421 +0.87390029 0.25000000 0.79798276 +0.87487781 0.25000000 0.79797119 +0.87585533 0.25000000 0.79795931 +0.87683284 0.25000000 0.79794726 +0.87781036 0.25000000 0.79793508 +0.87878788 0.25000000 0.79792262 +0.87976540 0.25000000 0.79790994 +0.88074291 0.25000000 0.79789710 +0.88172043 0.25000000 0.79788401 +0.88269795 0.25000000 0.79787065 +0.88367546 0.25000000 0.79785711 +0.88465298 0.25000000 0.79784335 +0.88563050 0.25000000 0.79782925 +0.88660802 0.25000000 0.79781497 +0.88758553 0.25000000 0.79780049 +0.88856305 0.25000000 0.79778559 +0.88954057 0.25000000 0.79777050 +0.89051808 0.25000000 0.79775520 +0.89149560 0.25000000 0.79773949 +0.89247312 0.25000000 0.79772352 +0.89345064 0.25000000 0.79770732 +0.89442815 0.25000000 0.79769073 +0.89540567 0.25000000 0.79767382 +0.89638319 0.25000000 0.79765666 +0.89736070 0.25000000 0.79763911 +0.89833822 0.25000000 0.79762117 +0.89931574 0.25000000 0.79760296 +0.90029326 0.25000000 0.79758437 +0.90127077 0.25000000 0.79756532 +0.90224829 0.25000000 0.79754596 +0.90322581 0.25000000 0.79752623 +0.90420332 0.25000000 0.79750596 +0.90518084 0.25000000 0.79748536 +0.90615836 0.25000000 0.79746439 +0.90713587 0.25000000 0.79744279 +0.90811339 0.25000000 0.79742082 +0.90909091 0.25000000 0.79739846 +0.91006843 0.25000000 0.79737542 +0.91104594 0.25000000 0.79735195 +0.91202346 0.25000000 0.79732805 +0.91300098 0.25000000 0.79730343 +0.91397849 0.25000000 0.79727831 +0.91495601 0.25000000 0.79725272 +0.91593353 0.25000000 0.79722635 +0.91691105 0.25000000 0.79719941 +0.91788856 0.25000000 0.79717194 +0.91886608 0.25000000 0.79714363 +0.91984360 0.25000000 0.79711467 +0.92082111 0.25000000 0.79708512 +0.92179863 0.25000000 0.79705464 +0.92277615 0.25000000 0.79702344 +0.92375367 0.25000000 0.79699156 +0.92473118 0.25000000 0.79695865 +0.92570870 0.25000000 0.79692493 +0.92668622 0.25000000 0.79689046 +0.92766373 0.25000000 0.79685481 +0.92864125 0.25000000 0.79681828 +0.92961877 0.25000000 0.79678089 +0.93059629 0.25000000 0.79674213 +0.93157380 0.25000000 0.79670242 +0.93255132 0.25000000 0.79666168 +0.93352884 0.25000000 0.79661945 +0.93450635 0.25000000 0.79657614 +0.93548387 0.25000000 0.79653155 +0.93646139 0.25000000 0.79648538 +0.93743891 0.25000000 0.79643797 +0.93841642 0.25000000 0.79638897 +0.93939394 0.25000000 0.79633829 +0.94037146 0.25000000 0.79628616 +0.94134897 0.25000000 0.79623206 +0.94232649 0.25000000 0.79617617 +0.94330401 0.25000000 0.79611860 +0.94428152 0.25000000 0.79605856 +0.94525904 0.25000000 0.79599664 +0.94623656 0.25000000 0.79593249 +0.94721408 0.25000000 0.79586572 +0.94819159 0.25000000 0.79579673 +0.94916911 0.25000000 0.79572481 +0.95014663 0.25000000 0.79565013 +0.95112414 0.25000000 0.79557268 +0.95210166 0.25000000 0.79549161 +0.95307918 0.25000000 0.79540752 +0.95405670 0.25000000 0.79531963 +0.95503421 0.25000000 0.79522790 +0.95601173 0.25000000 0.79513236 +0.95698925 0.25000000 0.79503193 +0.95796676 0.25000000 0.79492728 +0.95894428 0.25000000 0.79481726 +0.95992180 0.25000000 0.79470198 +0.96089932 0.25000000 0.79458101 +0.96187683 0.25000000 0.79445345 +0.96285435 0.25000000 0.79431971 +0.96383187 0.25000000 0.79417785 +0.96480938 0.25000000 0.79402872 +0.96578690 0.25000000 0.79387044 +0.96676442 0.25000000 0.79370311 +0.96774194 0.25000000 0.79352532 +0.96871945 0.25000000 0.79333630 +0.96969697 0.25000000 0.79313501 +0.97067449 0.25000000 0.79291987 +0.97165200 0.25000000 0.79268996 +0.97262952 0.25000000 0.79244291 +0.97360704 0.25000000 0.79217766 +0.97458456 0.25000000 0.79189110 +0.97556207 0.25000000 0.79158154 +0.97653959 0.25000000 0.79124522 +0.97751711 0.25000000 0.79090029 +0.97849462 0.25000000 0.79054673 +0.97947214 0.25000000 0.79018995 +0.98044966 0.25000000 0.78981442 +0.98142717 0.25000000 0.78944502 +0.98240469 0.25000000 0.78905221 +0.98338221 0.25000000 0.78865750 +0.98435973 0.25000000 0.78825020 +0.98533724 0.25000000 0.78781850 +0.98631476 0.25000000 0.78739050 +0.98729228 0.25000000 0.78694035 +0.98826979 0.25000000 0.78646407 +0.98924731 0.25000000 0.78597481 +0.99022483 0.25000000 0.78546981 +0.99120235 0.25000000 0.78493388 +0.99217986 0.25000000 0.78436450 +0.99315738 0.25000000 0.78375795 +0.99413490 0.25000000 0.78310826 +0.99511241 0.25000000 0.78240496 +0.99608993 0.25000000 0.78162741 +0.99706745 0.25000000 0.78072789 +0.99804497 0.25000000 0.77969339 +0.99902248 0.25000000 0.77832850 +1.00000000 nan nan diff --git a/examples/mamdani/SimpleDimmerInverse.fll b/examples/mamdani/SimpleDimmerInverse.fll new file mode 100644 index 0000000..fd6b945 --- /dev/null +++ b/examples/mamdani/SimpleDimmerInverse.fll @@ -0,0 +1,40 @@ +Engine: simple-dimmer +InputVariable: Ambient + enabled: true + range: 0.000 1.000 + term: DARK Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: BRIGHT Triangle 0.500 0.750 1.000 +OutputVariable: Power + enabled: true + range: 0.000 1.000 + accumulation: Maximum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: LOW Triangle 0.000 0.250 0.500 + term: MEDIUM Triangle 0.250 0.500 0.750 + term: HIGH Triangle 0.500 0.750 1.000 +OutputVariable: InversePower + enabled: true + range: 0.000 1.000 + accumulation: Maximum + defuzzifier: Centroid 500 + default: nan + lock-previous: false + lock-range: false + term: LOW Cosine 0.200 0.500 + term: MEDIUM Cosine 0.500 0.500 + term: HIGH Cosine 0.800 0.500 +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: Minimum + rule: if Ambient is DARK then Power is HIGH + rule: if Ambient is MEDIUM then Power is MEDIUM + rule: if Ambient is BRIGHT then Power is LOW + rule: if Power is LOW then InversePower is HIGH + rule: if Power is MEDIUM then InversePower is MEDIUM + rule: if Power is HIGH then InversePower is LOW
\ No newline at end of file diff --git a/examples/mamdani/SimpleDimmerInverse.java b/examples/mamdani/SimpleDimmerInverse.java new file mode 100644 index 0000000..0bdde89 --- /dev/null +++ b/examples/mamdani/SimpleDimmerInverse.java @@ -0,0 +1,71 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class SimpleDimmerInverse{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("simple-dimmer"); + +InputVariable inputVariable = new InputVariable(); +inputVariable.setEnabled(true); +inputVariable.setName("Ambient"); +inputVariable.setRange(0.000, 1.000); +inputVariable.addTerm(new Triangle("DARK", 0.000, 0.250, 0.500)); +inputVariable.addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +inputVariable.addTerm(new Triangle("BRIGHT", 0.500, 0.750, 1.000)); +engine.addInputVariable(inputVariable); + +OutputVariable outputVariable1 = new OutputVariable(); +outputVariable1.setEnabled(true); +outputVariable1.setName("Power"); +outputVariable1.setRange(0.000, 1.000); +outputVariable1.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable1.setDefuzzifier(new Centroid(200)); +outputVariable1.setDefaultValue(Double.NaN); +outputVariable1.setLockPreviousOutputValue(false); +outputVariable1.setLockOutputValueInRange(false); +outputVariable1.addTerm(new Triangle("LOW", 0.000, 0.250, 0.500)); +outputVariable1.addTerm(new Triangle("MEDIUM", 0.250, 0.500, 0.750)); +outputVariable1.addTerm(new Triangle("HIGH", 0.500, 0.750, 1.000)); +engine.addOutputVariable(outputVariable1); + +OutputVariable outputVariable2 = new OutputVariable(); +outputVariable2.setEnabled(true); +outputVariable2.setName("InversePower"); +outputVariable2.setRange(0.000, 1.000); +outputVariable2.fuzzyOutput().setAccumulation(new Maximum()); +outputVariable2.setDefuzzifier(new Centroid(500)); +outputVariable2.setDefaultValue(Double.NaN); +outputVariable2.setLockPreviousOutputValue(false); +outputVariable2.setLockOutputValueInRange(false); +outputVariable2.addTerm(new Cosine("LOW", 0.200, 0.500)); +outputVariable2.addTerm(new Cosine("MEDIUM", 0.500, 0.500)); +outputVariable2.addTerm(new Cosine("HIGH", 0.800, 0.500)); +engine.addOutputVariable(outputVariable2); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(null); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(new Minimum()); +ruleBlock.addRule(Rule.parse("if Ambient is DARK then Power is HIGH", engine)); +ruleBlock.addRule(Rule.parse("if Ambient is MEDIUM then Power is MEDIUM", engine)); +ruleBlock.addRule(Rule.parse("if Ambient is BRIGHT then Power is LOW", engine)); +ruleBlock.addRule(Rule.parse("if Power is LOW then InversePower is HIGH", engine)); +ruleBlock.addRule(Rule.parse("if Power is MEDIUM then InversePower is MEDIUM", engine)); +ruleBlock.addRule(Rule.parse("if Power is HIGH then InversePower is LOW", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/mamdani/octave/COPYING b/examples/mamdani/octave/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/examples/mamdani/octave/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. diff --git a/examples/mamdani/octave/DESCRIPTION b/examples/mamdani/octave/DESCRIPTION new file mode 100644 index 0000000..35df57d --- /dev/null +++ b/examples/mamdani/octave/DESCRIPTION @@ -0,0 +1,12 @@ +Name: fuzzy-logic-toolkit +Version: 0.4.2 +Date: 2012-10-02 +Author: L. Markowsky <lmarkov@users.sourceforge.net> +Maintainer: L. Markowsky <lmarkov@users.sourceforge.net> +Title: Octave Fuzzy Logic Toolkit +Description: A mostly MATLAB-compatible fuzzy logic toolkit for Octave. +Depends: octave (>= 3.2.4) +Autoload: no +License: GPLv3+ +Url: http://octave.sf.net + http://sf.net/projects/octave-fuzzy diff --git a/examples/mamdani/octave/investment_portfolio.cpp b/examples/mamdani/octave/investment_portfolio.cpp new file mode 100644 index 0000000..9ccadc9 --- /dev/null +++ b/examples/mamdani/octave/investment_portfolio.cpp @@ -0,0 +1,52 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Investment-Portfolio"); + +InputVariable* inputVariable1 = new InputVariable; +inputVariable1->setEnabled(true); +inputVariable1->setName("Age"); +inputVariable1->setRange(20.000, 100.000); +inputVariable1->addTerm(new ZShape("Young", 30.000, 90.000)); +inputVariable1->addTerm(new SShape("Old", 30.000, 90.000)); +engine->addInputVariable(inputVariable1); + +InputVariable* inputVariable2 = new InputVariable; +inputVariable2->setEnabled(true); +inputVariable2->setName("RiskTolerance"); +inputVariable2->setRange(0.000, 10.000); +inputVariable2->addTerm(new ZShape("Low", 2.000, 8.000)); +inputVariable2->addTerm(new SShape("High", 2.000, 8.000)); +engine->addInputVariable(inputVariable2); + +OutputVariable* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("PercentageInStocks"); +outputVariable->setRange(0.000, 100.000); +outputVariable->fuzzyOutput()->setAccumulation(new EinsteinSum); +outputVariable->setDefuzzifier(new Centroid(200)); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(new Gaussian("AboutFifteen", 15.000, 10.000)); +outputVariable->addTerm(new Gaussian("AboutFifty", 50.000, 10.000)); +outputVariable->addTerm(new Gaussian("AboutEightyFive", 85.000, 10.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new EinsteinProduct); +ruleBlock->setDisjunction(new EinsteinSum); +ruleBlock->setActivation(new EinsteinProduct); +ruleBlock->addRule(fl::Rule::parse("if Age is Young or RiskTolerance is High then PercentageInStocks is AboutEightyFive", engine)); +ruleBlock->addRule(fl::Rule::parse("if Age is Old or RiskTolerance is Low then PercentageInStocks is AboutFifteen", engine)); +ruleBlock->addRule(fl::Rule::parse("if Age is not extremely Old and RiskTolerance is not extremely Low then PercentageInStocks is AboutFifty with 0.500", engine)); +ruleBlock->addRule(fl::Rule::parse("if Age is not extremely Young and RiskTolerance is not extremely High then PercentageInStocks is AboutFifty with 0.500", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/octave/investment_portfolio.fcl b/examples/mamdani/octave/investment_portfolio.fcl new file mode 100644 index 0000000..590ab3b --- /dev/null +++ b/examples/mamdani/octave/investment_portfolio.fcl @@ -0,0 +1,44 @@ +FUNCTION_BLOCK Investment-Portfolio + +VAR_INPUT + Age: REAL; + RiskTolerance: REAL; +END_VAR + +VAR_OUTPUT + PercentageInStocks: REAL; +END_VAR + +FUZZIFY Age + RANGE := (20.000 .. 100.000); + TERM Young := ZShape 30.000 90.000; + TERM Old := SShape 30.000 90.000; +END_FUZZIFY + +FUZZIFY RiskTolerance + RANGE := (0.000 .. 10.000); + TERM Low := ZShape 2.000 8.000; + TERM High := SShape 2.000 8.000; +END_FUZZIFY + +DEFUZZIFY PercentageInStocks + RANGE := (0.000 .. 100.000); + TERM AboutFifteen := Gaussian 15.000 10.000; + TERM AboutFifty := Gaussian 50.000 10.000; + TERM AboutEightyFive := Gaussian 85.000 10.000; + METHOD : COG; + ACCU : ESUM; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : EPROD; + OR : ESUM; + ACT : EPROD; + RULE 1 : if Age is Young or RiskTolerance is High then PercentageInStocks is AboutEightyFive + RULE 2 : if Age is Old or RiskTolerance is Low then PercentageInStocks is AboutFifteen + RULE 3 : if Age is not extremely Old and RiskTolerance is not extremely Low then PercentageInStocks is AboutFifty with 0.500 + RULE 4 : if Age is not extremely Young and RiskTolerance is not extremely High then PercentageInStocks is AboutFifty with 0.500 +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/octave/investment_portfolio.fis b/examples/mamdani/octave/investment_portfolio.fis new file mode 100644 index 0000000..311e728 --- /dev/null +++ b/examples/mamdani/octave/investment_portfolio.fis @@ -0,0 +1,39 @@ +[System] +Name='Investment-Portfolio' +Type='mamdani' +NumInputs=2 +NumOutputs=1 +NumRules=4 +AndMethod='einstein_product' +OrMethod='einstein_sum' +ImpMethod='einstein_product' +AggMethod='einstein_sum' +DefuzzMethod='centroid' + +[Input1] +Name='Age' +Range=[20.000 100.000] +NumMFs=2 +MF1='Young':'zmf',[30.000 90.000] +MF2='Old':'smf',[30.000 90.000] + +[Input2] +Name='RiskTolerance' +Range=[0.000 10.000] +NumMFs=2 +MF1='Low':'zmf',[2.000 8.000] +MF2='High':'smf',[2.000 8.000] + +[Output1] +Name='PercentageInStocks' +Range=[0.000 100.000] +NumMFs=3 +MF1='AboutFifteen':'gaussmf',[10.000 15.000] +MF2='AboutFifty':'gaussmf',[10.000 50.000] +MF3='AboutEightyFive':'gaussmf',[10.000 85.000] + +[Rules] +1.000 2.000 , 3.000 (1.000) : 2 +2.000 1.000 , 1.000 (1.000) : 2 +-2.300 -1.300 , 2.000 (0.500) : 1 +-1.300 -2.300 , 2.000 (0.500) : 1 diff --git a/examples/mamdani/octave/investment_portfolio.fld b/examples/mamdani/octave/investment_portfolio.fld new file mode 100644 index 0000000..648b0be --- /dev/null +++ b/examples/mamdani/octave/investment_portfolio.fld @@ -0,0 +1,1026 @@ +#@Engine: Investment-Portfolio; +#@InputVariable: Age; @InputVariable: RiskTolerance; @OutputVariable: PercentageInStocks; +20.00000000 0.00000000 50.00000000 +20.00000000 0.32258065 50.00000000 +20.00000000 0.64516129 50.00000000 +20.00000000 0.96774194 50.00000000 +20.00000000 1.29032258 50.00000000 +20.00000000 1.61290323 50.00000000 +20.00000000 1.93548387 50.00000000 +20.00000000 2.25806452 50.07664849 +20.00000000 2.58064516 50.39007638 +20.00000000 2.90322581 50.95232681 +20.00000000 3.22580645 51.77492832 +20.00000000 3.54838710 52.87098013 +20.00000000 3.87096774 54.25013613 +20.00000000 4.19354839 55.91006054 +20.00000000 4.51612903 57.82311764 +20.00000000 4.83870968 59.91799668 +20.00000000 5.16129032 62.04316294 +20.00000000 5.48387097 64.00662112 +20.00000000 5.80645161 65.82068208 +20.00000000 6.12903226 67.49497664 +20.00000000 6.45161290 69.01370662 +20.00000000 6.77419355 70.34164582 +20.00000000 7.09677419 71.43161596 +20.00000000 7.41935484 72.23344208 +20.00000000 7.74193548 72.70359583 +20.00000000 8.06451613 72.82131403 +20.00000000 8.38709677 72.82131403 +20.00000000 8.70967742 72.82131403 +20.00000000 9.03225806 72.82131403 +20.00000000 9.35483871 72.82131403 +20.00000000 9.67741935 72.82131403 +20.00000000 10.00000000 72.82131403 +22.58064516 0.00000000 50.00000000 +22.58064516 0.32258065 50.00000000 +22.58064516 0.64516129 50.00000000 +22.58064516 0.96774194 50.00000000 +22.58064516 1.29032258 50.00000000 +22.58064516 1.61290323 50.00000000 +22.58064516 1.93548387 50.00000000 +22.58064516 2.25806452 50.07664849 +22.58064516 2.58064516 50.39007638 +22.58064516 2.90322581 50.95232681 +22.58064516 3.22580645 51.77492832 +22.58064516 3.54838710 52.87098013 +22.58064516 3.87096774 54.25013613 +22.58064516 4.19354839 55.91006054 +22.58064516 4.51612903 57.82311764 +22.58064516 4.83870968 59.91799668 +22.58064516 5.16129032 62.04316294 +22.58064516 5.48387097 64.00662112 +22.58064516 5.80645161 65.82068208 +22.58064516 6.12903226 67.49497664 +22.58064516 6.45161290 69.01370662 +22.58064516 6.77419355 70.34164582 +22.58064516 7.09677419 71.43161596 +22.58064516 7.41935484 72.23344208 +22.58064516 7.74193548 72.70359583 +22.58064516 8.06451613 72.82131403 +22.58064516 8.38709677 72.82131403 +22.58064516 8.70967742 72.82131403 +22.58064516 9.03225806 72.82131403 +22.58064516 9.35483871 72.82131403 +22.58064516 9.67741935 72.82131403 +22.58064516 10.00000000 72.82131403 +25.16129032 0.00000000 50.00000000 +25.16129032 0.32258065 50.00000000 +25.16129032 0.64516129 50.00000000 +25.16129032 0.96774194 50.00000000 +25.16129032 1.29032258 50.00000000 +25.16129032 1.61290323 50.00000000 +25.16129032 1.93548387 50.00000000 +25.16129032 2.25806452 50.07664849 +25.16129032 2.58064516 50.39007638 +25.16129032 2.90322581 50.95232681 +25.16129032 3.22580645 51.77492832 +25.16129032 3.54838710 52.87098013 +25.16129032 3.87096774 54.25013613 +25.16129032 4.19354839 55.91006054 +25.16129032 4.51612903 57.82311764 +25.16129032 4.83870968 59.91799668 +25.16129032 5.16129032 62.04316294 +25.16129032 5.48387097 64.00662112 +25.16129032 5.80645161 65.82068208 +25.16129032 6.12903226 67.49497664 +25.16129032 6.45161290 69.01370662 +25.16129032 6.77419355 70.34164582 +25.16129032 7.09677419 71.43161596 +25.16129032 7.41935484 72.23344208 +25.16129032 7.74193548 72.70359583 +25.16129032 8.06451613 72.82131403 +25.16129032 8.38709677 72.82131403 +25.16129032 8.70967742 72.82131403 +25.16129032 9.03225806 72.82131403 +25.16129032 9.35483871 72.82131403 +25.16129032 9.67741935 72.82131403 +25.16129032 10.00000000 72.82131403 +27.74193548 0.00000000 50.00000000 +27.74193548 0.32258065 50.00000000 +27.74193548 0.64516129 50.00000000 +27.74193548 0.96774194 50.00000000 +27.74193548 1.29032258 50.00000000 +27.74193548 1.61290323 50.00000000 +27.74193548 1.93548387 50.00000000 +27.74193548 2.25806452 50.07664849 +27.74193548 2.58064516 50.39007638 +27.74193548 2.90322581 50.95232681 +27.74193548 3.22580645 51.77492832 +27.74193548 3.54838710 52.87098013 +27.74193548 3.87096774 54.25013613 +27.74193548 4.19354839 55.91006054 +27.74193548 4.51612903 57.82311764 +27.74193548 4.83870968 59.91799668 +27.74193548 5.16129032 62.04316294 +27.74193548 5.48387097 64.00662112 +27.74193548 5.80645161 65.82068208 +27.74193548 6.12903226 67.49497664 +27.74193548 6.45161290 69.01370662 +27.74193548 6.77419355 70.34164582 +27.74193548 7.09677419 71.43161596 +27.74193548 7.41935484 72.23344208 +27.74193548 7.74193548 72.70359583 +27.74193548 8.06451613 72.82131403 +27.74193548 8.38709677 72.82131403 +27.74193548 8.70967742 72.82131403 +27.74193548 9.03225806 72.82131403 +27.74193548 9.35483871 72.82131403 +27.74193548 9.67741935 72.82131403 +27.74193548 10.00000000 72.82131403 +30.32258065 0.00000000 49.99880392 +30.32258065 0.32258065 49.99880392 +30.32258065 0.64516129 49.99880392 +30.32258065 0.96774194 49.99880392 +30.32258065 1.29032258 49.99880392 +30.32258065 1.61290323 49.99880392 +30.32258065 1.93548387 49.99880392 +30.32258065 2.25806452 50.07545238 +30.32258065 2.58064516 50.38887965 +30.32258065 2.90322581 50.95112699 +30.32258065 3.22580645 51.77371992 +30.32258065 3.54838710 52.86975395 +30.32258065 3.87096774 54.24887943 +30.32258065 4.19354839 55.90875847 +30.32258065 4.51612903 57.82175684 +30.32258065 4.83870968 59.91657184 +30.32258065 5.16129032 62.04168233 +30.32258065 5.48387097 64.00508502 +30.32258065 5.80645161 65.81908993 +30.32258065 6.12903226 67.49332917 +30.32258065 6.45161290 69.01200609 +30.32258065 6.77419355 70.33989666 +30.32258065 7.09677419 71.42982533 +30.32258065 7.41935484 72.23162005 +30.32258065 7.74193548 72.70175504 +30.32258065 8.06451613 72.81946849 +30.32258065 8.38709677 72.81946849 +30.32258065 8.70967742 72.81946849 +30.32258065 9.03225806 72.81946849 +30.32258065 9.35483871 72.81946849 +30.32258065 9.67741935 72.81946849 +30.32258065 10.00000000 72.81946849 +32.90322581 0.00000000 49.90295798 +32.90322581 0.32258065 49.90295798 +32.90322581 0.64516129 49.90295798 +32.90322581 0.96774194 49.90295798 +32.90322581 1.29032258 49.90295798 +32.90322581 1.61290323 49.90295798 +32.90322581 1.93548387 49.90295798 +32.90322581 2.25806452 49.97960702 +32.90322581 2.58064516 50.29299482 +32.90322581 2.90322581 50.85501365 +32.90322581 3.22580645 51.67694728 +32.90322581 3.54838710 52.77159622 +32.90322581 3.87096774 54.14832785 +32.90322581 4.19354839 55.80464007 +32.90322581 4.51612903 57.71302139 +32.90322581 4.83870968 59.80281425 +32.90322581 5.16129032 61.92356979 +32.90322581 5.48387097 63.88261418 +32.90322581 5.80645161 65.69219320 +32.90322581 6.12903226 67.36205805 +32.90322581 6.45161290 68.87652195 +32.90322581 6.77419355 70.20054895 +32.90322581 7.09677419 71.28718186 +32.90322581 7.41935484 72.08648082 +32.90322581 7.74193548 72.55512448 +32.90322581 8.06451613 72.67246132 +32.90322581 8.38709677 72.67246132 +32.90322581 8.70967742 72.67246132 +32.90322581 9.03225806 72.67246132 +32.90322581 9.35483871 72.67246132 +32.90322581 9.67741935 72.67246132 +32.90322581 10.00000000 72.67246132 +35.48387097 0.00000000 49.65230424 +35.48387097 0.32258065 49.65230424 +35.48387097 0.64516129 49.65230424 +35.48387097 0.96774194 49.65230424 +35.48387097 1.29032258 49.65230424 +35.48387097 1.61290323 49.65230424 +35.48387097 1.93548387 49.65230424 +35.48387097 2.25806452 49.72897859 +35.48387097 2.58064516 50.04236049 +35.48387097 2.90322581 50.60395669 +35.48387097 3.22580645 51.42442479 +35.48387097 3.54838710 52.51580620 +35.48387097 3.87096774 53.88675089 +35.48387097 4.19354839 55.53436093 +35.48387097 4.51612903 57.43147904 +35.48387097 4.83870968 59.50912954 +35.48387097 5.16129032 61.61952428 +35.48387097 5.48387097 63.56796052 +35.48387097 5.80645161 65.36655988 +35.48387097 6.12903226 67.02542761 +35.48387097 6.45161290 68.52927075 +35.48387097 6.77419355 69.84352090 +35.48387097 7.09677419 70.92180186 +35.48387097 7.41935484 71.71475942 +35.48387097 7.74193548 72.17961322 +35.48387097 8.06451613 72.29599292 +35.48387097 8.38709677 72.29599292 +35.48387097 8.70967742 72.29599292 +35.48387097 9.03225806 72.29599292 +35.48387097 9.35483871 72.29599292 +35.48387097 9.67741935 72.29599292 +35.48387097 10.00000000 72.29599292 +38.06451613 0.00000000 49.24309895 +38.06451613 0.32258065 49.24309895 +38.06451613 0.64516129 49.24309895 +38.06451613 0.96774194 49.24309895 +38.06451613 1.29032258 49.24309895 +38.06451613 1.61290323 49.24309895 +38.06451613 1.93548387 49.24309895 +38.06451613 2.25806452 49.31988482 +38.06451613 2.58064516 49.63354393 +38.06451613 2.90322581 50.19496500 +38.06451613 3.22580645 51.01379991 +38.06451613 3.54838710 52.10088544 +38.06451613 3.87096774 53.46376445 +38.06451613 4.19354839 55.09898884 +38.06451613 4.51612903 56.98007353 +38.06451613 4.83870968 59.04077124 +38.06451613 5.16129032 61.13722688 +38.06451613 5.48387097 63.07064236 +38.06451613 5.80645161 64.85305357 +38.06451613 6.12903226 66.49534778 +38.06451613 6.45161290 67.98296760 +38.06451613 6.77419355 69.28218358 +38.06451613 7.09677419 70.34756047 +38.06451613 7.41935484 71.13072959 +38.06451613 7.74193548 71.58971545 +38.06451613 8.06451613 71.70461300 +38.06451613 8.38709677 71.70461300 +38.06451613 8.70967742 71.70461300 +38.06451613 9.03225806 71.70461300 +38.06451613 9.35483871 71.70461300 +38.06451613 9.67741935 71.70461300 +38.06451613 10.00000000 71.70461300 +40.64516129 0.00000000 48.66974302 +40.64516129 0.32258065 48.66974302 +40.64516129 0.64516129 48.66974302 +40.64516129 0.96774194 48.66974302 +40.64516129 1.29032258 48.66974302 +40.64516129 1.61290323 48.66974302 +40.64516129 1.93548387 48.66974302 +40.64516129 2.25806452 48.74681972 +40.64516129 2.58064516 49.06141626 +40.64516129 2.90322581 49.62357390 +40.64516129 3.22580645 50.44156177 +40.64516129 3.54838710 51.52458831 +40.64516129 3.87096774 52.87875978 +40.64516129 4.19354839 54.50003124 +40.64516129 4.51612903 56.36302984 +40.64516129 4.83870968 58.40529847 +40.64516129 5.16129032 60.48775451 +40.64516129 5.48387097 62.40444567 +40.64516129 5.80645161 64.16746517 +40.64516129 6.12903226 65.78913336 +40.64516129 6.45161290 67.25614371 +40.64516129 6.77419355 68.53604701 +40.64516129 7.09677419 69.58475383 +40.64516129 7.41935484 70.35521241 +40.64516129 7.74193548 70.80658497 +40.64516129 8.06451613 70.91955552 +40.64516129 8.38709677 70.91955552 +40.64516129 8.70967742 70.91955552 +40.64516129 9.03225806 70.91955552 +40.64516129 9.35483871 70.91955552 +40.64516129 9.67741935 70.91955552 +40.64516129 10.00000000 70.91955552 +43.22580645 0.00000000 47.92553362 +43.22580645 0.32258065 47.92553362 +43.22580645 0.64516129 47.92553362 +43.22580645 0.96774194 47.92553362 +43.22580645 1.29032258 47.92553362 +43.22580645 1.61290323 47.92553362 +43.22580645 1.93548387 47.92553362 +43.22580645 2.25806452 48.00319612 +43.22580645 2.58064516 48.31985647 +43.22580645 2.90322581 48.88447571 +43.22580645 3.22580645 49.70355442 +43.22580645 3.54838710 50.78426142 +43.22580645 3.87096774 52.13099528 +43.22580645 4.19354839 53.73918510 +43.22580645 4.51612903 55.58515207 +43.22580645 4.83870968 57.61132963 +43.22580645 5.16129032 59.68382184 +43.22580645 5.48387097 61.58536931 +43.22580645 5.80645161 63.32828142 +43.22580645 6.12903226 64.92718203 +43.22580645 6.45161290 66.37069947 +43.22580645 6.77419355 67.62820397 +43.22580645 7.09677419 68.65739074 +43.22580645 7.41935484 69.41289095 +43.22580645 7.74193548 69.85526918 +43.22580645 8.06451613 69.96596156 +43.22580645 8.38709677 69.96596156 +43.22580645 8.70967742 69.96596156 +43.22580645 9.03225806 69.96596156 +43.22580645 9.35483871 69.96596156 +43.22580645 9.67741935 69.96596156 +43.22580645 10.00000000 69.96596156 +45.80645161 0.00000000 47.00393487 +45.80645161 0.32258065 47.00393487 +45.80645161 0.64516129 47.00393487 +45.80645161 0.96774194 47.00393487 +45.80645161 1.29032258 47.00393487 +45.80645161 1.61290323 47.00393487 +45.80645161 1.93548387 47.00393487 +45.80645161 2.25806452 47.08260248 +45.80645161 2.58064516 47.40295027 +45.80645161 2.90322581 47.97260761 +45.80645161 3.22580645 48.79588816 +45.80645161 3.54838710 49.87749533 +45.80645161 3.87096774 51.21988342 +45.80645161 4.19354839 52.81813027 +45.80645161 4.51612903 54.65098576 +45.80645161 4.83870968 56.66698079 +45.80645161 5.16129032 58.73758982 +45.80645161 5.48387097 60.62911442 +45.80645161 5.80645161 62.35401414 +45.80645161 6.12903226 63.93019461 +45.80645161 6.45161290 65.34904000 +45.80645161 6.77419355 66.58237935 +45.80645161 7.09677419 67.59018730 +45.80645161 7.41935484 68.32916295 +45.80645161 7.74193548 68.76155861 +45.80645161 8.06451613 68.86971710 +45.80645161 8.38709677 68.86971710 +45.80645161 8.70967742 68.86971710 +45.80645161 9.03225806 68.86971710 +45.80645161 9.35483871 68.86971710 +45.80645161 9.67741935 68.86971710 +45.80645161 10.00000000 68.86971710 +48.38709677 0.00000000 45.90059861 +48.38709677 0.32258065 45.90059861 +48.38709677 0.64516129 45.90059861 +48.38709677 0.96774194 45.90059861 +48.38709677 1.29032258 45.90059861 +48.38709677 1.61290323 45.90059861 +48.38709677 1.93548387 45.90059861 +48.38709677 2.25806452 45.98080335 +48.38709677 2.58064516 46.30690509 +48.38709677 2.90322581 46.88490696 +48.38709677 3.22580645 47.71644736 +48.38709677 3.54838710 48.80327906 +48.38709677 3.87096774 50.14566326 +48.38709677 4.19354839 51.73856779 +48.38709677 4.51612903 53.56406480 +48.38709677 4.83870968 55.57822661 +48.38709677 5.16129032 57.65828336 +48.38709677 5.48387097 59.54837018 +48.38709677 5.80645161 61.26036274 +48.38709677 6.12903226 62.81628542 +48.38709677 6.45161290 64.21114285 +48.38709677 6.77419355 65.41994481 +48.38709677 7.09677419 66.40551444 +48.38709677 7.41935484 67.12705985 +48.38709677 7.74193548 67.54884508 +48.38709677 8.06451613 67.65430104 +48.38709677 8.38709677 67.65430104 +48.38709677 8.70967742 67.65430104 +48.38709677 9.03225806 67.65430104 +48.38709677 9.35483871 67.65430104 +48.38709677 9.67741935 67.65430104 +48.38709677 10.00000000 67.65430104 +50.96774194 0.00000000 44.61641577 +50.96774194 0.32258065 44.61641577 +50.96774194 0.64516129 44.61641577 +50.96774194 0.96774194 44.61641577 +50.96774194 1.29032258 44.61641577 +50.96774194 1.61290323 44.61641577 +50.96774194 1.93548387 44.61641577 +50.96774194 2.25806452 44.69876030 +50.96774194 2.58064516 45.03294688 +50.96774194 2.90322581 45.62298535 +50.96774194 3.22580645 46.46723847 +50.96774194 3.54838710 47.56391012 +50.96774194 3.87096774 48.91074345 +50.96774194 4.19354839 50.50284021 +50.96774194 4.51612903 52.32663397 +50.96774194 4.83870968 54.34758826 +50.96774194 5.16129032 56.44995468 +50.96774194 5.48387097 58.35016147 +50.96774194 5.80645161 60.05744033 +50.96774194 6.12903226 61.59819880 +50.96774194 6.45161290 62.97178502 +50.96774194 6.77419355 64.15714114 +50.96774194 7.09677419 65.12059667 +50.96774194 7.41935484 65.82440942 +50.96774194 7.74193548 66.23526465 +50.96774194 8.06451613 66.33792129 +50.96774194 8.38709677 66.33792129 +50.96774194 8.70967742 66.33792129 +50.96774194 9.03225806 66.33792129 +50.96774194 9.35483871 66.33792129 +50.96774194 9.67741935 66.33792129 +50.96774194 10.00000000 66.33792129 +53.54838710 0.00000000 43.16186397 +53.54838710 0.32258065 43.16186397 +53.54838710 0.64516129 43.16186397 +53.54838710 0.96774194 43.16186397 +53.54838710 1.29032258 43.16186397 +53.54838710 1.61290323 43.16186397 +53.54838710 1.93548387 43.16186397 +53.54838710 2.25806452 43.24693567 +53.54838710 2.58064516 43.59144915 +53.54838710 2.90322581 44.19696211 +53.54838710 3.22580645 45.05782673 +53.54838710 3.54838710 46.16794938 +53.54838710 3.87096774 47.52208653 +53.54838710 4.19354839 49.11561738 +53.54838710 4.51612903 50.94043496 +53.54838710 4.83870968 52.97375509 +53.54838710 5.16129032 55.10984868 +53.54838710 5.48387097 57.03353782 +53.54838710 5.80645161 58.74723142 +53.54838710 6.12903226 60.28074724 +53.54838710 6.45161290 61.63802885 +53.54838710 6.77419355 62.80260996 +53.54838710 7.09677419 63.74506644 +53.54838710 7.41935484 64.43139325 +53.54838710 7.74193548 64.83124074 +53.54838710 8.06451613 64.93106623 +53.54838710 8.38709677 64.93106623 +53.54838710 8.70967742 64.93106623 +53.54838710 9.03225806 64.93106623 +53.54838710 9.35483871 64.93106623 +53.54838710 9.67741935 64.93106623 +53.54838710 10.00000000 64.93106623 +56.12903226 0.00000000 41.56275742 +56.12903226 0.32258065 41.56275742 +56.12903226 0.64516129 41.56275742 +56.12903226 0.96774194 41.56275742 +56.12903226 1.29032258 41.56275742 +56.12903226 1.61290323 41.56275742 +56.12903226 1.93548387 41.56275742 +56.12903226 2.25806452 41.65098310 +56.12903226 2.58064516 42.00739488 +56.12903226 2.90322581 42.63056788 +56.12903226 3.22580645 43.51001484 +56.12903226 3.54838710 44.63446668 +56.12903226 3.87096774 45.99502950 +56.12903226 4.19354839 47.58723244 +56.12903226 4.51612903 49.40932005 +56.12903226 4.83870968 51.45296580 +56.12903226 5.16129032 53.62799552 +56.12903226 5.48387097 55.58793124 +56.12903226 5.80645161 57.32139748 +56.12903226 6.12903226 58.85847793 +56.12903226 6.45161290 60.20693213 +56.12903226 6.77419355 61.35519439 +56.12903226 7.09677419 62.27884289 +56.12903226 7.41935484 62.94847543 +56.12903226 7.74193548 63.33747330 +56.12903226 8.06451613 63.43446352 +56.12903226 8.38709677 63.43446352 +56.12903226 8.70967742 63.43446352 +56.12903226 9.03225806 63.43446352 +56.12903226 9.35483871 63.43446352 +56.12903226 9.67741935 63.43446352 +56.12903226 10.00000000 63.43446352 +58.70967742 0.00000000 39.86708229 +58.70967742 0.32258065 39.86708229 +58.70967742 0.64516129 39.86708229 +58.70967742 0.96774194 39.86708229 +58.70967742 1.29032258 39.86708229 +58.70967742 1.61290323 39.86708229 +58.70967742 1.93548387 39.86708229 +58.70967742 2.25806452 39.95851324 +58.70967742 2.58064516 40.32688461 +58.70967742 2.90322581 40.96728935 +58.70967742 3.22580645 41.86364269 +58.70967742 3.54838710 42.99862876 +58.70967742 3.87096774 44.35883597 +58.70967742 4.19354839 45.93926995 +58.70967742 4.51612903 47.74461410 +58.70967742 4.83870968 49.78326881 +58.70967742 5.16129032 51.98897073 +58.70967742 5.48387097 53.99267848 +58.70967742 5.80645161 55.75955980 +58.70967742 6.12903226 57.31349232 +58.70967742 6.45161290 58.66332782 +58.70967742 6.77419355 59.80184437 +58.70967742 7.09677419 60.71018916 +58.70967742 7.41935484 61.36458028 +58.70967742 7.74193548 61.74313870 +58.70967742 8.06451613 61.83734579 +58.70967742 8.38709677 61.83734579 +58.70967742 8.70967742 61.83734579 +58.70967742 9.03225806 61.83734579 +58.70967742 9.35483871 61.83734579 +58.70967742 9.67741935 61.83734579 +58.70967742 10.00000000 61.83734579 +61.29032258 0.00000000 38.16265421 +61.29032258 0.32258065 38.16265421 +61.29032258 0.64516129 38.16265421 +61.29032258 0.96774194 38.16265421 +61.29032258 1.29032258 38.16265421 +61.29032258 1.61290323 38.16265421 +61.29032258 1.93548387 38.16265421 +61.29032258 2.25806452 38.25686130 +61.29032258 2.58064516 38.63541972 +61.29032258 2.90322581 39.28981084 +61.29032258 3.22580645 40.19815563 +61.29032258 3.54838710 41.33667218 +61.29032258 3.87096774 42.68650768 +61.29032258 4.19354839 44.24044020 +61.29032258 4.51612903 46.00732152 +61.29032258 4.83870968 48.01102927 +61.29032258 5.16129032 50.21673119 +61.29032258 5.48387097 52.25538590 +61.29032258 5.80645161 54.06073005 +61.29032258 6.12903226 55.64116403 +61.29032258 6.45161290 57.00137124 +61.29032258 6.77419355 58.13635731 +61.29032258 7.09677419 59.03271065 +61.29032258 7.41935484 59.67311539 +61.29032258 7.74193548 60.04148676 +61.29032258 8.06451613 60.13291771 +61.29032258 8.38709677 60.13291771 +61.29032258 8.70967742 60.13291771 +61.29032258 9.03225806 60.13291771 +61.29032258 9.35483871 60.13291771 +61.29032258 9.67741935 60.13291771 +61.29032258 10.00000000 60.13291771 +63.87096774 0.00000000 36.56553648 +63.87096774 0.32258065 36.56553648 +63.87096774 0.64516129 36.56553648 +63.87096774 0.96774194 36.56553648 +63.87096774 1.29032258 36.56553648 +63.87096774 1.61290323 36.56553648 +63.87096774 1.93548387 36.56553648 +63.87096774 2.25806452 36.66252670 +63.87096774 2.58064516 37.05152457 +63.87096774 2.90322581 37.72115711 +63.87096774 3.22580645 38.64480561 +63.87096774 3.54838710 39.79306787 +63.87096774 3.87096774 41.14152207 +63.87096774 4.19354839 42.67860252 +63.87096774 4.51612903 44.41206876 +63.87096774 4.83870968 46.37200448 +63.87096774 5.16129032 48.54703420 +63.87096774 5.48387097 50.59067995 +63.87096774 5.80645161 52.41276756 +63.87096774 6.12903226 54.00497050 +63.87096774 6.45161290 55.36553332 +63.87096774 6.77419355 56.48998516 +63.87096774 7.09677419 57.36943212 +63.87096774 7.41935484 57.99260512 +63.87096774 7.74193548 58.34901690 +63.87096774 8.06451613 58.43724258 +63.87096774 8.38709677 58.43724258 +63.87096774 8.70967742 58.43724258 +63.87096774 9.03225806 58.43724258 +63.87096774 9.35483871 58.43724258 +63.87096774 9.67741935 58.43724258 +63.87096774 10.00000000 58.43724258 +66.45161290 0.00000000 35.06893377 +66.45161290 0.32258065 35.06893377 +66.45161290 0.64516129 35.06893377 +66.45161290 0.96774194 35.06893377 +66.45161290 1.29032258 35.06893377 +66.45161290 1.61290323 35.06893377 +66.45161290 1.93548387 35.06893377 +66.45161290 2.25806452 35.16875926 +66.45161290 2.58064516 35.56860675 +66.45161290 2.90322581 36.25493356 +66.45161290 3.22580645 37.19739004 +66.45161290 3.54838710 38.36197115 +66.45161290 3.87096774 39.71925276 +66.45161290 4.19354839 41.25276858 +66.45161290 4.51612903 42.96646218 +66.45161290 4.83870968 44.89015132 +66.45161290 5.16129032 47.02624491 +66.45161290 5.48387097 49.05956504 +66.45161290 5.80645161 50.88438262 +66.45161290 6.12903226 52.47791347 +66.45161290 6.45161290 53.83205062 +66.45161290 6.77419355 54.94217327 +66.45161290 7.09677419 55.80303789 +66.45161290 7.41935484 56.40855085 +66.45161290 7.74193548 56.75306433 +66.45161290 8.06451613 56.83813603 +66.45161290 8.38709677 56.83813603 +66.45161290 8.70967742 56.83813603 +66.45161290 9.03225806 56.83813603 +66.45161290 9.35483871 56.83813603 +66.45161290 9.67741935 56.83813603 +66.45161290 10.00000000 56.83813603 +69.03225806 0.00000000 33.66207871 +69.03225806 0.32258065 33.66207871 +69.03225806 0.64516129 33.66207871 +69.03225806 0.96774194 33.66207871 +69.03225806 1.29032258 33.66207871 +69.03225806 1.61290323 33.66207871 +69.03225806 1.93548387 33.66207871 +69.03225806 2.25806452 33.76473535 +69.03225806 2.58064516 34.17559058 +69.03225806 2.90322581 34.87940333 +69.03225806 3.22580645 35.84285886 +69.03225806 3.54838710 37.02821498 +69.03225806 3.87096774 38.40180120 +69.03225806 4.19354839 39.94255967 +69.03225806 4.51612903 41.64983853 +69.03225806 4.83870968 43.55004532 +69.03225806 5.16129032 45.65241174 +69.03225806 5.48387097 47.67336603 +69.03225806 5.80645161 49.49715979 +69.03225806 6.12903226 51.08925655 +69.03225806 6.45161290 52.43608988 +69.03225806 6.77419355 53.53276153 +69.03225806 7.09677419 54.37701465 +69.03225806 7.41935484 54.96705312 +69.03225806 7.74193548 55.30123970 +69.03225806 8.06451613 55.38358423 +69.03225806 8.38709677 55.38358423 +69.03225806 8.70967742 55.38358423 +69.03225806 9.03225806 55.38358423 +69.03225806 9.35483871 55.38358423 +69.03225806 9.67741935 55.38358423 +69.03225806 10.00000000 55.38358423 +71.61290323 0.00000000 32.34569896 +71.61290323 0.32258065 32.34569896 +71.61290323 0.64516129 32.34569896 +71.61290323 0.96774194 32.34569896 +71.61290323 1.29032258 32.34569896 +71.61290323 1.61290323 32.34569896 +71.61290323 1.93548387 32.34569896 +71.61290323 2.25806452 32.45115492 +71.61290323 2.58064516 32.87294015 +71.61290323 2.90322581 33.59448556 +71.61290323 3.22580645 34.58005519 +71.61290323 3.54838710 35.78885715 +71.61290323 3.87096774 37.18371458 +71.61290323 4.19354839 38.73963726 +71.61290323 4.51612903 40.45162982 +71.61290323 4.83870968 42.34171664 +71.61290323 5.16129032 44.42177339 +71.61290323 5.48387097 46.43593520 +71.61290323 5.80645161 48.26143221 +71.61290323 6.12903226 49.85433674 +71.61290323 6.45161290 51.19672094 +71.61290323 6.77419355 52.28355264 +71.61290323 7.09677419 53.11509304 +71.61290323 7.41935484 53.69309491 +71.61290323 7.74193548 54.01919665 +71.61290323 8.06451613 54.09940139 +71.61290323 8.38709677 54.09940139 +71.61290323 8.70967742 54.09940139 +71.61290323 9.03225806 54.09940139 +71.61290323 9.35483871 54.09940139 +71.61290323 9.67741935 54.09940139 +71.61290323 10.00000000 54.09940139 +74.19354839 0.00000000 31.13028290 +74.19354839 0.32258065 31.13028290 +74.19354839 0.64516129 31.13028290 +74.19354839 0.96774194 31.13028290 +74.19354839 1.29032258 31.13028290 +74.19354839 1.61290323 31.13028290 +74.19354839 1.93548387 31.13028290 +74.19354839 2.25806452 31.23844139 +74.19354839 2.58064516 31.67083705 +74.19354839 2.90322581 32.40981270 +74.19354839 3.22580645 33.41762065 +74.19354839 3.54838710 34.65096000 +74.19354839 3.87096774 36.06980539 +74.19354839 4.19354839 37.64598586 +74.19354839 4.51612903 39.37088558 +74.19354839 4.83870968 41.26241018 +74.19354839 5.16129032 43.33301921 +74.19354839 5.48387097 45.34901424 +74.19354839 5.80645161 47.18186973 +74.19354839 6.12903226 48.78011658 +74.19354839 6.45161290 50.12250467 +74.19354839 6.77419355 51.20411184 +74.19354839 7.09677419 52.02739239 +74.19354839 7.41935484 52.59704973 +74.19354839 7.74193548 52.91739752 +74.19354839 8.06451613 52.99606513 +74.19354839 8.38709677 52.99606513 +74.19354839 8.70967742 52.99606513 +74.19354839 9.03225806 52.99606513 +74.19354839 9.35483871 52.99606513 +74.19354839 9.67741935 52.99606513 +74.19354839 10.00000000 52.99606513 +76.77419355 0.00000000 30.03403844 +76.77419355 0.32258065 30.03403844 +76.77419355 0.64516129 30.03403844 +76.77419355 0.96774194 30.03403844 +76.77419355 1.29032258 30.03403844 +76.77419355 1.61290323 30.03403844 +76.77419355 1.93548387 30.03403844 +76.77419355 2.25806452 30.14473082 +76.77419355 2.58064516 30.58710905 +76.77419355 2.90322581 31.34260926 +76.77419355 3.22580645 32.37179603 +76.77419355 3.54838710 33.62930053 +76.77419355 3.87096774 35.07281797 +76.77419355 4.19354839 36.67171858 +76.77419355 4.51612903 38.41463069 +76.77419355 4.83870968 40.31617816 +76.77419355 5.16129032 42.38867037 +76.77419355 5.48387097 44.41484793 +76.77419355 5.80645161 46.26081490 +76.77419355 6.12903226 47.86900472 +76.77419355 6.45161290 49.21573858 +76.77419355 6.77419355 50.29644558 +76.77419355 7.09677419 51.11552429 +76.77419355 7.41935484 51.68014353 +76.77419355 7.74193548 51.99680388 +76.77419355 8.06451613 52.07446638 +76.77419355 8.38709677 52.07446638 +76.77419355 8.70967742 52.07446638 +76.77419355 9.03225806 52.07446638 +76.77419355 9.35483871 52.07446638 +76.77419355 9.67741935 52.07446638 +76.77419355 10.00000000 52.07446638 +79.35483871 0.00000000 29.08044448 +79.35483871 0.32258065 29.08044448 +79.35483871 0.64516129 29.08044448 +79.35483871 0.96774194 29.08044448 +79.35483871 1.29032258 29.08044448 +79.35483871 1.61290323 29.08044448 +79.35483871 1.93548387 29.08044448 +79.35483871 2.25806452 29.19341503 +79.35483871 2.58064516 29.64478759 +79.35483871 2.90322581 30.41524617 +79.35483871 3.22580645 31.46395299 +79.35483871 3.54838710 32.74385629 +79.35483871 3.87096774 34.21086664 +79.35483871 4.19354839 35.83253483 +79.35483871 4.51612903 37.59555433 +79.35483871 4.83870968 39.51224549 +79.35483871 5.16129032 41.59470153 +79.35483871 5.48387097 43.63697016 +79.35483871 5.80645161 45.49996876 +79.35483871 6.12903226 47.12124022 +79.35483871 6.45161290 48.47541169 +79.35483871 6.77419355 49.55843823 +79.35483871 7.09677419 50.37642610 +79.35483871 7.41935484 50.93858374 +79.35483871 7.74193548 51.25318028 +79.35483871 8.06451613 51.33025698 +79.35483871 8.38709677 51.33025698 +79.35483871 8.70967742 51.33025698 +79.35483871 9.03225806 51.33025698 +79.35483871 9.35483871 51.33025698 +79.35483871 9.67741935 51.33025698 +79.35483871 10.00000000 51.33025698 +81.93548387 0.00000000 28.29538700 +81.93548387 0.32258065 28.29538700 +81.93548387 0.64516129 28.29538700 +81.93548387 0.96774194 28.29538700 +81.93548387 1.29032258 28.29538700 +81.93548387 1.61290323 28.29538700 +81.93548387 1.93548387 28.29538700 +81.93548387 2.25806452 28.41028455 +81.93548387 2.58064516 28.86927041 +81.93548387 2.90322581 29.65243953 +81.93548387 3.22580645 30.71781642 +81.93548387 3.54838710 32.01703240 +81.93548387 3.87096774 33.50465222 +81.93548387 4.19354839 35.14694643 +81.93548387 4.51612903 36.92935764 +81.93548387 4.83870968 38.86277312 +81.93548387 5.16129032 40.95922876 +81.93548387 5.48387097 43.01992647 +81.93548387 5.80645161 44.90101116 +81.93548387 6.12903226 46.53623555 +81.93548387 6.45161290 47.89911456 +81.93548387 6.77419355 48.98620009 +81.93548387 7.09677419 49.80503500 +81.93548387 7.41935484 50.36645607 +81.93548387 7.74193548 50.68011518 +81.93548387 8.06451613 50.75690105 +81.93548387 8.38709677 50.75690105 +81.93548387 8.70967742 50.75690105 +81.93548387 9.03225806 50.75690105 +81.93548387 9.35483871 50.75690105 +81.93548387 9.67741935 50.75690105 +81.93548387 10.00000000 50.75690105 +84.51612903 0.00000000 27.70400708 +84.51612903 0.32258065 27.70400708 +84.51612903 0.64516129 27.70400708 +84.51612903 0.96774194 27.70400708 +84.51612903 1.29032258 27.70400708 +84.51612903 1.61290323 27.70400708 +84.51612903 1.93548387 27.70400708 +84.51612903 2.25806452 27.82038678 +84.51612903 2.58064516 28.28524058 +84.51612903 2.90322581 29.07819814 +84.51612903 3.22580645 30.15647910 +84.51612903 3.54838710 31.47072925 +84.51612903 3.87096774 32.97457239 +84.51612903 4.19354839 34.63344012 +84.51612903 4.51612903 36.43203948 +84.51612903 4.83870968 38.38047572 +84.51612903 5.16129032 40.49087046 +84.51612903 5.48387097 42.56852096 +84.51612903 5.80645161 44.46563907 +84.51612903 6.12903226 46.11324911 +84.51612903 6.45161290 47.48419380 +84.51612903 6.77419355 48.57557521 +84.51612903 7.09677419 49.39604331 +84.51612903 7.41935484 49.95763951 +84.51612903 7.74193548 50.27102141 +84.51612903 8.06451613 50.34769576 +84.51612903 8.38709677 50.34769576 +84.51612903 8.70967742 50.34769576 +84.51612903 9.03225806 50.34769576 +84.51612903 9.35483871 50.34769576 +84.51612903 9.67741935 50.34769576 +84.51612903 10.00000000 50.34769576 +87.09677419 0.00000000 27.32753868 +87.09677419 0.32258065 27.32753868 +87.09677419 0.64516129 27.32753868 +87.09677419 0.96774194 27.32753868 +87.09677419 1.29032258 27.32753868 +87.09677419 1.61290323 27.32753868 +87.09677419 1.93548387 27.32753868 +87.09677419 2.25806452 27.44487552 +87.09677419 2.58064516 27.91351918 +87.09677419 2.90322581 28.71281814 +87.09677419 3.22580645 29.79945105 +87.09677419 3.54838710 31.12347805 +87.09677419 3.87096774 32.63794195 +87.09677419 4.19354839 34.30780680 +87.09677419 4.51612903 36.11738582 +87.09677419 4.83870968 38.07643021 +87.09677419 5.16129032 40.19718575 +87.09677419 5.48387097 42.28697861 +87.09677419 5.80645161 44.19535993 +87.09677419 6.12903226 45.85167215 +87.09677419 6.45161290 47.22840378 +87.09677419 6.77419355 48.32305272 +87.09677419 7.09677419 49.14498635 +87.09677419 7.41935484 49.70700518 +87.09677419 7.74193548 50.02039298 +87.09677419 8.06451613 50.09704202 +87.09677419 8.38709677 50.09704202 +87.09677419 8.70967742 50.09704202 +87.09677419 9.03225806 50.09704202 +87.09677419 9.35483871 50.09704202 +87.09677419 9.67741935 50.09704202 +87.09677419 10.00000000 50.09704202 +89.67741935 0.00000000 27.18053151 +89.67741935 0.32258065 27.18053151 +89.67741935 0.64516129 27.18053151 +89.67741935 0.96774194 27.18053151 +89.67741935 1.29032258 27.18053151 +89.67741935 1.61290323 27.18053151 +89.67741935 1.93548387 27.18053151 +89.67741935 2.25806452 27.29824496 +89.67741935 2.58064516 27.76837995 +89.67741935 2.90322581 28.57017467 +89.67741935 3.22580645 29.66010334 +89.67741935 3.54838710 30.98799391 +89.67741935 3.87096774 32.50667083 +89.67741935 4.19354839 34.18091007 +89.67741935 4.51612903 35.99491498 +89.67741935 4.83870968 37.95831767 +89.67741935 5.16129032 40.08342816 +89.67741935 5.48387097 42.17824316 +89.67741935 5.80645161 44.09124153 +89.67741935 6.12903226 45.75112057 +89.67741935 6.45161290 47.13024605 +89.67741935 6.77419355 48.22628008 +89.67741935 7.09677419 49.04887301 +89.67741935 7.41935484 49.61112035 +89.67741935 7.74193548 49.92454762 +89.67741935 8.06451613 50.00119608 +89.67741935 8.38709677 50.00119608 +89.67741935 8.70967742 50.00119608 +89.67741935 9.03225806 50.00119608 +89.67741935 9.35483871 50.00119608 +89.67741935 9.67741935 50.00119608 +89.67741935 10.00000000 50.00119608 +92.25806452 0.00000000 27.17868597 +92.25806452 0.32258065 27.17868597 +92.25806452 0.64516129 27.17868597 +92.25806452 0.96774194 27.17868597 +92.25806452 1.29032258 27.17868597 +92.25806452 1.61290323 27.17868597 +92.25806452 1.93548387 27.17868597 +92.25806452 2.25806452 27.29640417 +92.25806452 2.58064516 27.76655792 +92.25806452 2.90322581 28.56838404 +92.25806452 3.22580645 29.65835418 +92.25806452 3.54838710 30.98629338 +92.25806452 3.87096774 32.50502336 +92.25806452 4.19354839 34.17931792 +92.25806452 4.51612903 35.99337888 +92.25806452 4.83870968 37.95683706 +92.25806452 5.16129032 40.08200332 +92.25806452 5.48387097 42.17688236 +92.25806452 5.80645161 44.08993946 +92.25806452 6.12903226 45.74986387 +92.25806452 6.45161290 47.12901987 +92.25806452 6.77419355 48.22507168 +92.25806452 7.09677419 49.04767319 +92.25806452 7.41935484 49.60992362 +92.25806452 7.74193548 49.92335151 +92.25806452 8.06451613 50.00000000 +92.25806452 8.38709677 50.00000000 +92.25806452 8.70967742 50.00000000 +92.25806452 9.03225806 50.00000000 +92.25806452 9.35483871 50.00000000 +92.25806452 9.67741935 50.00000000 +92.25806452 10.00000000 50.00000000 +94.83870968 0.00000000 27.17868597 +94.83870968 0.32258065 27.17868597 +94.83870968 0.64516129 27.17868597 +94.83870968 0.96774194 27.17868597 +94.83870968 1.29032258 27.17868597 +94.83870968 1.61290323 27.17868597 +94.83870968 1.93548387 27.17868597 +94.83870968 2.25806452 27.29640417 +94.83870968 2.58064516 27.76655792 +94.83870968 2.90322581 28.56838404 +94.83870968 3.22580645 29.65835418 +94.83870968 3.54838710 30.98629338 +94.83870968 3.87096774 32.50502336 +94.83870968 4.19354839 34.17931792 +94.83870968 4.51612903 35.99337888 +94.83870968 4.83870968 37.95683706 +94.83870968 5.16129032 40.08200332 +94.83870968 5.48387097 42.17688236 +94.83870968 5.80645161 44.08993946 +94.83870968 6.12903226 45.74986387 +94.83870968 6.45161290 47.12901987 +94.83870968 6.77419355 48.22507168 +94.83870968 7.09677419 49.04767319 +94.83870968 7.41935484 49.60992362 +94.83870968 7.74193548 49.92335151 +94.83870968 8.06451613 50.00000000 +94.83870968 8.38709677 50.00000000 +94.83870968 8.70967742 50.00000000 +94.83870968 9.03225806 50.00000000 +94.83870968 9.35483871 50.00000000 +94.83870968 9.67741935 50.00000000 +94.83870968 10.00000000 50.00000000 +97.41935484 0.00000000 27.17868597 +97.41935484 0.32258065 27.17868597 +97.41935484 0.64516129 27.17868597 +97.41935484 0.96774194 27.17868597 +97.41935484 1.29032258 27.17868597 +97.41935484 1.61290323 27.17868597 +97.41935484 1.93548387 27.17868597 +97.41935484 2.25806452 27.29640417 +97.41935484 2.58064516 27.76655792 +97.41935484 2.90322581 28.56838404 +97.41935484 3.22580645 29.65835418 +97.41935484 3.54838710 30.98629338 +97.41935484 3.87096774 32.50502336 +97.41935484 4.19354839 34.17931792 +97.41935484 4.51612903 35.99337888 +97.41935484 4.83870968 37.95683706 +97.41935484 5.16129032 40.08200332 +97.41935484 5.48387097 42.17688236 +97.41935484 5.80645161 44.08993946 +97.41935484 6.12903226 45.74986387 +97.41935484 6.45161290 47.12901987 +97.41935484 6.77419355 48.22507168 +97.41935484 7.09677419 49.04767319 +97.41935484 7.41935484 49.60992362 +97.41935484 7.74193548 49.92335151 +97.41935484 8.06451613 50.00000000 +97.41935484 8.38709677 50.00000000 +97.41935484 8.70967742 50.00000000 +97.41935484 9.03225806 50.00000000 +97.41935484 9.35483871 50.00000000 +97.41935484 9.67741935 50.00000000 +97.41935484 10.00000000 50.00000000 +100.00000000 0.00000000 27.17868597 +100.00000000 0.32258065 27.17868597 +100.00000000 0.64516129 27.17868597 +100.00000000 0.96774194 27.17868597 +100.00000000 1.29032258 27.17868597 +100.00000000 1.61290323 27.17868597 +100.00000000 1.93548387 27.17868597 +100.00000000 2.25806452 27.29640417 +100.00000000 2.58064516 27.76655792 +100.00000000 2.90322581 28.56838404 +100.00000000 3.22580645 29.65835418 +100.00000000 3.54838710 30.98629338 +100.00000000 3.87096774 32.50502336 +100.00000000 4.19354839 34.17931792 +100.00000000 4.51612903 35.99337888 +100.00000000 4.83870968 37.95683706 +100.00000000 5.16129032 40.08200332 +100.00000000 5.48387097 42.17688236 +100.00000000 5.80645161 44.08993946 +100.00000000 6.12903226 45.74986387 +100.00000000 6.45161290 47.12901987 +100.00000000 6.77419355 48.22507168 +100.00000000 7.09677419 49.04767319 +100.00000000 7.41935484 49.60992362 +100.00000000 7.74193548 49.92335151 +100.00000000 8.06451613 50.00000000 +100.00000000 8.38709677 50.00000000 +100.00000000 8.70967742 50.00000000 +100.00000000 9.03225806 50.00000000 +100.00000000 9.35483871 50.00000000 +100.00000000 9.67741935 50.00000000 +100.00000000 10.00000000 50.00000000 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 diff --git a/examples/mamdani/octave/investment_portfolio.java b/examples/mamdani/octave/investment_portfolio.java new file mode 100644 index 0000000..09084f1 --- /dev/null +++ b/examples/mamdani/octave/investment_portfolio.java @@ -0,0 +1,62 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class investment_portfolio{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Investment-Portfolio"); + +InputVariable inputVariable1 = new InputVariable(); +inputVariable1.setEnabled(true); +inputVariable1.setName("Age"); +inputVariable1.setRange(20.000, 100.000); +inputVariable1.addTerm(new ZShape("Young", 30.000, 90.000)); +inputVariable1.addTerm(new SShape("Old", 30.000, 90.000)); +engine.addInputVariable(inputVariable1); + +InputVariable inputVariable2 = new InputVariable(); +inputVariable2.setEnabled(true); +inputVariable2.setName("RiskTolerance"); +inputVariable2.setRange(0.000, 10.000); +inputVariable2.addTerm(new ZShape("Low", 2.000, 8.000)); +inputVariable2.addTerm(new SShape("High", 2.000, 8.000)); +engine.addInputVariable(inputVariable2); + +OutputVariable outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("PercentageInStocks"); +outputVariable.setRange(0.000, 100.000); +outputVariable.fuzzyOutput().setAccumulation(new EinsteinSum()); +outputVariable.setDefuzzifier(new Centroid(200)); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(new Gaussian("AboutFifteen", 15.000, 10.000)); +outputVariable.addTerm(new Gaussian("AboutFifty", 50.000, 10.000)); +outputVariable.addTerm(new Gaussian("AboutEightyFive", 85.000, 10.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new EinsteinProduct()); +ruleBlock.setDisjunction(new EinsteinSum()); +ruleBlock.setActivation(new EinsteinProduct()); +ruleBlock.addRule(Rule.parse("if Age is Young or RiskTolerance is High then PercentageInStocks is AboutEightyFive", engine)); +ruleBlock.addRule(Rule.parse("if Age is Old or RiskTolerance is Low then PercentageInStocks is AboutFifteen", engine)); +ruleBlock.addRule(Rule.parse("if Age is not extremely Old and RiskTolerance is not extremely Low then PercentageInStocks is AboutFifty with 0.500", engine)); +ruleBlock.addRule(Rule.parse("if Age is not extremely Young and RiskTolerance is not extremely High then PercentageInStocks is AboutFifty with 0.500", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/mamdani/octave/mamdani_tip_calculator.cpp b/examples/mamdani/octave/mamdani_tip_calculator.cpp new file mode 100644 index 0000000..cd57bf7 --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.cpp @@ -0,0 +1,66 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Mamdani-Tip-Calculator"); + +InputVariable* inputVariable1 = new InputVariable; +inputVariable1->setEnabled(true); +inputVariable1->setName("FoodQuality"); +inputVariable1->setRange(1.000, 10.000); +inputVariable1->addTerm(new Trapezoid("Bad", 0.000, 1.000, 3.000, 7.000)); +inputVariable1->addTerm(new Trapezoid("Good", 3.000, 7.000, 10.000, 11.000)); +engine->addInputVariable(inputVariable1); + +InputVariable* inputVariable2 = new InputVariable; +inputVariable2->setEnabled(true); +inputVariable2->setName("Service"); +inputVariable2->setRange(1.000, 10.000); +inputVariable2->addTerm(new Trapezoid("Bad", 0.000, 1.000, 3.000, 7.000)); +inputVariable2->addTerm(new Trapezoid("Good", 3.000, 7.000, 10.000, 11.000)); +engine->addInputVariable(inputVariable2); + +OutputVariable* outputVariable1 = new OutputVariable; +outputVariable1->setEnabled(true); +outputVariable1->setName("Tip"); +outputVariable1->setRange(0.000, 30.000); +outputVariable1->fuzzyOutput()->setAccumulation(new AlgebraicSum); +outputVariable1->setDefuzzifier(new Centroid(200)); +outputVariable1->setDefaultValue(fl::nan); +outputVariable1->setLockPreviousOutputValue(false); +outputVariable1->setLockOutputValueInRange(false); +outputVariable1->addTerm(new Gaussian("AboutTenPercent", 10.000, 2.000)); +outputVariable1->addTerm(new Gaussian("AboutFifteenPercent", 15.000, 2.000)); +outputVariable1->addTerm(new Gaussian("AboutTwentyPercent", 20.000, 2.000)); +engine->addOutputVariable(outputVariable1); + +OutputVariable* outputVariable2 = new OutputVariable; +outputVariable2->setEnabled(true); +outputVariable2->setName("CheckPlusTip"); +outputVariable2->setRange(1.000, 1.300); +outputVariable2->fuzzyOutput()->setAccumulation(new AlgebraicSum); +outputVariable2->setDefuzzifier(new Centroid(200)); +outputVariable2->setDefaultValue(fl::nan); +outputVariable2->setLockPreviousOutputValue(false); +outputVariable2->setLockOutputValueInRange(false); +outputVariable2->addTerm(new Gaussian("PlusAboutTenPercent", 1.100, 0.020)); +outputVariable2->addTerm(new Gaussian("PlusAboutFifteenPercent", 1.150, 0.020)); +outputVariable2->addTerm(new Gaussian("PlusAboutTwentyPercent", 1.200, 0.020)); +engine->addOutputVariable(outputVariable2); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new AlgebraicProduct); +ruleBlock->setDisjunction(new Maximum); +ruleBlock->setActivation(new Minimum); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Bad then Tip is AboutTenPercent and CheckPlusTip is PlusAboutTenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Good then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Bad then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Good then Tip is AboutTwentyPercent and CheckPlusTip is PlusAboutTwentyPercent", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/mamdani/octave/mamdani_tip_calculator.fcl b/examples/mamdani/octave/mamdani_tip_calculator.fcl new file mode 100644 index 0000000..3ea903a --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.fcl @@ -0,0 +1,55 @@ +FUNCTION_BLOCK Mamdani-Tip-Calculator + +VAR_INPUT + FoodQuality: REAL; + Service: REAL; +END_VAR + +VAR_OUTPUT + Tip: REAL; + CheckPlusTip: REAL; +END_VAR + +FUZZIFY FoodQuality + RANGE := (1.000 .. 10.000); + TERM Bad := Trapezoid 0.000 1.000 3.000 7.000; + TERM Good := Trapezoid 3.000 7.000 10.000 11.000; +END_FUZZIFY + +FUZZIFY Service + RANGE := (1.000 .. 10.000); + TERM Bad := Trapezoid 0.000 1.000 3.000 7.000; + TERM Good := Trapezoid 3.000 7.000 10.000 11.000; +END_FUZZIFY + +DEFUZZIFY Tip + RANGE := (0.000 .. 30.000); + TERM AboutTenPercent := Gaussian 10.000 2.000; + TERM AboutFifteenPercent := Gaussian 15.000 2.000; + TERM AboutTwentyPercent := Gaussian 20.000 2.000; + METHOD : COG; + ACCU : ASUM; + DEFAULT := nan; +END_DEFUZZIFY + +DEFUZZIFY CheckPlusTip + RANGE := (1.000 .. 1.300); + TERM PlusAboutTenPercent := Gaussian 1.100 0.020; + TERM PlusAboutFifteenPercent := Gaussian 1.150 0.020; + TERM PlusAboutTwentyPercent := Gaussian 1.200 0.020; + METHOD : COG; + ACCU : ASUM; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : PROD; + OR : MAX; + ACT : MIN; + RULE 1 : if FoodQuality is Bad and Service is Bad then Tip is AboutTenPercent and CheckPlusTip is PlusAboutTenPercent + RULE 2 : if FoodQuality is Bad and Service is Good then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent + RULE 3 : if FoodQuality is Good and Service is Bad then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent + RULE 4 : if FoodQuality is Good and Service is Good then Tip is AboutTwentyPercent and CheckPlusTip is PlusAboutTwentyPercent +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/mamdani/octave/mamdani_tip_calculator.fis b/examples/mamdani/octave/mamdani_tip_calculator.fis new file mode 100644 index 0000000..42cf1df --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.fis @@ -0,0 +1,47 @@ +[System] +Name='Mamdani-Tip-Calculator' +Type='mamdani' +NumInputs=2 +NumOutputs=2 +NumRules=4 +AndMethod='prod' +OrMethod='max' +ImpMethod='min' +AggMethod='sum' +DefuzzMethod='centroid' + +[Input1] +Name='FoodQuality' +Range=[1.000 10.000] +NumMFs=2 +MF1='Bad':'trapmf',[0.000 1.000 3.000 7.000] +MF2='Good':'trapmf',[3.000 7.000 10.000 11.000] + +[Input2] +Name='Service' +Range=[1.000 10.000] +NumMFs=2 +MF1='Bad':'trapmf',[0.000 1.000 3.000 7.000] +MF2='Good':'trapmf',[3.000 7.000 10.000 11.000] + +[Output1] +Name='Tip' +Range=[0.000 30.000] +NumMFs=3 +MF1='AboutTenPercent':'gaussmf',[2.000 10.000] +MF2='AboutFifteenPercent':'gaussmf',[2.000 15.000] +MF3='AboutTwentyPercent':'gaussmf',[2.000 20.000] + +[Output2] +Name='CheckPlusTip' +Range=[1.000 1.300] +NumMFs=3 +MF1='PlusAboutTenPercent':'gaussmf',[0.020 1.100] +MF2='PlusAboutFifteenPercent':'gaussmf',[0.020 1.150] +MF3='PlusAboutTwentyPercent':'gaussmf',[0.020 1.200] + +[Rules] +1.000 1.000 , 1.000 1.000 (1.000) : 1 +1.000 2.000 , 2.000 2.000 (1.000) : 1 +2.000 1.000 , 2.000 2.000 (1.000) : 1 +2.000 2.000 , 3.000 3.000 (1.000) : 1 diff --git a/examples/mamdani/octave/mamdani_tip_calculator.fld b/examples/mamdani/octave/mamdani_tip_calculator.fld new file mode 100644 index 0000000..9d54109 --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.fld @@ -0,0 +1,1026 @@ +#@Engine: Mamdani-Tip-Calculator; +#@InputVariable: FoodQuality; @InputVariable: Service; @OutputVariable: Tip; @OutputVariable: CheckPlusTip; +1.00000000 1.00000000 10.00000296 1.10000003 +1.00000000 1.29032258 10.00000296 1.10000003 +1.00000000 1.58064516 10.00000296 1.10000003 +1.00000000 1.87096774 10.00000296 1.10000003 +1.00000000 2.16129032 10.00000296 1.10000003 +1.00000000 2.45161290 10.00000296 1.10000003 +1.00000000 2.74193548 10.00000296 1.10000003 +1.00000000 3.03225806 10.10361204 1.10103612 +1.00000000 3.32258065 10.70846739 1.10708467 +1.00000000 3.61290323 11.13394556 1.11133946 +1.00000000 3.90322581 11.47924881 1.11479249 +1.00000000 4.19354839 11.77837052 1.11778371 +1.00000000 4.48387097 12.05010492 1.12050105 +1.00000000 4.77419355 12.30576276 1.12305763 +1.00000000 5.06451613 12.55517544 1.12555175 +1.00000000 5.35483871 12.80665986 1.12806660 +1.00000000 5.64516129 13.06809323 1.13068093 +1.00000000 5.93548387 13.35056196 1.13350562 +1.00000000 6.22580645 13.66657067 1.13666571 +1.00000000 6.51612903 14.04212491 1.14042125 +1.00000000 6.80645161 14.52492871 1.14524929 +1.00000000 7.09677419 15.00000000 1.15000000 +1.00000000 7.38709677 15.00000000 1.15000000 +1.00000000 7.67741935 15.00000000 1.15000000 +1.00000000 7.96774194 15.00000000 1.15000000 +1.00000000 8.25806452 15.00000000 1.15000000 +1.00000000 8.54838710 15.00000000 1.15000000 +1.00000000 8.83870968 15.00000000 1.15000000 +1.00000000 9.12903226 15.00000000 1.15000000 +1.00000000 9.41935484 15.00000000 1.15000000 +1.00000000 9.70967742 15.00000000 1.15000000 +1.00000000 10.00000000 15.00000000 1.15000000 +1.29032258 1.00000000 10.00000296 1.10000003 +1.29032258 1.29032258 10.00000296 1.10000003 +1.29032258 1.58064516 10.00000296 1.10000003 +1.29032258 1.87096774 10.00000296 1.10000003 +1.29032258 2.16129032 10.00000296 1.10000003 +1.29032258 2.45161290 10.00000296 1.10000003 +1.29032258 2.74193548 10.00000296 1.10000003 +1.29032258 3.03225806 10.10361204 1.10103612 +1.29032258 3.32258065 10.70846739 1.10708467 +1.29032258 3.61290323 11.13394556 1.11133946 +1.29032258 3.90322581 11.47924881 1.11479249 +1.29032258 4.19354839 11.77837052 1.11778371 +1.29032258 4.48387097 12.05010492 1.12050105 +1.29032258 4.77419355 12.30576276 1.12305763 +1.29032258 5.06451613 12.55517544 1.12555175 +1.29032258 5.35483871 12.80665986 1.12806660 +1.29032258 5.64516129 13.06809323 1.13068093 +1.29032258 5.93548387 13.35056196 1.13350562 +1.29032258 6.22580645 13.66657067 1.13666571 +1.29032258 6.51612903 14.04212491 1.14042125 +1.29032258 6.80645161 14.52492871 1.14524929 +1.29032258 7.09677419 15.00000000 1.15000000 +1.29032258 7.38709677 15.00000000 1.15000000 +1.29032258 7.67741935 15.00000000 1.15000000 +1.29032258 7.96774194 15.00000000 1.15000000 +1.29032258 8.25806452 15.00000000 1.15000000 +1.29032258 8.54838710 15.00000000 1.15000000 +1.29032258 8.83870968 15.00000000 1.15000000 +1.29032258 9.12903226 15.00000000 1.15000000 +1.29032258 9.41935484 15.00000000 1.15000000 +1.29032258 9.70967742 15.00000000 1.15000000 +1.29032258 10.00000000 15.00000000 1.15000000 +1.58064516 1.00000000 10.00000296 1.10000003 +1.58064516 1.29032258 10.00000296 1.10000003 +1.58064516 1.58064516 10.00000296 1.10000003 +1.58064516 1.87096774 10.00000296 1.10000003 +1.58064516 2.16129032 10.00000296 1.10000003 +1.58064516 2.45161290 10.00000296 1.10000003 +1.58064516 2.74193548 10.00000296 1.10000003 +1.58064516 3.03225806 10.10361204 1.10103612 +1.58064516 3.32258065 10.70846739 1.10708467 +1.58064516 3.61290323 11.13394556 1.11133946 +1.58064516 3.90322581 11.47924881 1.11479249 +1.58064516 4.19354839 11.77837052 1.11778371 +1.58064516 4.48387097 12.05010492 1.12050105 +1.58064516 4.77419355 12.30576276 1.12305763 +1.58064516 5.06451613 12.55517544 1.12555175 +1.58064516 5.35483871 12.80665986 1.12806660 +1.58064516 5.64516129 13.06809323 1.13068093 +1.58064516 5.93548387 13.35056196 1.13350562 +1.58064516 6.22580645 13.66657067 1.13666571 +1.58064516 6.51612903 14.04212491 1.14042125 +1.58064516 6.80645161 14.52492871 1.14524929 +1.58064516 7.09677419 15.00000000 1.15000000 +1.58064516 7.38709677 15.00000000 1.15000000 +1.58064516 7.67741935 15.00000000 1.15000000 +1.58064516 7.96774194 15.00000000 1.15000000 +1.58064516 8.25806452 15.00000000 1.15000000 +1.58064516 8.54838710 15.00000000 1.15000000 +1.58064516 8.83870968 15.00000000 1.15000000 +1.58064516 9.12903226 15.00000000 1.15000000 +1.58064516 9.41935484 15.00000000 1.15000000 +1.58064516 9.70967742 15.00000000 1.15000000 +1.58064516 10.00000000 15.00000000 1.15000000 +1.87096774 1.00000000 10.00000296 1.10000003 +1.87096774 1.29032258 10.00000296 1.10000003 +1.87096774 1.58064516 10.00000296 1.10000003 +1.87096774 1.87096774 10.00000296 1.10000003 +1.87096774 2.16129032 10.00000296 1.10000003 +1.87096774 2.45161290 10.00000296 1.10000003 +1.87096774 2.74193548 10.00000296 1.10000003 +1.87096774 3.03225806 10.10361204 1.10103612 +1.87096774 3.32258065 10.70846739 1.10708467 +1.87096774 3.61290323 11.13394556 1.11133946 +1.87096774 3.90322581 11.47924881 1.11479249 +1.87096774 4.19354839 11.77837052 1.11778371 +1.87096774 4.48387097 12.05010492 1.12050105 +1.87096774 4.77419355 12.30576276 1.12305763 +1.87096774 5.06451613 12.55517544 1.12555175 +1.87096774 5.35483871 12.80665986 1.12806660 +1.87096774 5.64516129 13.06809323 1.13068093 +1.87096774 5.93548387 13.35056196 1.13350562 +1.87096774 6.22580645 13.66657067 1.13666571 +1.87096774 6.51612903 14.04212491 1.14042125 +1.87096774 6.80645161 14.52492871 1.14524929 +1.87096774 7.09677419 15.00000000 1.15000000 +1.87096774 7.38709677 15.00000000 1.15000000 +1.87096774 7.67741935 15.00000000 1.15000000 +1.87096774 7.96774194 15.00000000 1.15000000 +1.87096774 8.25806452 15.00000000 1.15000000 +1.87096774 8.54838710 15.00000000 1.15000000 +1.87096774 8.83870968 15.00000000 1.15000000 +1.87096774 9.12903226 15.00000000 1.15000000 +1.87096774 9.41935484 15.00000000 1.15000000 +1.87096774 9.70967742 15.00000000 1.15000000 +1.87096774 10.00000000 15.00000000 1.15000000 +2.16129032 1.00000000 10.00000296 1.10000003 +2.16129032 1.29032258 10.00000296 1.10000003 +2.16129032 1.58064516 10.00000296 1.10000003 +2.16129032 1.87096774 10.00000296 1.10000003 +2.16129032 2.16129032 10.00000296 1.10000003 +2.16129032 2.45161290 10.00000296 1.10000003 +2.16129032 2.74193548 10.00000296 1.10000003 +2.16129032 3.03225806 10.10361204 1.10103612 +2.16129032 3.32258065 10.70846739 1.10708467 +2.16129032 3.61290323 11.13394556 1.11133946 +2.16129032 3.90322581 11.47924881 1.11479249 +2.16129032 4.19354839 11.77837052 1.11778371 +2.16129032 4.48387097 12.05010492 1.12050105 +2.16129032 4.77419355 12.30576276 1.12305763 +2.16129032 5.06451613 12.55517544 1.12555175 +2.16129032 5.35483871 12.80665986 1.12806660 +2.16129032 5.64516129 13.06809323 1.13068093 +2.16129032 5.93548387 13.35056196 1.13350562 +2.16129032 6.22580645 13.66657067 1.13666571 +2.16129032 6.51612903 14.04212491 1.14042125 +2.16129032 6.80645161 14.52492871 1.14524929 +2.16129032 7.09677419 15.00000000 1.15000000 +2.16129032 7.38709677 15.00000000 1.15000000 +2.16129032 7.67741935 15.00000000 1.15000000 +2.16129032 7.96774194 15.00000000 1.15000000 +2.16129032 8.25806452 15.00000000 1.15000000 +2.16129032 8.54838710 15.00000000 1.15000000 +2.16129032 8.83870968 15.00000000 1.15000000 +2.16129032 9.12903226 15.00000000 1.15000000 +2.16129032 9.41935484 15.00000000 1.15000000 +2.16129032 9.70967742 15.00000000 1.15000000 +2.16129032 10.00000000 15.00000000 1.15000000 +2.45161290 1.00000000 10.00000296 1.10000003 +2.45161290 1.29032258 10.00000296 1.10000003 +2.45161290 1.58064516 10.00000296 1.10000003 +2.45161290 1.87096774 10.00000296 1.10000003 +2.45161290 2.16129032 10.00000296 1.10000003 +2.45161290 2.45161290 10.00000296 1.10000003 +2.45161290 2.74193548 10.00000296 1.10000003 +2.45161290 3.03225806 10.10361204 1.10103612 +2.45161290 3.32258065 10.70846739 1.10708467 +2.45161290 3.61290323 11.13394556 1.11133946 +2.45161290 3.90322581 11.47924881 1.11479249 +2.45161290 4.19354839 11.77837052 1.11778371 +2.45161290 4.48387097 12.05010492 1.12050105 +2.45161290 4.77419355 12.30576276 1.12305763 +2.45161290 5.06451613 12.55517544 1.12555175 +2.45161290 5.35483871 12.80665986 1.12806660 +2.45161290 5.64516129 13.06809323 1.13068093 +2.45161290 5.93548387 13.35056196 1.13350562 +2.45161290 6.22580645 13.66657067 1.13666571 +2.45161290 6.51612903 14.04212491 1.14042125 +2.45161290 6.80645161 14.52492871 1.14524929 +2.45161290 7.09677419 15.00000000 1.15000000 +2.45161290 7.38709677 15.00000000 1.15000000 +2.45161290 7.67741935 15.00000000 1.15000000 +2.45161290 7.96774194 15.00000000 1.15000000 +2.45161290 8.25806452 15.00000000 1.15000000 +2.45161290 8.54838710 15.00000000 1.15000000 +2.45161290 8.83870968 15.00000000 1.15000000 +2.45161290 9.12903226 15.00000000 1.15000000 +2.45161290 9.41935484 15.00000000 1.15000000 +2.45161290 9.70967742 15.00000000 1.15000000 +2.45161290 10.00000000 15.00000000 1.15000000 +2.74193548 1.00000000 10.00000296 1.10000003 +2.74193548 1.29032258 10.00000296 1.10000003 +2.74193548 1.58064516 10.00000296 1.10000003 +2.74193548 1.87096774 10.00000296 1.10000003 +2.74193548 2.16129032 10.00000296 1.10000003 +2.74193548 2.45161290 10.00000296 1.10000003 +2.74193548 2.74193548 10.00000296 1.10000003 +2.74193548 3.03225806 10.10361204 1.10103612 +2.74193548 3.32258065 10.70846739 1.10708467 +2.74193548 3.61290323 11.13394556 1.11133946 +2.74193548 3.90322581 11.47924881 1.11479249 +2.74193548 4.19354839 11.77837052 1.11778371 +2.74193548 4.48387097 12.05010492 1.12050105 +2.74193548 4.77419355 12.30576276 1.12305763 +2.74193548 5.06451613 12.55517544 1.12555175 +2.74193548 5.35483871 12.80665986 1.12806660 +2.74193548 5.64516129 13.06809323 1.13068093 +2.74193548 5.93548387 13.35056196 1.13350562 +2.74193548 6.22580645 13.66657067 1.13666571 +2.74193548 6.51612903 14.04212491 1.14042125 +2.74193548 6.80645161 14.52492871 1.14524929 +2.74193548 7.09677419 15.00000000 1.15000000 +2.74193548 7.38709677 15.00000000 1.15000000 +2.74193548 7.67741935 15.00000000 1.15000000 +2.74193548 7.96774194 15.00000000 1.15000000 +2.74193548 8.25806452 15.00000000 1.15000000 +2.74193548 8.54838710 15.00000000 1.15000000 +2.74193548 8.83870968 15.00000000 1.15000000 +2.74193548 9.12903226 15.00000000 1.15000000 +2.74193548 9.41935484 15.00000000 1.15000000 +2.74193548 9.70967742 15.00000000 1.15000000 +2.74193548 10.00000000 15.00000000 1.15000000 +3.03225806 1.00000000 10.10361204 1.10103612 +3.03225806 1.29032258 10.10361204 1.10103612 +3.03225806 1.58064516 10.10361204 1.10103612 +3.03225806 1.87096774 10.10361204 1.10103612 +3.03225806 2.16129032 10.10361204 1.10103612 +3.03225806 2.45161290 10.10361204 1.10103612 +3.03225806 2.74193548 10.10361204 1.10103612 +3.03225806 3.03225806 10.20435811 1.10204358 +3.03225806 3.32258065 10.79601822 1.10796018 +3.03225806 3.61290323 11.21535874 1.11215359 +3.03225806 3.90322581 11.55784646 1.11557846 +3.03225806 4.19354839 11.85579036 1.11855790 +3.03225806 4.48387097 12.12724043 1.12127240 +3.03225806 4.77419355 12.38405258 1.12384053 +3.03225806 5.06451613 12.63499742 1.12634997 +3.03225806 5.35483871 12.88858563 1.12888586 +3.03225806 5.64516129 13.15323067 1.13153231 +3.03225806 5.93548387 13.43888099 1.13438881 +3.03225806 6.22580645 13.75926546 1.13759265 +3.03225806 6.51612903 14.13934485 1.14139345 +3.03225806 6.80645161 14.62674650 1.14626746 +3.03225806 7.09677419 15.10357489 1.15103575 +3.03225806 7.38709677 15.10357489 1.15103575 +3.03225806 7.67741935 15.10357489 1.15103575 +3.03225806 7.96774194 15.10357489 1.15103575 +3.03225806 8.25806452 15.10357489 1.15103575 +3.03225806 8.54838710 15.10357489 1.15103575 +3.03225806 8.83870968 15.10357489 1.15103575 +3.03225806 9.12903226 15.10357489 1.15103575 +3.03225806 9.41935484 15.10357489 1.15103575 +3.03225806 9.70967742 15.10357489 1.15103575 +3.03225806 10.00000000 15.10357489 1.15103575 +3.32258065 1.00000000 10.70846739 1.10708467 +3.32258065 1.29032258 10.70846739 1.10708467 +3.32258065 1.58064516 10.70846739 1.10708467 +3.32258065 1.87096774 10.70846739 1.10708467 +3.32258065 2.16129032 10.70846739 1.10708467 +3.32258065 2.45161290 10.70846739 1.10708467 +3.32258065 2.74193548 10.70846739 1.10708467 +3.32258065 3.03225806 10.79601822 1.10796018 +3.32258065 3.32258065 11.32266175 1.11322662 +3.32258065 3.61290323 11.71291316 1.11712913 +3.32258065 3.90322581 12.04341522 1.12043415 +3.32258065 4.19354839 12.33970940 1.12339709 +3.32258065 4.48387097 12.61573315 1.12615733 +3.32258065 4.77419355 12.88122387 1.12881224 +3.32258065 5.06451613 13.14483502 1.13144835 +3.32258065 5.35483871 13.41408247 1.13414082 +3.32258065 5.64516129 13.69613892 1.13696139 +3.32258065 5.93548387 14.00077769 1.14000778 +3.32258065 6.22580645 14.34225854 1.14342259 +3.32258065 6.51612903 14.73996425 1.14739964 +3.32258065 6.80645161 15.23916402 1.15239164 +3.32258065 7.09677419 15.70844950 1.15708449 +3.32258065 7.38709677 15.70844950 1.15708449 +3.32258065 7.67741935 15.70844950 1.15708449 +3.32258065 7.96774194 15.70844950 1.15708449 +3.32258065 8.25806452 15.70844950 1.15708449 +3.32258065 8.54838710 15.70844950 1.15708449 +3.32258065 8.83870968 15.70844950 1.15708449 +3.32258065 9.12903226 15.70844950 1.15708449 +3.32258065 9.41935484 15.70844950 1.15708449 +3.32258065 9.70967742 15.70844950 1.15708449 +3.32258065 10.00000000 15.70844950 1.15708449 +3.61290323 1.00000000 11.13394556 1.11133946 +3.61290323 1.29032258 11.13394556 1.11133946 +3.61290323 1.58064516 11.13394556 1.11133946 +3.61290323 1.87096774 11.13394556 1.11133946 +3.61290323 2.16129032 11.13394556 1.11133946 +3.61290323 2.45161290 11.13394556 1.11133946 +3.61290323 2.74193548 11.13394556 1.11133946 +3.61290323 3.03225806 11.21535874 1.11215359 +3.61290323 3.32258065 11.71291316 1.11712913 +3.61290323 3.61290323 12.09048689 1.12090487 +3.61290323 3.90322581 12.41795109 1.12417951 +3.61290323 4.19354839 12.71702039 1.12717020 +3.61290323 4.48387097 12.99911163 1.12999112 +3.61290323 4.77419355 13.27378061 1.13273781 +3.61290323 5.06451613 13.54771797 1.13547718 +3.61290323 5.35483871 13.82751223 1.13827512 +3.61290323 5.64516129 14.12018766 1.14120188 +3.61290323 5.93548387 14.43537168 1.14435372 +3.61290323 6.22580645 14.78491413 1.14784914 +3.61290323 6.51612903 15.18700487 1.15187005 +3.61290323 6.80645161 15.68154801 1.15681548 +3.61290323 7.09677419 16.13382374 1.16133824 +3.61290323 7.38709677 16.13382374 1.16133824 +3.61290323 7.67741935 16.13382374 1.16133824 +3.61290323 7.96774194 16.13382374 1.16133824 +3.61290323 8.25806452 16.13382374 1.16133824 +3.61290323 8.54838710 16.13382374 1.16133824 +3.61290323 8.83870968 16.13382374 1.16133824 +3.61290323 9.12903226 16.13382374 1.16133824 +3.61290323 9.41935484 16.13382374 1.16133824 +3.61290323 9.70967742 16.13382374 1.16133824 +3.61290323 10.00000000 16.13382374 1.16133824 +3.90322581 1.00000000 11.47924881 1.11479249 +3.90322581 1.29032258 11.47924881 1.11479249 +3.90322581 1.58064516 11.47924881 1.11479249 +3.90322581 1.87096774 11.47924881 1.11479249 +3.90322581 2.16129032 11.47924881 1.11479249 +3.90322581 2.45161290 11.47924881 1.11479249 +3.90322581 2.74193548 11.47924881 1.11479249 +3.90322581 3.03225806 11.55784646 1.11557846 +3.90322581 3.32258065 12.04341522 1.12043415 +3.90322581 3.61290323 12.41795109 1.12417951 +3.90322581 3.90322581 12.74629906 1.12746299 +3.90322581 4.19354839 13.04969635 1.13049696 +3.90322581 4.48387097 13.33797049 1.13337970 +3.90322581 4.77419355 13.62015959 1.13620160 +3.90322581 5.06451613 13.90194660 1.13901947 +3.90322581 5.35483871 14.18888316 1.14188883 +3.90322581 5.64516129 14.48954068 1.14489541 +3.90322581 5.93548387 14.80982202 1.14809822 +3.90322581 6.22580645 15.16074884 1.15160749 +3.90322581 6.51612903 15.56087142 1.15560871 +3.90322581 6.80645161 16.04390018 1.16043900 +3.90322581 7.09677419 16.47922769 1.16479228 +3.90322581 7.38709677 16.47922769 1.16479228 +3.90322581 7.67741935 16.47922769 1.16479228 +3.90322581 7.96774194 16.47922769 1.16479228 +3.90322581 8.25806452 16.47922769 1.16479228 +3.90322581 8.54838710 16.47922769 1.16479228 +3.90322581 8.83870968 16.47922769 1.16479228 +3.90322581 9.12903226 16.47922769 1.16479228 +3.90322581 9.41935484 16.47922769 1.16479228 +3.90322581 9.70967742 16.47922769 1.16479228 +3.90322581 10.00000000 16.47922769 1.16479228 +4.19354839 1.00000000 11.77837052 1.11778371 +4.19354839 1.29032258 11.77837052 1.11778371 +4.19354839 1.58064516 11.77837052 1.11778371 +4.19354839 1.87096774 11.77837052 1.11778371 +4.19354839 2.16129032 11.77837052 1.11778371 +4.19354839 2.45161290 11.77837052 1.11778371 +4.19354839 2.74193548 11.77837052 1.11778371 +4.19354839 3.03225806 11.85579036 1.11855790 +4.19354839 3.32258065 12.33970940 1.12339709 +4.19354839 3.61290323 12.71702039 1.12717020 +4.19354839 3.90322581 13.04969635 1.13049696 +4.19354839 4.19354839 13.35789542 1.13357895 +4.19354839 4.48387097 13.65214664 1.13652147 +4.19354839 4.77419355 13.94035790 1.13940358 +4.19354839 5.06451613 14.22819712 1.14228197 +4.19354839 5.35483871 14.52045260 1.14520453 +4.19354839 5.64516129 14.82442596 1.14824426 +4.19354839 5.93548387 15.14611095 1.15146111 +4.19354839 6.22580645 15.49584016 1.15495840 +4.19354839 6.51612903 15.88989883 1.15889899 +4.19354839 6.80645161 16.36071096 1.16360711 +4.19354839 7.09677419 16.77845274 1.16778453 +4.19354839 7.38709677 16.77845274 1.16778453 +4.19354839 7.67741935 16.77845274 1.16778453 +4.19354839 7.96774194 16.77845274 1.16778453 +4.19354839 8.25806452 16.77845274 1.16778453 +4.19354839 8.54838710 16.77845274 1.16778453 +4.19354839 8.83870968 16.77845274 1.16778453 +4.19354839 9.12903226 16.77845274 1.16778453 +4.19354839 9.41935484 16.77845274 1.16778453 +4.19354839 9.70967742 16.77845274 1.16778453 +4.19354839 10.00000000 16.77845274 1.16778453 +4.48387097 1.00000000 12.05010492 1.12050105 +4.48387097 1.29032258 12.05010492 1.12050105 +4.48387097 1.58064516 12.05010492 1.12050105 +4.48387097 1.87096774 12.05010492 1.12050105 +4.48387097 2.16129032 12.05010492 1.12050105 +4.48387097 2.45161290 12.05010492 1.12050105 +4.48387097 2.74193548 12.05010492 1.12050105 +4.48387097 3.03225806 12.12724043 1.12127240 +4.48387097 3.32258065 12.61573315 1.12615733 +4.48387097 3.61290323 12.99911163 1.12999112 +4.48387097 3.90322581 13.33797049 1.13337970 +4.48387097 4.19354839 13.65214664 1.13652147 +4.48387097 4.48387097 13.95167976 1.13951680 +4.48387097 4.77419355 14.24536545 1.14245365 +4.48387097 5.06451613 14.53742599 1.14537426 +4.48387097 5.35483871 14.83253803 1.14832538 +4.48387097 5.64516129 15.13703643 1.15137036 +4.48387097 5.93548387 15.45709896 1.15457099 +4.48387097 6.22580645 15.80333467 1.15803335 +4.48387097 6.51612903 16.18964589 1.16189646 +4.48387097 6.80645161 16.64650295 1.16646503 +4.48387097 7.09677419 17.05002382 1.17050024 +4.48387097 7.38709677 17.05002382 1.17050024 +4.48387097 7.67741935 17.05002382 1.17050024 +4.48387097 7.96774194 17.05002382 1.17050024 +4.48387097 8.25806452 17.05002382 1.17050024 +4.48387097 8.54838710 17.05002382 1.17050024 +4.48387097 8.83870968 17.05002382 1.17050024 +4.48387097 9.12903226 17.05002382 1.17050024 +4.48387097 9.41935484 17.05002382 1.17050024 +4.48387097 9.70967742 17.05002382 1.17050024 +4.48387097 10.00000000 17.05002382 1.17050024 +4.77419355 1.00000000 12.30576276 1.12305763 +4.77419355 1.29032258 12.30576276 1.12305763 +4.77419355 1.58064516 12.30576276 1.12305763 +4.77419355 1.87096774 12.30576276 1.12305763 +4.77419355 2.16129032 12.30576276 1.12305763 +4.77419355 2.45161290 12.30576276 1.12305763 +4.77419355 2.74193548 12.30576276 1.12305763 +4.77419355 3.03225806 12.38405258 1.12384053 +4.77419355 3.32258065 12.88122387 1.12881224 +4.77419355 3.61290323 13.27378061 1.13273781 +4.77419355 3.90322581 13.62015959 1.13620160 +4.77419355 4.19354839 13.94035790 1.13940358 +4.77419355 4.48387097 14.24536545 1.14245365 +4.77419355 4.77419355 14.54225355 1.14542254 +4.77419355 5.06451613 14.83618630 1.14836186 +4.77419355 5.35483871 15.13221695 1.15132217 +4.77419355 5.64516129 15.43597664 1.15435977 +4.77419355 5.93548387 15.75365034 1.15753650 +4.77419355 6.22580645 16.09439857 1.16094399 +4.77419355 6.51612903 16.47201646 1.16472016 +4.77419355 6.80645161 16.91532876 1.16915329 +4.77419355 7.09677419 17.30571907 1.17305719 +4.77419355 7.38709677 17.30571907 1.17305719 +4.77419355 7.67741935 17.30571907 1.17305719 +4.77419355 7.96774194 17.30571907 1.17305719 +4.77419355 8.25806452 17.30571907 1.17305719 +4.77419355 8.54838710 17.30571907 1.17305719 +4.77419355 8.83870968 17.30571907 1.17305719 +4.77419355 9.12903226 17.30571907 1.17305719 +4.77419355 9.41935484 17.30571907 1.17305719 +4.77419355 9.70967742 17.30571907 1.17305719 +4.77419355 10.00000000 17.30571907 1.17305719 +5.06451613 1.00000000 12.55517544 1.12555175 +5.06451613 1.29032258 12.55517544 1.12555175 +5.06451613 1.58064516 12.55517544 1.12555175 +5.06451613 1.87096774 12.55517544 1.12555175 +5.06451613 2.16129032 12.55517544 1.12555175 +5.06451613 2.45161290 12.55517544 1.12555175 +5.06451613 2.74193548 12.55517544 1.12555175 +5.06451613 3.03225806 12.63499742 1.12634997 +5.06451613 3.32258065 13.14483502 1.13144835 +5.06451613 3.61290323 13.54771797 1.13547718 +5.06451613 3.90322581 13.90194660 1.13901947 +5.06451613 4.19354839 14.22819712 1.14228197 +5.06451613 4.48387097 14.53742599 1.14537426 +5.06451613 4.77419355 14.83618630 1.14836186 +5.06451613 5.06451613 15.13082220 1.15130822 +5.06451613 5.35483871 15.42613481 1.15426135 +5.06451613 5.64516129 15.72760843 1.15727608 +5.06451613 5.93548387 16.04091807 1.16040918 +5.06451613 6.22580645 16.37497163 1.16374972 +5.06451613 6.51612903 16.74347970 1.16743480 +5.06451613 6.80645161 17.17503189 1.17175032 +5.06451613 7.09677419 17.55554644 1.17555546 +5.06451613 7.38709677 17.55554644 1.17555546 +5.06451613 7.67741935 17.55554644 1.17555546 +5.06451613 7.96774194 17.55554644 1.17555546 +5.06451613 8.25806452 17.55554644 1.17555546 +5.06451613 8.54838710 17.55554644 1.17555546 +5.06451613 8.83870968 17.55554644 1.17555546 +5.06451613 9.12903226 17.55554644 1.17555546 +5.06451613 9.41935484 17.55554644 1.17555546 +5.06451613 9.70967742 17.55554644 1.17555546 +5.06451613 10.00000000 17.55554644 1.17555546 +5.35483871 1.00000000 12.80665986 1.12806660 +5.35483871 1.29032258 12.80665986 1.12806660 +5.35483871 1.58064516 12.80665986 1.12806660 +5.35483871 1.87096774 12.80665986 1.12806660 +5.35483871 2.16129032 12.80665986 1.12806660 +5.35483871 2.45161290 12.80665986 1.12806660 +5.35483871 2.74193548 12.80665986 1.12806660 +5.35483871 3.03225806 12.88858563 1.12888586 +5.35483871 3.32258065 13.41408247 1.13414082 +5.35483871 3.61290323 13.82751223 1.13827512 +5.35483871 3.90322581 14.18888316 1.14188883 +5.35483871 4.19354839 14.52045260 1.14520453 +5.35483871 4.48387097 14.83253803 1.14832538 +5.35483871 4.77419355 15.13221695 1.15132217 +5.35483871 5.06451613 15.42613481 1.15426135 +5.35483871 5.35483871 15.71936190 1.15719362 +5.35483871 5.64516129 16.01779116 1.16017791 +5.35483871 5.93548387 16.32590382 1.16325904 +5.35483871 6.22580645 16.65335849 1.16653358 +5.35483871 6.51612903 17.01334871 1.17013349 +5.35483871 6.80645161 17.43409709 1.17434097 +5.35483871 7.09677419 17.80639865 1.17806399 +5.35483871 7.38709677 17.80639865 1.17806399 +5.35483871 7.67741935 17.80639865 1.17806399 +5.35483871 7.96774194 17.80639865 1.17806399 +5.35483871 8.25806452 17.80639865 1.17806399 +5.35483871 8.54838710 17.80639865 1.17806399 +5.35483871 8.83870968 17.80639865 1.17806399 +5.35483871 9.12903226 17.80639865 1.17806399 +5.35483871 9.41935484 17.80639865 1.17806399 +5.35483871 9.70967742 17.80639865 1.17806399 +5.35483871 10.00000000 17.80639865 1.17806399 +5.64516129 1.00000000 13.06809323 1.13068093 +5.64516129 1.29032258 13.06809323 1.13068093 +5.64516129 1.58064516 13.06809323 1.13068093 +5.64516129 1.87096774 13.06809323 1.13068093 +5.64516129 2.16129032 13.06809323 1.13068093 +5.64516129 2.45161290 13.06809323 1.13068093 +5.64516129 2.74193548 13.06809323 1.13068093 +5.64516129 3.03225806 13.15323067 1.13153231 +5.64516129 3.32258065 13.69613892 1.13696139 +5.64516129 3.61290323 14.12018766 1.14120188 +5.64516129 3.90322581 14.48954068 1.14489541 +5.64516129 4.19354839 14.82442596 1.14824426 +5.64516129 4.48387097 15.13703643 1.15137036 +5.64516129 4.77419355 15.43597664 1.15435977 +5.64516129 5.06451613 15.72760843 1.15727608 +5.64516129 5.35483871 16.01779116 1.16017791 +5.64516129 5.64516129 16.31159861 1.16311599 +5.64516129 5.93548387 16.61373257 1.16613733 +5.64516129 6.22580645 16.93399499 1.16933995 +5.64516129 6.51612903 17.28681907 1.17286819 +5.64516129 6.80645161 17.70002087 1.17700021 +5.64516129 7.09677419 18.06809818 1.18068098 +5.64516129 7.38709677 18.06809818 1.18068098 +5.64516129 7.67741935 18.06809818 1.18068098 +5.64516129 7.96774194 18.06809818 1.18068098 +5.64516129 8.25806452 18.06809818 1.18068098 +5.64516129 8.54838710 18.06809818 1.18068098 +5.64516129 8.83870968 18.06809818 1.18068098 +5.64516129 9.12903226 18.06809818 1.18068098 +5.64516129 9.41935484 18.06809818 1.18068098 +5.64516129 9.70967742 18.06809818 1.18068098 +5.64516129 10.00000000 18.06809818 1.18068098 +5.93548387 1.00000000 13.35056196 1.13350562 +5.93548387 1.29032258 13.35056196 1.13350562 +5.93548387 1.58064516 13.35056196 1.13350562 +5.93548387 1.87096774 13.35056196 1.13350562 +5.93548387 2.16129032 13.35056196 1.13350562 +5.93548387 2.45161290 13.35056196 1.13350562 +5.93548387 2.74193548 13.35056196 1.13350562 +5.93548387 3.03225806 13.43888099 1.13438881 +5.93548387 3.32258065 14.00077769 1.14000778 +5.93548387 3.61290323 14.43537168 1.14435372 +5.93548387 3.90322581 14.80982202 1.14809822 +5.93548387 4.19354839 15.14611095 1.15146111 +5.93548387 4.48387097 15.45709896 1.15457099 +5.93548387 4.77419355 15.75365034 1.15753650 +5.93548387 5.06451613 16.04091807 1.16040918 +5.93548387 5.35483871 16.32590382 1.16325904 +5.93548387 5.64516129 16.61373257 1.16613733 +5.93548387 5.93548387 16.91101948 1.16911019 +5.93548387 6.22580645 17.22556302 1.17225563 +5.93548387 6.51612903 17.57263541 1.17572635 +5.93548387 6.80645161 17.98210647 1.17982106 +5.93548387 7.09677419 18.34996260 1.18349963 +5.93548387 7.38709677 18.34996260 1.18349963 +5.93548387 7.67741935 18.34996260 1.18349963 +5.93548387 7.96774194 18.34996260 1.18349963 +5.93548387 8.25806452 18.34996260 1.18349963 +5.93548387 8.54838710 18.34996260 1.18349963 +5.93548387 8.83870968 18.34996260 1.18349963 +5.93548387 9.12903226 18.34996260 1.18349963 +5.93548387 9.41935484 18.34996260 1.18349963 +5.93548387 9.70967742 18.34996260 1.18349963 +5.93548387 10.00000000 18.34996260 1.18349963 +6.22580645 1.00000000 13.66657067 1.13666571 +6.22580645 1.29032258 13.66657067 1.13666571 +6.22580645 1.58064516 13.66657067 1.13666571 +6.22580645 1.87096774 13.66657067 1.13666571 +6.22580645 2.16129032 13.66657067 1.13666571 +6.22580645 2.45161290 13.66657067 1.13666571 +6.22580645 2.74193548 13.66657067 1.13666571 +6.22580645 3.03225806 13.75926546 1.13759265 +6.22580645 3.32258065 14.34225854 1.14342259 +6.22580645 3.61290323 14.78491413 1.14784914 +6.22580645 3.90322581 15.16074884 1.15160749 +6.22580645 4.19354839 15.49584016 1.15495840 +6.22580645 4.48387097 15.80333467 1.15803335 +6.22580645 4.77419355 16.09439857 1.16094399 +6.22580645 5.06451613 16.37497163 1.16374972 +6.22580645 5.35483871 16.65335849 1.16653358 +6.22580645 5.64516129 16.93399499 1.16933995 +6.22580645 5.93548387 17.22556302 1.17225563 +6.22580645 6.22580645 17.53669460 1.17536695 +6.22580645 6.51612903 17.88214034 1.17882140 +6.22580645 6.80645161 18.29211153 1.18292112 +6.22580645 7.09677419 18.66701771 1.18667018 +6.22580645 7.38709677 18.66701771 1.18667018 +6.22580645 7.67741935 18.66701771 1.18667018 +6.22580645 7.96774194 18.66701771 1.18667018 +6.22580645 8.25806452 18.66701771 1.18667018 +6.22580645 8.54838710 18.66701771 1.18667018 +6.22580645 8.83870968 18.66701771 1.18667018 +6.22580645 9.12903226 18.66701771 1.18667018 +6.22580645 9.41935484 18.66701771 1.18667018 +6.22580645 9.70967742 18.66701771 1.18667018 +6.22580645 10.00000000 18.66701771 1.18667018 +6.51612903 1.00000000 14.04212491 1.14042125 +6.51612903 1.29032258 14.04212491 1.14042125 +6.51612903 1.58064516 14.04212491 1.14042125 +6.51612903 1.87096774 14.04212491 1.14042125 +6.51612903 2.16129032 14.04212491 1.14042125 +6.51612903 2.45161290 14.04212491 1.14042125 +6.51612903 2.74193548 14.04212491 1.14042125 +6.51612903 3.03225806 14.13934485 1.14139345 +6.51612903 3.32258065 14.73996425 1.14739964 +6.51612903 3.61290323 15.18700487 1.15187005 +6.51612903 3.90322581 15.56087142 1.15560871 +6.51612903 4.19354839 15.88989883 1.15889899 +6.51612903 4.48387097 16.18964589 1.16189646 +6.51612903 4.77419355 16.47201646 1.16472016 +6.51612903 5.06451613 16.74347970 1.16743480 +6.51612903 5.35483871 17.01334871 1.17013349 +6.51612903 5.64516129 17.28681907 1.17286819 +6.51612903 5.93548387 17.57263541 1.17572635 +6.51612903 6.22580645 17.88214034 1.17882140 +6.51612903 6.51612903 18.22999587 1.18229996 +6.51612903 6.80645161 18.65108897 1.18651089 +6.51612903 7.09677419 19.04189908 1.19041899 +6.51612903 7.38709677 19.04189908 1.19041899 +6.51612903 7.67741935 19.04189908 1.19041899 +6.51612903 7.96774194 19.04189908 1.19041899 +6.51612903 8.25806452 19.04189908 1.19041899 +6.51612903 8.54838710 19.04189908 1.19041899 +6.51612903 8.83870968 19.04189908 1.19041899 +6.51612903 9.12903226 19.04189908 1.19041899 +6.51612903 9.41935484 19.04189908 1.19041899 +6.51612903 9.70967742 19.04189908 1.19041899 +6.51612903 10.00000000 19.04189908 1.19041899 +6.80645161 1.00000000 14.52492871 1.14524929 +6.80645161 1.29032258 14.52492871 1.14524929 +6.80645161 1.58064516 14.52492871 1.14524929 +6.80645161 1.87096774 14.52492871 1.14524929 +6.80645161 2.16129032 14.52492871 1.14524929 +6.80645161 2.45161290 14.52492871 1.14524929 +6.80645161 2.74193548 14.52492871 1.14524929 +6.80645161 3.03225806 14.62674650 1.14626746 +6.80645161 3.32258065 15.23916402 1.15239164 +6.80645161 3.61290323 15.68154801 1.15681548 +6.80645161 3.90322581 16.04390018 1.16043900 +6.80645161 4.19354839 16.36071096 1.16360711 +6.80645161 4.48387097 16.64650295 1.16646503 +6.80645161 4.77419355 16.91532876 1.16915329 +6.80645161 5.06451613 17.17503189 1.17175032 +6.80645161 5.35483871 17.43409709 1.17434097 +6.80645161 5.64516129 17.70002087 1.17700021 +6.80645161 5.93548387 17.98210647 1.17982106 +6.80645161 6.22580645 18.29211153 1.18292112 +6.80645161 6.51612903 18.65108897 1.18651089 +6.80645161 6.80645161 19.09888025 1.19098880 +6.80645161 7.09677419 19.52496415 1.19524964 +6.80645161 7.38709677 19.52496415 1.19524964 +6.80645161 7.67741935 19.52496415 1.19524964 +6.80645161 7.96774194 19.52496415 1.19524964 +6.80645161 8.25806452 19.52496415 1.19524964 +6.80645161 8.54838710 19.52496415 1.19524964 +6.80645161 8.83870968 19.52496415 1.19524964 +6.80645161 9.12903226 19.52496415 1.19524964 +6.80645161 9.41935484 19.52496415 1.19524964 +6.80645161 9.70967742 19.52496415 1.19524964 +6.80645161 10.00000000 19.52496415 1.19524964 +7.09677419 1.00000000 15.00000000 1.15000000 +7.09677419 1.29032258 15.00000000 1.15000000 +7.09677419 1.58064516 15.00000000 1.15000000 +7.09677419 1.87096774 15.00000000 1.15000000 +7.09677419 2.16129032 15.00000000 1.15000000 +7.09677419 2.45161290 15.00000000 1.15000000 +7.09677419 2.74193548 15.00000000 1.15000000 +7.09677419 3.03225806 15.10357489 1.15103575 +7.09677419 3.32258065 15.70844950 1.15708449 +7.09677419 3.61290323 16.13382374 1.16133824 +7.09677419 3.90322581 16.47922769 1.16479228 +7.09677419 4.19354839 16.77845274 1.16778453 +7.09677419 4.48387097 17.05002382 1.17050024 +7.09677419 4.77419355 17.30571907 1.17305719 +7.09677419 5.06451613 17.55554644 1.17555546 +7.09677419 5.35483871 17.80639865 1.17806399 +7.09677419 5.64516129 18.06809818 1.18068098 +7.09677419 5.93548387 18.34996260 1.18349963 +7.09677419 6.22580645 18.66701771 1.18667018 +7.09677419 6.51612903 19.04189908 1.19041899 +7.09677419 6.80645161 19.52496415 1.19524964 +7.09677419 7.09677419 19.99999704 1.19999997 +7.09677419 7.38709677 19.99999704 1.19999997 +7.09677419 7.67741935 19.99999704 1.19999997 +7.09677419 7.96774194 19.99999704 1.19999997 +7.09677419 8.25806452 19.99999704 1.19999997 +7.09677419 8.54838710 19.99999704 1.19999997 +7.09677419 8.83870968 19.99999704 1.19999997 +7.09677419 9.12903226 19.99999704 1.19999997 +7.09677419 9.41935484 19.99999704 1.19999997 +7.09677419 9.70967742 19.99999704 1.19999997 +7.09677419 10.00000000 19.99999704 1.19999997 +7.38709677 1.00000000 15.00000000 1.15000000 +7.38709677 1.29032258 15.00000000 1.15000000 +7.38709677 1.58064516 15.00000000 1.15000000 +7.38709677 1.87096774 15.00000000 1.15000000 +7.38709677 2.16129032 15.00000000 1.15000000 +7.38709677 2.45161290 15.00000000 1.15000000 +7.38709677 2.74193548 15.00000000 1.15000000 +7.38709677 3.03225806 15.10357489 1.15103575 +7.38709677 3.32258065 15.70844950 1.15708449 +7.38709677 3.61290323 16.13382374 1.16133824 +7.38709677 3.90322581 16.47922769 1.16479228 +7.38709677 4.19354839 16.77845274 1.16778453 +7.38709677 4.48387097 17.05002382 1.17050024 +7.38709677 4.77419355 17.30571907 1.17305719 +7.38709677 5.06451613 17.55554644 1.17555546 +7.38709677 5.35483871 17.80639865 1.17806399 +7.38709677 5.64516129 18.06809818 1.18068098 +7.38709677 5.93548387 18.34996260 1.18349963 +7.38709677 6.22580645 18.66701771 1.18667018 +7.38709677 6.51612903 19.04189908 1.19041899 +7.38709677 6.80645161 19.52496415 1.19524964 +7.38709677 7.09677419 19.99999704 1.19999997 +7.38709677 7.38709677 19.99999704 1.19999997 +7.38709677 7.67741935 19.99999704 1.19999997 +7.38709677 7.96774194 19.99999704 1.19999997 +7.38709677 8.25806452 19.99999704 1.19999997 +7.38709677 8.54838710 19.99999704 1.19999997 +7.38709677 8.83870968 19.99999704 1.19999997 +7.38709677 9.12903226 19.99999704 1.19999997 +7.38709677 9.41935484 19.99999704 1.19999997 +7.38709677 9.70967742 19.99999704 1.19999997 +7.38709677 10.00000000 19.99999704 1.19999997 +7.67741935 1.00000000 15.00000000 1.15000000 +7.67741935 1.29032258 15.00000000 1.15000000 +7.67741935 1.58064516 15.00000000 1.15000000 +7.67741935 1.87096774 15.00000000 1.15000000 +7.67741935 2.16129032 15.00000000 1.15000000 +7.67741935 2.45161290 15.00000000 1.15000000 +7.67741935 2.74193548 15.00000000 1.15000000 +7.67741935 3.03225806 15.10357489 1.15103575 +7.67741935 3.32258065 15.70844950 1.15708449 +7.67741935 3.61290323 16.13382374 1.16133824 +7.67741935 3.90322581 16.47922769 1.16479228 +7.67741935 4.19354839 16.77845274 1.16778453 +7.67741935 4.48387097 17.05002382 1.17050024 +7.67741935 4.77419355 17.30571907 1.17305719 +7.67741935 5.06451613 17.55554644 1.17555546 +7.67741935 5.35483871 17.80639865 1.17806399 +7.67741935 5.64516129 18.06809818 1.18068098 +7.67741935 5.93548387 18.34996260 1.18349963 +7.67741935 6.22580645 18.66701771 1.18667018 +7.67741935 6.51612903 19.04189908 1.19041899 +7.67741935 6.80645161 19.52496415 1.19524964 +7.67741935 7.09677419 19.99999704 1.19999997 +7.67741935 7.38709677 19.99999704 1.19999997 +7.67741935 7.67741935 19.99999704 1.19999997 +7.67741935 7.96774194 19.99999704 1.19999997 +7.67741935 8.25806452 19.99999704 1.19999997 +7.67741935 8.54838710 19.99999704 1.19999997 +7.67741935 8.83870968 19.99999704 1.19999997 +7.67741935 9.12903226 19.99999704 1.19999997 +7.67741935 9.41935484 19.99999704 1.19999997 +7.67741935 9.70967742 19.99999704 1.19999997 +7.67741935 10.00000000 19.99999704 1.19999997 +7.96774194 1.00000000 15.00000000 1.15000000 +7.96774194 1.29032258 15.00000000 1.15000000 +7.96774194 1.58064516 15.00000000 1.15000000 +7.96774194 1.87096774 15.00000000 1.15000000 +7.96774194 2.16129032 15.00000000 1.15000000 +7.96774194 2.45161290 15.00000000 1.15000000 +7.96774194 2.74193548 15.00000000 1.15000000 +7.96774194 3.03225806 15.10357489 1.15103575 +7.96774194 3.32258065 15.70844950 1.15708449 +7.96774194 3.61290323 16.13382374 1.16133824 +7.96774194 3.90322581 16.47922769 1.16479228 +7.96774194 4.19354839 16.77845274 1.16778453 +7.96774194 4.48387097 17.05002382 1.17050024 +7.96774194 4.77419355 17.30571907 1.17305719 +7.96774194 5.06451613 17.55554644 1.17555546 +7.96774194 5.35483871 17.80639865 1.17806399 +7.96774194 5.64516129 18.06809818 1.18068098 +7.96774194 5.93548387 18.34996260 1.18349963 +7.96774194 6.22580645 18.66701771 1.18667018 +7.96774194 6.51612903 19.04189908 1.19041899 +7.96774194 6.80645161 19.52496415 1.19524964 +7.96774194 7.09677419 19.99999704 1.19999997 +7.96774194 7.38709677 19.99999704 1.19999997 +7.96774194 7.67741935 19.99999704 1.19999997 +7.96774194 7.96774194 19.99999704 1.19999997 +7.96774194 8.25806452 19.99999704 1.19999997 +7.96774194 8.54838710 19.99999704 1.19999997 +7.96774194 8.83870968 19.99999704 1.19999997 +7.96774194 9.12903226 19.99999704 1.19999997 +7.96774194 9.41935484 19.99999704 1.19999997 +7.96774194 9.70967742 19.99999704 1.19999997 +7.96774194 10.00000000 19.99999704 1.19999997 +8.25806452 1.00000000 15.00000000 1.15000000 +8.25806452 1.29032258 15.00000000 1.15000000 +8.25806452 1.58064516 15.00000000 1.15000000 +8.25806452 1.87096774 15.00000000 1.15000000 +8.25806452 2.16129032 15.00000000 1.15000000 +8.25806452 2.45161290 15.00000000 1.15000000 +8.25806452 2.74193548 15.00000000 1.15000000 +8.25806452 3.03225806 15.10357489 1.15103575 +8.25806452 3.32258065 15.70844950 1.15708449 +8.25806452 3.61290323 16.13382374 1.16133824 +8.25806452 3.90322581 16.47922769 1.16479228 +8.25806452 4.19354839 16.77845274 1.16778453 +8.25806452 4.48387097 17.05002382 1.17050024 +8.25806452 4.77419355 17.30571907 1.17305719 +8.25806452 5.06451613 17.55554644 1.17555546 +8.25806452 5.35483871 17.80639865 1.17806399 +8.25806452 5.64516129 18.06809818 1.18068098 +8.25806452 5.93548387 18.34996260 1.18349963 +8.25806452 6.22580645 18.66701771 1.18667018 +8.25806452 6.51612903 19.04189908 1.19041899 +8.25806452 6.80645161 19.52496415 1.19524964 +8.25806452 7.09677419 19.99999704 1.19999997 +8.25806452 7.38709677 19.99999704 1.19999997 +8.25806452 7.67741935 19.99999704 1.19999997 +8.25806452 7.96774194 19.99999704 1.19999997 +8.25806452 8.25806452 19.99999704 1.19999997 +8.25806452 8.54838710 19.99999704 1.19999997 +8.25806452 8.83870968 19.99999704 1.19999997 +8.25806452 9.12903226 19.99999704 1.19999997 +8.25806452 9.41935484 19.99999704 1.19999997 +8.25806452 9.70967742 19.99999704 1.19999997 +8.25806452 10.00000000 19.99999704 1.19999997 +8.54838710 1.00000000 15.00000000 1.15000000 +8.54838710 1.29032258 15.00000000 1.15000000 +8.54838710 1.58064516 15.00000000 1.15000000 +8.54838710 1.87096774 15.00000000 1.15000000 +8.54838710 2.16129032 15.00000000 1.15000000 +8.54838710 2.45161290 15.00000000 1.15000000 +8.54838710 2.74193548 15.00000000 1.15000000 +8.54838710 3.03225806 15.10357489 1.15103575 +8.54838710 3.32258065 15.70844950 1.15708449 +8.54838710 3.61290323 16.13382374 1.16133824 +8.54838710 3.90322581 16.47922769 1.16479228 +8.54838710 4.19354839 16.77845274 1.16778453 +8.54838710 4.48387097 17.05002382 1.17050024 +8.54838710 4.77419355 17.30571907 1.17305719 +8.54838710 5.06451613 17.55554644 1.17555546 +8.54838710 5.35483871 17.80639865 1.17806399 +8.54838710 5.64516129 18.06809818 1.18068098 +8.54838710 5.93548387 18.34996260 1.18349963 +8.54838710 6.22580645 18.66701771 1.18667018 +8.54838710 6.51612903 19.04189908 1.19041899 +8.54838710 6.80645161 19.52496415 1.19524964 +8.54838710 7.09677419 19.99999704 1.19999997 +8.54838710 7.38709677 19.99999704 1.19999997 +8.54838710 7.67741935 19.99999704 1.19999997 +8.54838710 7.96774194 19.99999704 1.19999997 +8.54838710 8.25806452 19.99999704 1.19999997 +8.54838710 8.54838710 19.99999704 1.19999997 +8.54838710 8.83870968 19.99999704 1.19999997 +8.54838710 9.12903226 19.99999704 1.19999997 +8.54838710 9.41935484 19.99999704 1.19999997 +8.54838710 9.70967742 19.99999704 1.19999997 +8.54838710 10.00000000 19.99999704 1.19999997 +8.83870968 1.00000000 15.00000000 1.15000000 +8.83870968 1.29032258 15.00000000 1.15000000 +8.83870968 1.58064516 15.00000000 1.15000000 +8.83870968 1.87096774 15.00000000 1.15000000 +8.83870968 2.16129032 15.00000000 1.15000000 +8.83870968 2.45161290 15.00000000 1.15000000 +8.83870968 2.74193548 15.00000000 1.15000000 +8.83870968 3.03225806 15.10357489 1.15103575 +8.83870968 3.32258065 15.70844950 1.15708449 +8.83870968 3.61290323 16.13382374 1.16133824 +8.83870968 3.90322581 16.47922769 1.16479228 +8.83870968 4.19354839 16.77845274 1.16778453 +8.83870968 4.48387097 17.05002382 1.17050024 +8.83870968 4.77419355 17.30571907 1.17305719 +8.83870968 5.06451613 17.55554644 1.17555546 +8.83870968 5.35483871 17.80639865 1.17806399 +8.83870968 5.64516129 18.06809818 1.18068098 +8.83870968 5.93548387 18.34996260 1.18349963 +8.83870968 6.22580645 18.66701771 1.18667018 +8.83870968 6.51612903 19.04189908 1.19041899 +8.83870968 6.80645161 19.52496415 1.19524964 +8.83870968 7.09677419 19.99999704 1.19999997 +8.83870968 7.38709677 19.99999704 1.19999997 +8.83870968 7.67741935 19.99999704 1.19999997 +8.83870968 7.96774194 19.99999704 1.19999997 +8.83870968 8.25806452 19.99999704 1.19999997 +8.83870968 8.54838710 19.99999704 1.19999997 +8.83870968 8.83870968 19.99999704 1.19999997 +8.83870968 9.12903226 19.99999704 1.19999997 +8.83870968 9.41935484 19.99999704 1.19999997 +8.83870968 9.70967742 19.99999704 1.19999997 +8.83870968 10.00000000 19.99999704 1.19999997 +9.12903226 1.00000000 15.00000000 1.15000000 +9.12903226 1.29032258 15.00000000 1.15000000 +9.12903226 1.58064516 15.00000000 1.15000000 +9.12903226 1.87096774 15.00000000 1.15000000 +9.12903226 2.16129032 15.00000000 1.15000000 +9.12903226 2.45161290 15.00000000 1.15000000 +9.12903226 2.74193548 15.00000000 1.15000000 +9.12903226 3.03225806 15.10357489 1.15103575 +9.12903226 3.32258065 15.70844950 1.15708449 +9.12903226 3.61290323 16.13382374 1.16133824 +9.12903226 3.90322581 16.47922769 1.16479228 +9.12903226 4.19354839 16.77845274 1.16778453 +9.12903226 4.48387097 17.05002382 1.17050024 +9.12903226 4.77419355 17.30571907 1.17305719 +9.12903226 5.06451613 17.55554644 1.17555546 +9.12903226 5.35483871 17.80639865 1.17806399 +9.12903226 5.64516129 18.06809818 1.18068098 +9.12903226 5.93548387 18.34996260 1.18349963 +9.12903226 6.22580645 18.66701771 1.18667018 +9.12903226 6.51612903 19.04189908 1.19041899 +9.12903226 6.80645161 19.52496415 1.19524964 +9.12903226 7.09677419 19.99999704 1.19999997 +9.12903226 7.38709677 19.99999704 1.19999997 +9.12903226 7.67741935 19.99999704 1.19999997 +9.12903226 7.96774194 19.99999704 1.19999997 +9.12903226 8.25806452 19.99999704 1.19999997 +9.12903226 8.54838710 19.99999704 1.19999997 +9.12903226 8.83870968 19.99999704 1.19999997 +9.12903226 9.12903226 19.99999704 1.19999997 +9.12903226 9.41935484 19.99999704 1.19999997 +9.12903226 9.70967742 19.99999704 1.19999997 +9.12903226 10.00000000 19.99999704 1.19999997 +9.41935484 1.00000000 15.00000000 1.15000000 +9.41935484 1.29032258 15.00000000 1.15000000 +9.41935484 1.58064516 15.00000000 1.15000000 +9.41935484 1.87096774 15.00000000 1.15000000 +9.41935484 2.16129032 15.00000000 1.15000000 +9.41935484 2.45161290 15.00000000 1.15000000 +9.41935484 2.74193548 15.00000000 1.15000000 +9.41935484 3.03225806 15.10357489 1.15103575 +9.41935484 3.32258065 15.70844950 1.15708449 +9.41935484 3.61290323 16.13382374 1.16133824 +9.41935484 3.90322581 16.47922769 1.16479228 +9.41935484 4.19354839 16.77845274 1.16778453 +9.41935484 4.48387097 17.05002382 1.17050024 +9.41935484 4.77419355 17.30571907 1.17305719 +9.41935484 5.06451613 17.55554644 1.17555546 +9.41935484 5.35483871 17.80639865 1.17806399 +9.41935484 5.64516129 18.06809818 1.18068098 +9.41935484 5.93548387 18.34996260 1.18349963 +9.41935484 6.22580645 18.66701771 1.18667018 +9.41935484 6.51612903 19.04189908 1.19041899 +9.41935484 6.80645161 19.52496415 1.19524964 +9.41935484 7.09677419 19.99999704 1.19999997 +9.41935484 7.38709677 19.99999704 1.19999997 +9.41935484 7.67741935 19.99999704 1.19999997 +9.41935484 7.96774194 19.99999704 1.19999997 +9.41935484 8.25806452 19.99999704 1.19999997 +9.41935484 8.54838710 19.99999704 1.19999997 +9.41935484 8.83870968 19.99999704 1.19999997 +9.41935484 9.12903226 19.99999704 1.19999997 +9.41935484 9.41935484 19.99999704 1.19999997 +9.41935484 9.70967742 19.99999704 1.19999997 +9.41935484 10.00000000 19.99999704 1.19999997 +9.70967742 1.00000000 15.00000000 1.15000000 +9.70967742 1.29032258 15.00000000 1.15000000 +9.70967742 1.58064516 15.00000000 1.15000000 +9.70967742 1.87096774 15.00000000 1.15000000 +9.70967742 2.16129032 15.00000000 1.15000000 +9.70967742 2.45161290 15.00000000 1.15000000 +9.70967742 2.74193548 15.00000000 1.15000000 +9.70967742 3.03225806 15.10357489 1.15103575 +9.70967742 3.32258065 15.70844950 1.15708449 +9.70967742 3.61290323 16.13382374 1.16133824 +9.70967742 3.90322581 16.47922769 1.16479228 +9.70967742 4.19354839 16.77845274 1.16778453 +9.70967742 4.48387097 17.05002382 1.17050024 +9.70967742 4.77419355 17.30571907 1.17305719 +9.70967742 5.06451613 17.55554644 1.17555546 +9.70967742 5.35483871 17.80639865 1.17806399 +9.70967742 5.64516129 18.06809818 1.18068098 +9.70967742 5.93548387 18.34996260 1.18349963 +9.70967742 6.22580645 18.66701771 1.18667018 +9.70967742 6.51612903 19.04189908 1.19041899 +9.70967742 6.80645161 19.52496415 1.19524964 +9.70967742 7.09677419 19.99999704 1.19999997 +9.70967742 7.38709677 19.99999704 1.19999997 +9.70967742 7.67741935 19.99999704 1.19999997 +9.70967742 7.96774194 19.99999704 1.19999997 +9.70967742 8.25806452 19.99999704 1.19999997 +9.70967742 8.54838710 19.99999704 1.19999997 +9.70967742 8.83870968 19.99999704 1.19999997 +9.70967742 9.12903226 19.99999704 1.19999997 +9.70967742 9.41935484 19.99999704 1.19999997 +9.70967742 9.70967742 19.99999704 1.19999997 +9.70967742 10.00000000 19.99999704 1.19999997 +10.00000000 1.00000000 15.00000000 1.15000000 +10.00000000 1.29032258 15.00000000 1.15000000 +10.00000000 1.58064516 15.00000000 1.15000000 +10.00000000 1.87096774 15.00000000 1.15000000 +10.00000000 2.16129032 15.00000000 1.15000000 +10.00000000 2.45161290 15.00000000 1.15000000 +10.00000000 2.74193548 15.00000000 1.15000000 +10.00000000 3.03225806 15.10357489 1.15103575 +10.00000000 3.32258065 15.70844950 1.15708449 +10.00000000 3.61290323 16.13382374 1.16133824 +10.00000000 3.90322581 16.47922769 1.16479228 +10.00000000 4.19354839 16.77845274 1.16778453 +10.00000000 4.48387097 17.05002382 1.17050024 +10.00000000 4.77419355 17.30571907 1.17305719 +10.00000000 5.06451613 17.55554644 1.17555546 +10.00000000 5.35483871 17.80639865 1.17806399 +10.00000000 5.64516129 18.06809818 1.18068098 +10.00000000 5.93548387 18.34996260 1.18349963 +10.00000000 6.22580645 18.66701771 1.18667018 +10.00000000 6.51612903 19.04189908 1.19041899 +10.00000000 6.80645161 19.52496415 1.19524964 +10.00000000 7.09677419 19.99999704 1.19999997 +10.00000000 7.38709677 19.99999704 1.19999997 +10.00000000 7.67741935 19.99999704 1.19999997 +10.00000000 7.96774194 19.99999704 1.19999997 +10.00000000 8.25806452 19.99999704 1.19999997 +10.00000000 8.54838710 19.99999704 1.19999997 +10.00000000 8.83870968 19.99999704 1.19999997 +10.00000000 9.12903226 19.99999704 1.19999997 +10.00000000 9.41935484 19.99999704 1.19999997 +10.00000000 9.70967742 19.99999704 1.19999997 +10.00000000 10.00000000 19.99999704 1.19999997 diff --git a/examples/mamdani/octave/mamdani_tip_calculator.fll b/examples/mamdani/octave/mamdani_tip_calculator.fll new file mode 100644 index 0000000..b6c1920 --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.fll @@ -0,0 +1,42 @@ +Engine: Mamdani-Tip-Calculator +InputVariable: FoodQuality + enabled: true + range: 1.000 10.000 + term: Bad Trapezoid 0.000 1.000 3.000 7.000 + term: Good Trapezoid 3.000 7.000 10.000 11.000 +InputVariable: Service + enabled: true + range: 1.000 10.000 + term: Bad Trapezoid 0.000 1.000 3.000 7.000 + term: Good Trapezoid 3.000 7.000 10.000 11.000 +OutputVariable: Tip + enabled: true + range: 0.000 30.000 + accumulation: AlgebraicSum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: AboutTenPercent Gaussian 10.000 2.000 + term: AboutFifteenPercent Gaussian 15.000 2.000 + term: AboutTwentyPercent Gaussian 20.000 2.000 +OutputVariable: CheckPlusTip + enabled: true + range: 1.000 1.300 + accumulation: AlgebraicSum + defuzzifier: Centroid 200 + default: nan + lock-previous: false + lock-range: false + term: PlusAboutTenPercent Gaussian 1.100 0.020 + term: PlusAboutFifteenPercent Gaussian 1.150 0.020 + term: PlusAboutTwentyPercent Gaussian 1.200 0.020 +RuleBlock: + enabled: true + conjunction: AlgebraicProduct + disjunction: Maximum + activation: Minimum + rule: if FoodQuality is Bad and Service is Bad then Tip is AboutTenPercent and CheckPlusTip is PlusAboutTenPercent + rule: if FoodQuality is Bad and Service is Good then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent + rule: if FoodQuality is Good and Service is Bad then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent + rule: if FoodQuality is Good and Service is Good then Tip is AboutTwentyPercent and CheckPlusTip is PlusAboutTwentyPercent
\ No newline at end of file diff --git a/examples/mamdani/octave/mamdani_tip_calculator.java b/examples/mamdani/octave/mamdani_tip_calculator.java new file mode 100644 index 0000000..bea319b --- /dev/null +++ b/examples/mamdani/octave/mamdani_tip_calculator.java @@ -0,0 +1,76 @@ +import com.fuzzylite.*; +import com.fuzzylite.defuzzifier.*; +import com.fuzzylite.factory.*; +import com.fuzzylite.hedge.*; +import com.fuzzylite.imex.*; +import com.fuzzylite.norm.*; +import com.fuzzylite.norm.s.*; +import com.fuzzylite.norm.t.*; +import com.fuzzylite.rule.*; +import com.fuzzylite.term.*; +import com.fuzzylite.variable.*; + +public class mamdani_tip_calculator{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Mamdani-Tip-Calculator"); + +InputVariable inputVariable1 = new InputVariable(); +inputVariable1.setEnabled(true); +inputVariable1.setName("FoodQuality"); +inputVariable1.setRange(1.000, 10.000); +inputVariable1.addTerm(new Trapezoid("Bad", 0.000, 1.000, 3.000, 7.000)); +inputVariable1.addTerm(new Trapezoid("Good", 3.000, 7.000, 10.000, 11.000)); +engine.addInputVariable(inputVariable1); + +InputVariable inputVariable2 = new InputVariable(); +inputVariable2.setEnabled(true); +inputVariable2.setName("Service"); +inputVariable2.setRange(1.000, 10.000); +inputVariable2.addTerm(new Trapezoid("Bad", 0.000, 1.000, 3.000, 7.000)); +inputVariable2.addTerm(new Trapezoid("Good", 3.000, 7.000, 10.000, 11.000)); +engine.addInputVariable(inputVariable2); + +OutputVariable outputVariable1 = new OutputVariable(); +outputVariable1.setEnabled(true); +outputVariable1.setName("Tip"); +outputVariable1.setRange(0.000, 30.000); +outputVariable1.fuzzyOutput().setAccumulation(new AlgebraicSum()); +outputVariable1.setDefuzzifier(new Centroid(200)); +outputVariable1.setDefaultValue(Double.NaN); +outputVariable1.setLockPreviousOutputValue(false); +outputVariable1.setLockOutputValueInRange(false); +outputVariable1.addTerm(new Gaussian("AboutTenPercent", 10.000, 2.000)); +outputVariable1.addTerm(new Gaussian("AboutFifteenPercent", 15.000, 2.000)); +outputVariable1.addTerm(new Gaussian("AboutTwentyPercent", 20.000, 2.000)); +engine.addOutputVariable(outputVariable1); + +OutputVariable outputVariable2 = new OutputVariable(); +outputVariable2.setEnabled(true); +outputVariable2.setName("CheckPlusTip"); +outputVariable2.setRange(1.000, 1.300); +outputVariable2.fuzzyOutput().setAccumulation(new AlgebraicSum()); +outputVariable2.setDefuzzifier(new Centroid(200)); +outputVariable2.setDefaultValue(Double.NaN); +outputVariable2.setLockPreviousOutputValue(false); +outputVariable2.setLockOutputValueInRange(false); +outputVariable2.addTerm(new Gaussian("PlusAboutTenPercent", 1.100, 0.020)); +outputVariable2.addTerm(new Gaussian("PlusAboutFifteenPercent", 1.150, 0.020)); +outputVariable2.addTerm(new Gaussian("PlusAboutTwentyPercent", 1.200, 0.020)); +engine.addOutputVariable(outputVariable2); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new AlgebraicProduct()); +ruleBlock.setDisjunction(new Maximum()); +ruleBlock.setActivation(new Minimum()); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Bad then Tip is AboutTenPercent and CheckPlusTip is PlusAboutTenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Good then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Bad then Tip is AboutFifteenPercent and CheckPlusTip is PlusAboutFifteenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Good then Tip is AboutTwentyPercent and CheckPlusTip is PlusAboutTwentyPercent", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} |