diff options
Diffstat (limited to 'examples/takagi-sugeno')
38 files changed, 8624 insertions, 0 deletions
diff --git a/examples/takagi-sugeno/SimpleDimmer.cpp b/examples/takagi-sugeno/SimpleDimmer.cpp new file mode 100644 index 0000000..bd7e6ee --- /dev/null +++ b/examples/takagi-sugeno/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(fl::null); +outputVariable->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(new Constant("LOW", 0.250)); +outputVariable->addTerm(new Constant("MEDIUM", 0.500)); +outputVariable->addTerm(new Constant("HIGH", 0.750)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(fl::null); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +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/takagi-sugeno/SimpleDimmer.fcl b/examples/takagi-sugeno/SimpleDimmer.fcl new file mode 100644 index 0000000..65ccd94 --- /dev/null +++ b/examples/takagi-sugeno/SimpleDimmer.fcl @@ -0,0 +1,33 @@ +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 := 0.250; + TERM MEDIUM := 0.500; + TERM HIGH := 0.750; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + 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/takagi-sugeno/SimpleDimmer.fis b/examples/takagi-sugeno/SimpleDimmer.fis new file mode 100644 index 0000000..9557f61 --- /dev/null +++ b/examples/takagi-sugeno/SimpleDimmer.fis @@ -0,0 +1,32 @@ +[System] +Name='simple-dimmer' +Type='sugeno' +NumInputs=1 +NumOutputs=1 +NumRules=3 +AndMethod='' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[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':'constant',[0.250] +MF2='MEDIUM':'constant',[0.500] +MF3='HIGH':'constant',[0.750] + +[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/takagi-sugeno/SimpleDimmer.fld b/examples/takagi-sugeno/SimpleDimmer.fld new file mode 100644 index 0000000..6efef0a --- /dev/null +++ b/examples/takagi-sugeno/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.74975562 +0.25122190 0.74877810 +0.25219941 0.74780059 +0.25317693 0.74682307 +0.25415445 0.74584555 +0.25513196 0.74486804 +0.25610948 0.74389052 +0.25708700 0.74291300 +0.25806452 0.74193548 +0.25904203 0.74095797 +0.26001955 0.73998045 +0.26099707 0.73900293 +0.26197458 0.73802542 +0.26295210 0.73704790 +0.26392962 0.73607038 +0.26490714 0.73509286 +0.26588465 0.73411535 +0.26686217 0.73313783 +0.26783969 0.73216031 +0.26881720 0.73118280 +0.26979472 0.73020528 +0.27077224 0.72922776 +0.27174976 0.72825024 +0.27272727 0.72727273 +0.27370479 0.72629521 +0.27468231 0.72531769 +0.27565982 0.72434018 +0.27663734 0.72336266 +0.27761486 0.72238514 +0.27859238 0.72140762 +0.27956989 0.72043011 +0.28054741 0.71945259 +0.28152493 0.71847507 +0.28250244 0.71749756 +0.28347996 0.71652004 +0.28445748 0.71554252 +0.28543500 0.71456500 +0.28641251 0.71358749 +0.28739003 0.71260997 +0.28836755 0.71163245 +0.28934506 0.71065494 +0.29032258 0.70967742 +0.29130010 0.70869990 +0.29227761 0.70772239 +0.29325513 0.70674487 +0.29423265 0.70576735 +0.29521017 0.70478983 +0.29618768 0.70381232 +0.29716520 0.70283480 +0.29814272 0.70185728 +0.29912023 0.70087977 +0.30009775 0.69990225 +0.30107527 0.69892473 +0.30205279 0.69794721 +0.30303030 0.69696970 +0.30400782 0.69599218 +0.30498534 0.69501466 +0.30596285 0.69403715 +0.30694037 0.69305963 +0.30791789 0.69208211 +0.30889541 0.69110459 +0.30987292 0.69012708 +0.31085044 0.68914956 +0.31182796 0.68817204 +0.31280547 0.68719453 +0.31378299 0.68621701 +0.31476051 0.68523949 +0.31573803 0.68426197 +0.31671554 0.68328446 +0.31769306 0.68230694 +0.31867058 0.68132942 +0.31964809 0.68035191 +0.32062561 0.67937439 +0.32160313 0.67839687 +0.32258065 0.67741935 +0.32355816 0.67644184 +0.32453568 0.67546432 +0.32551320 0.67448680 +0.32649071 0.67350929 +0.32746823 0.67253177 +0.32844575 0.67155425 +0.32942326 0.67057674 +0.33040078 0.66959922 +0.33137830 0.66862170 +0.33235582 0.66764418 +0.33333333 0.66666667 +0.33431085 0.66568915 +0.33528837 0.66471163 +0.33626588 0.66373412 +0.33724340 0.66275660 +0.33822092 0.66177908 +0.33919844 0.66080156 +0.34017595 0.65982405 +0.34115347 0.65884653 +0.34213099 0.65786901 +0.34310850 0.65689150 +0.34408602 0.65591398 +0.34506354 0.65493646 +0.34604106 0.65395894 +0.34701857 0.65298143 +0.34799609 0.65200391 +0.34897361 0.65102639 +0.34995112 0.65004888 +0.35092864 0.64907136 +0.35190616 0.64809384 +0.35288368 0.64711632 +0.35386119 0.64613881 +0.35483871 0.64516129 +0.35581623 0.64418377 +0.35679374 0.64320626 +0.35777126 0.64222874 +0.35874878 0.64125122 +0.35972630 0.64027370 +0.36070381 0.63929619 +0.36168133 0.63831867 +0.36265885 0.63734115 +0.36363636 0.63636364 +0.36461388 0.63538612 +0.36559140 0.63440860 +0.36656891 0.63343109 +0.36754643 0.63245357 +0.36852395 0.63147605 +0.36950147 0.63049853 +0.37047898 0.62952102 +0.37145650 0.62854350 +0.37243402 0.62756598 +0.37341153 0.62658847 +0.37438905 0.62561095 +0.37536657 0.62463343 +0.37634409 0.62365591 +0.37732160 0.62267840 +0.37829912 0.62170088 +0.37927664 0.62072336 +0.38025415 0.61974585 +0.38123167 0.61876833 +0.38220919 0.61779081 +0.38318671 0.61681329 +0.38416422 0.61583578 +0.38514174 0.61485826 +0.38611926 0.61388074 +0.38709677 0.61290323 +0.38807429 0.61192571 +0.38905181 0.61094819 +0.39002933 0.60997067 +0.39100684 0.60899316 +0.39198436 0.60801564 +0.39296188 0.60703812 +0.39393939 0.60606061 +0.39491691 0.60508309 +0.39589443 0.60410557 +0.39687195 0.60312805 +0.39784946 0.60215054 +0.39882698 0.60117302 +0.39980450 0.60019550 +0.40078201 0.59921799 +0.40175953 0.59824047 +0.40273705 0.59726295 +0.40371457 0.59628543 +0.40469208 0.59530792 +0.40566960 0.59433040 +0.40664712 0.59335288 +0.40762463 0.59237537 +0.40860215 0.59139785 +0.40957967 0.59042033 +0.41055718 0.58944282 +0.41153470 0.58846530 +0.41251222 0.58748778 +0.41348974 0.58651026 +0.41446725 0.58553275 +0.41544477 0.58455523 +0.41642229 0.58357771 +0.41739980 0.58260020 +0.41837732 0.58162268 +0.41935484 0.58064516 +0.42033236 0.57966764 +0.42130987 0.57869013 +0.42228739 0.57771261 +0.42326491 0.57673509 +0.42424242 0.57575758 +0.42521994 0.57478006 +0.42619746 0.57380254 +0.42717498 0.57282502 +0.42815249 0.57184751 +0.42913001 0.57086999 +0.43010753 0.56989247 +0.43108504 0.56891496 +0.43206256 0.56793744 +0.43304008 0.56695992 +0.43401760 0.56598240 +0.43499511 0.56500489 +0.43597263 0.56402737 +0.43695015 0.56304985 +0.43792766 0.56207234 +0.43890518 0.56109482 +0.43988270 0.56011730 +0.44086022 0.55913978 +0.44183773 0.55816227 +0.44281525 0.55718475 +0.44379277 0.55620723 +0.44477028 0.55522972 +0.44574780 0.55425220 +0.44672532 0.55327468 +0.44770283 0.55229717 +0.44868035 0.55131965 +0.44965787 0.55034213 +0.45063539 0.54936461 +0.45161290 0.54838710 +0.45259042 0.54740958 +0.45356794 0.54643206 +0.45454545 0.54545455 +0.45552297 0.54447703 +0.45650049 0.54349951 +0.45747801 0.54252199 +0.45845552 0.54154448 +0.45943304 0.54056696 +0.46041056 0.53958944 +0.46138807 0.53861193 +0.46236559 0.53763441 +0.46334311 0.53665689 +0.46432063 0.53567937 +0.46529814 0.53470186 +0.46627566 0.53372434 +0.46725318 0.53274682 +0.46823069 0.53176931 +0.46920821 0.53079179 +0.47018573 0.52981427 +0.47116325 0.52883675 +0.47214076 0.52785924 +0.47311828 0.52688172 +0.47409580 0.52590420 +0.47507331 0.52492669 +0.47605083 0.52394917 +0.47702835 0.52297165 +0.47800587 0.52199413 +0.47898338 0.52101662 +0.47996090 0.52003910 +0.48093842 0.51906158 +0.48191593 0.51808407 +0.48289345 0.51710655 +0.48387097 0.51612903 +0.48484848 0.51515152 +0.48582600 0.51417400 +0.48680352 0.51319648 +0.48778104 0.51221896 +0.48875855 0.51124145 +0.48973607 0.51026393 +0.49071359 0.50928641 +0.49169110 0.50830890 +0.49266862 0.50733138 +0.49364614 0.50635386 +0.49462366 0.50537634 +0.49560117 0.50439883 +0.49657869 0.50342131 +0.49755621 0.50244379 +0.49853372 0.50146628 +0.49951124 0.50048876 +0.50048876 0.49951124 +0.50146628 0.49853372 +0.50244379 0.49755621 +0.50342131 0.49657869 +0.50439883 0.49560117 +0.50537634 0.49462366 +0.50635386 0.49364614 +0.50733138 0.49266862 +0.50830890 0.49169110 +0.50928641 0.49071359 +0.51026393 0.48973607 +0.51124145 0.48875855 +0.51221896 0.48778104 +0.51319648 0.48680352 +0.51417400 0.48582600 +0.51515152 0.48484848 +0.51612903 0.48387097 +0.51710655 0.48289345 +0.51808407 0.48191593 +0.51906158 0.48093842 +0.52003910 0.47996090 +0.52101662 0.47898338 +0.52199413 0.47800587 +0.52297165 0.47702835 +0.52394917 0.47605083 +0.52492669 0.47507331 +0.52590420 0.47409580 +0.52688172 0.47311828 +0.52785924 0.47214076 +0.52883675 0.47116325 +0.52981427 0.47018573 +0.53079179 0.46920821 +0.53176931 0.46823069 +0.53274682 0.46725318 +0.53372434 0.46627566 +0.53470186 0.46529814 +0.53567937 0.46432063 +0.53665689 0.46334311 +0.53763441 0.46236559 +0.53861193 0.46138807 +0.53958944 0.46041056 +0.54056696 0.45943304 +0.54154448 0.45845552 +0.54252199 0.45747801 +0.54349951 0.45650049 +0.54447703 0.45552297 +0.54545455 0.45454545 +0.54643206 0.45356794 +0.54740958 0.45259042 +0.54838710 0.45161290 +0.54936461 0.45063539 +0.55034213 0.44965787 +0.55131965 0.44868035 +0.55229717 0.44770283 +0.55327468 0.44672532 +0.55425220 0.44574780 +0.55522972 0.44477028 +0.55620723 0.44379277 +0.55718475 0.44281525 +0.55816227 0.44183773 +0.55913978 0.44086022 +0.56011730 0.43988270 +0.56109482 0.43890518 +0.56207234 0.43792766 +0.56304985 0.43695015 +0.56402737 0.43597263 +0.56500489 0.43499511 +0.56598240 0.43401760 +0.56695992 0.43304008 +0.56793744 0.43206256 +0.56891496 0.43108504 +0.56989247 0.43010753 +0.57086999 0.42913001 +0.57184751 0.42815249 +0.57282502 0.42717498 +0.57380254 0.42619746 +0.57478006 0.42521994 +0.57575758 0.42424242 +0.57673509 0.42326491 +0.57771261 0.42228739 +0.57869013 0.42130987 +0.57966764 0.42033236 +0.58064516 0.41935484 +0.58162268 0.41837732 +0.58260020 0.41739980 +0.58357771 0.41642229 +0.58455523 0.41544477 +0.58553275 0.41446725 +0.58651026 0.41348974 +0.58748778 0.41251222 +0.58846530 0.41153470 +0.58944282 0.41055718 +0.59042033 0.40957967 +0.59139785 0.40860215 +0.59237537 0.40762463 +0.59335288 0.40664712 +0.59433040 0.40566960 +0.59530792 0.40469208 +0.59628543 0.40371457 +0.59726295 0.40273705 +0.59824047 0.40175953 +0.59921799 0.40078201 +0.60019550 0.39980450 +0.60117302 0.39882698 +0.60215054 0.39784946 +0.60312805 0.39687195 +0.60410557 0.39589443 +0.60508309 0.39491691 +0.60606061 0.39393939 +0.60703812 0.39296188 +0.60801564 0.39198436 +0.60899316 0.39100684 +0.60997067 0.39002933 +0.61094819 0.38905181 +0.61192571 0.38807429 +0.61290323 0.38709677 +0.61388074 0.38611926 +0.61485826 0.38514174 +0.61583578 0.38416422 +0.61681329 0.38318671 +0.61779081 0.38220919 +0.61876833 0.38123167 +0.61974585 0.38025415 +0.62072336 0.37927664 +0.62170088 0.37829912 +0.62267840 0.37732160 +0.62365591 0.37634409 +0.62463343 0.37536657 +0.62561095 0.37438905 +0.62658847 0.37341153 +0.62756598 0.37243402 +0.62854350 0.37145650 +0.62952102 0.37047898 +0.63049853 0.36950147 +0.63147605 0.36852395 +0.63245357 0.36754643 +0.63343109 0.36656891 +0.63440860 0.36559140 +0.63538612 0.36461388 +0.63636364 0.36363636 +0.63734115 0.36265885 +0.63831867 0.36168133 +0.63929619 0.36070381 +0.64027370 0.35972630 +0.64125122 0.35874878 +0.64222874 0.35777126 +0.64320626 0.35679374 +0.64418377 0.35581623 +0.64516129 0.35483871 +0.64613881 0.35386119 +0.64711632 0.35288368 +0.64809384 0.35190616 +0.64907136 0.35092864 +0.65004888 0.34995112 +0.65102639 0.34897361 +0.65200391 0.34799609 +0.65298143 0.34701857 +0.65395894 0.34604106 +0.65493646 0.34506354 +0.65591398 0.34408602 +0.65689150 0.34310850 +0.65786901 0.34213099 +0.65884653 0.34115347 +0.65982405 0.34017595 +0.66080156 0.33919844 +0.66177908 0.33822092 +0.66275660 0.33724340 +0.66373412 0.33626588 +0.66471163 0.33528837 +0.66568915 0.33431085 +0.66666667 0.33333333 +0.66764418 0.33235582 +0.66862170 0.33137830 +0.66959922 0.33040078 +0.67057674 0.32942326 +0.67155425 0.32844575 +0.67253177 0.32746823 +0.67350929 0.32649071 +0.67448680 0.32551320 +0.67546432 0.32453568 +0.67644184 0.32355816 +0.67741935 0.32258065 +0.67839687 0.32160313 +0.67937439 0.32062561 +0.68035191 0.31964809 +0.68132942 0.31867058 +0.68230694 0.31769306 +0.68328446 0.31671554 +0.68426197 0.31573803 +0.68523949 0.31476051 +0.68621701 0.31378299 +0.68719453 0.31280547 +0.68817204 0.31182796 +0.68914956 0.31085044 +0.69012708 0.30987292 +0.69110459 0.30889541 +0.69208211 0.30791789 +0.69305963 0.30694037 +0.69403715 0.30596285 +0.69501466 0.30498534 +0.69599218 0.30400782 +0.69696970 0.30303030 +0.69794721 0.30205279 +0.69892473 0.30107527 +0.69990225 0.30009775 +0.70087977 0.29912023 +0.70185728 0.29814272 +0.70283480 0.29716520 +0.70381232 0.29618768 +0.70478983 0.29521017 +0.70576735 0.29423265 +0.70674487 0.29325513 +0.70772239 0.29227761 +0.70869990 0.29130010 +0.70967742 0.29032258 +0.71065494 0.28934506 +0.71163245 0.28836755 +0.71260997 0.28739003 +0.71358749 0.28641251 +0.71456500 0.28543500 +0.71554252 0.28445748 +0.71652004 0.28347996 +0.71749756 0.28250244 +0.71847507 0.28152493 +0.71945259 0.28054741 +0.72043011 0.27956989 +0.72140762 0.27859238 +0.72238514 0.27761486 +0.72336266 0.27663734 +0.72434018 0.27565982 +0.72531769 0.27468231 +0.72629521 0.27370479 +0.72727273 0.27272727 +0.72825024 0.27174976 +0.72922776 0.27077224 +0.73020528 0.26979472 +0.73118280 0.26881720 +0.73216031 0.26783969 +0.73313783 0.26686217 +0.73411535 0.26588465 +0.73509286 0.26490714 +0.73607038 0.26392962 +0.73704790 0.26295210 +0.73802542 0.26197458 +0.73900293 0.26099707 +0.73998045 0.26001955 +0.74095797 0.25904203 +0.74193548 0.25806452 +0.74291300 0.25708700 +0.74389052 0.25610948 +0.74486804 0.25513196 +0.74584555 0.25415445 +0.74682307 0.25317693 +0.74780059 0.25219941 +0.74877810 0.25122190 +0.74975562 0.25024438 +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/takagi-sugeno/SimpleDimmer.fll b/examples/takagi-sugeno/SimpleDimmer.fll new file mode 100644 index 0000000..038c785 --- /dev/null +++ b/examples/takagi-sugeno/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: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: LOW Constant 0.250 + term: MEDIUM Constant 0.500 + term: HIGH Constant 0.750 +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: none + 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/takagi-sugeno/SimpleDimmer.java b/examples/takagi-sugeno/SimpleDimmer.java new file mode 100644 index 0000000..6d60f0e --- /dev/null +++ b/examples/takagi-sugeno/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(null); +outputVariable.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(new Constant("LOW", 0.250)); +outputVariable.addTerm(new Constant("MEDIUM", 0.500)); +outputVariable.addTerm(new Constant("HIGH", 0.750)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(null); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +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/takagi-sugeno/approximation.cpp b/examples/takagi-sugeno/approximation.cpp new file mode 100644 index 0000000..178f162 --- /dev/null +++ b/examples/takagi-sugeno/approximation.cpp @@ -0,0 +1,87 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("approximation of sin(x)/x"); + +InputVariable* inputVariable = new InputVariable; +inputVariable->setEnabled(true); +inputVariable->setName("inputX"); +inputVariable->setRange(0.000, 10.000); +inputVariable->addTerm(new Triangle("NEAR_1", 0.000, 1.000, 2.000)); +inputVariable->addTerm(new Triangle("NEAR_2", 1.000, 2.000, 3.000)); +inputVariable->addTerm(new Triangle("NEAR_3", 2.000, 3.000, 4.000)); +inputVariable->addTerm(new Triangle("NEAR_4", 3.000, 4.000, 5.000)); +inputVariable->addTerm(new Triangle("NEAR_5", 4.000, 5.000, 6.000)); +inputVariable->addTerm(new Triangle("NEAR_6", 5.000, 6.000, 7.000)); +inputVariable->addTerm(new Triangle("NEAR_7", 6.000, 7.000, 8.000)); +inputVariable->addTerm(new Triangle("NEAR_8", 7.000, 8.000, 9.000)); +inputVariable->addTerm(new Triangle("NEAR_9", 8.000, 9.000, 10.000)); +engine->addInputVariable(inputVariable); + +OutputVariable* outputVariable1 = new OutputVariable; +outputVariable1->setEnabled(true); +outputVariable1->setName("outputFx"); +outputVariable1->setRange(-1.000, 1.000); +outputVariable1->fuzzyOutput()->setAccumulation(fl::null); +outputVariable1->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable1->setDefaultValue(fl::nan); +outputVariable1->setLockPreviousOutputValue(true); +outputVariable1->setLockOutputValueInRange(false); +outputVariable1->addTerm(new Constant("f1", 0.840)); +outputVariable1->addTerm(new Constant("f2", 0.450)); +outputVariable1->addTerm(new Constant("f3", 0.040)); +outputVariable1->addTerm(new Constant("f4", -0.180)); +outputVariable1->addTerm(new Constant("f5", -0.190)); +outputVariable1->addTerm(new Constant("f6", -0.040)); +outputVariable1->addTerm(new Constant("f7", 0.090)); +outputVariable1->addTerm(new Constant("f8", 0.120)); +outputVariable1->addTerm(new Constant("f9", 0.040)); +engine->addOutputVariable(outputVariable1); + +OutputVariable* outputVariable2 = new OutputVariable; +outputVariable2->setEnabled(true); +outputVariable2->setName("trueFx"); +outputVariable2->setRange(-1.000, 1.000); +outputVariable2->fuzzyOutput()->setAccumulation(fl::null); +outputVariable2->setDefuzzifier(new WeightedAverage("Automatic")); +outputVariable2->setDefaultValue(fl::nan); +outputVariable2->setLockPreviousOutputValue(true); +outputVariable2->setLockOutputValueInRange(false); +outputVariable2->addTerm(Function::create("fx", "sin(inputX)/inputX", engine)); +engine->addOutputVariable(outputVariable2); + +OutputVariable* outputVariable3 = new OutputVariable; +outputVariable3->setEnabled(true); +outputVariable3->setName("diffFx"); +outputVariable3->setRange(-1.000, 1.000); +outputVariable3->fuzzyOutput()->setAccumulation(fl::null); +outputVariable3->setDefuzzifier(new WeightedAverage("Automatic")); +outputVariable3->setDefaultValue(fl::nan); +outputVariable3->setLockPreviousOutputValue(false); +outputVariable3->setLockOutputValueInRange(false); +outputVariable3->addTerm(Function::create("diff", "fabs(outputFx-trueFx)", engine)); +engine->addOutputVariable(outputVariable3); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(fl::null); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_1 then outputFx is f1", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_2 then outputFx is f2", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_3 then outputFx is f3", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_4 then outputFx is f4", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_5 then outputFx is f5", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_6 then outputFx is f6", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_7 then outputFx is f7", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_8 then outputFx is f8", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is NEAR_9 then outputFx is f9", engine)); +ruleBlock->addRule(fl::Rule::parse("if inputX is any then trueFx is fx and diffFx is diff", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/takagi-sugeno/approximation.fcl b/examples/takagi-sugeno/approximation.fcl new file mode 100644 index 0000000..8b5f121 --- /dev/null +++ b/examples/takagi-sugeno/approximation.fcl @@ -0,0 +1,68 @@ +FUNCTION_BLOCK approximation of sin(x)/x + +VAR_INPUT + inputX: REAL; +END_VAR + +VAR_OUTPUT + outputFx: REAL; + trueFx: REAL; + diffFx: REAL; +END_VAR + +FUZZIFY inputX + RANGE := (0.000 .. 10.000); + TERM NEAR_1 := Triangle 0.000 1.000 2.000; + TERM NEAR_2 := Triangle 1.000 2.000 3.000; + TERM NEAR_3 := Triangle 2.000 3.000 4.000; + TERM NEAR_4 := Triangle 3.000 4.000 5.000; + TERM NEAR_5 := Triangle 4.000 5.000 6.000; + TERM NEAR_6 := Triangle 5.000 6.000 7.000; + TERM NEAR_7 := Triangle 6.000 7.000 8.000; + TERM NEAR_8 := Triangle 7.000 8.000 9.000; + TERM NEAR_9 := Triangle 8.000 9.000 10.000; +END_FUZZIFY + +DEFUZZIFY outputFx + RANGE := (-1.000 .. 1.000); + TERM f1 := 0.840; + TERM f2 := 0.450; + TERM f3 := 0.040; + TERM f4 := -0.180; + TERM f5 := -0.190; + TERM f6 := -0.040; + TERM f7 := 0.090; + TERM f8 := 0.120; + TERM f9 := 0.040; + METHOD : COGS; + DEFAULT := nan | NC; +END_DEFUZZIFY + +DEFUZZIFY trueFx + RANGE := (-1.000 .. 1.000); + TERM fx := Function sin(inputX)/inputX; + METHOD : COGS; + DEFAULT := nan | NC; +END_DEFUZZIFY + +DEFUZZIFY diffFx + RANGE := (-1.000 .. 1.000); + TERM diff := Function fabs(outputFx-trueFx); + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + RULE 1 : if inputX is NEAR_1 then outputFx is f1 + RULE 2 : if inputX is NEAR_2 then outputFx is f2 + RULE 3 : if inputX is NEAR_3 then outputFx is f3 + RULE 4 : if inputX is NEAR_4 then outputFx is f4 + RULE 5 : if inputX is NEAR_5 then outputFx is f5 + RULE 6 : if inputX is NEAR_6 then outputFx is f6 + RULE 7 : if inputX is NEAR_7 then outputFx is f7 + RULE 8 : if inputX is NEAR_8 then outputFx is f8 + RULE 9 : if inputX is NEAR_9 then outputFx is f9 + RULE 10 : if inputX is any then trueFx is fx and diffFx is diff +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/takagi-sugeno/approximation.fis b/examples/takagi-sugeno/approximation.fis new file mode 100644 index 0000000..73075bc --- /dev/null +++ b/examples/takagi-sugeno/approximation.fis @@ -0,0 +1,65 @@ +[System] +Name='approximation of sin(x)/x' +Type='sugeno' +NumInputs=1 +NumOutputs=3 +NumRules=10 +AndMethod='' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[Input1] +Name='inputX' +Range=[0.000 10.000] +NumMFs=9 +MF1='NEAR_1':'trimf',[0.000 1.000 2.000] +MF2='NEAR_2':'trimf',[1.000 2.000 3.000] +MF3='NEAR_3':'trimf',[2.000 3.000 4.000] +MF4='NEAR_4':'trimf',[3.000 4.000 5.000] +MF5='NEAR_5':'trimf',[4.000 5.000 6.000] +MF6='NEAR_6':'trimf',[5.000 6.000 7.000] +MF7='NEAR_7':'trimf',[6.000 7.000 8.000] +MF8='NEAR_8':'trimf',[7.000 8.000 9.000] +MF9='NEAR_9':'trimf',[8.000 9.000 10.000] + +[Output1] +Name='outputFx' +Range=[-1.000 1.000] +LockPrevious=1 +NumMFs=9 +MF1='f1':'constant',[0.840] +MF2='f2':'constant',[0.450] +MF3='f3':'constant',[0.040] +MF4='f4':'constant',[-0.180] +MF5='f5':'constant',[-0.190] +MF6='f6':'constant',[-0.040] +MF7='f7':'constant',[0.090] +MF8='f8':'constant',[0.120] +MF9='f9':'constant',[0.040] + +[Output2] +Name='trueFx' +Range=[-1.000 1.000] +LockPrevious=1 +NumMFs=1 +MF1='fx':'function',[sin(inputX)/inputX] + +[Output3] +Name='diffFx' +Range=[-1.000 1.000] +NumMFs=1 +MF1='diff':'function',[fabs(outputFx-trueFx)] + +[Rules] +1.000 , 1.000 0.000 0.000 (1.000) : 1 +2.000 , 2.000 0.000 0.000 (1.000) : 1 +3.000 , 3.000 0.000 0.000 (1.000) : 1 +4.000 , 4.000 0.000 0.000 (1.000) : 1 +5.000 , 5.000 0.000 0.000 (1.000) : 1 +6.000 , 6.000 0.000 0.000 (1.000) : 1 +7.000 , 7.000 0.000 0.000 (1.000) : 1 +8.000 , 8.000 0.000 0.000 (1.000) : 1 +9.000 , 9.000 0.000 0.000 (1.000) : 1 +0.990 , 0.000 1.000 1.000 (1.000) : 1 diff --git a/examples/takagi-sugeno/approximation.fld b/examples/takagi-sugeno/approximation.fld new file mode 100644 index 0000000..36bdbd8 --- /dev/null +++ b/examples/takagi-sugeno/approximation.fld @@ -0,0 +1,1026 @@ +#@Engine: approximation of sin(x)/x; +#@InputVariable: inputX; @OutputVariable: outputFx; @OutputVariable: trueFx; @OutputVariable: diffFx; +0.00000000 nan nan nan +0.00977517 0.84000000 0.99998407 0.15998407 +0.01955034 0.84000000 0.99993630 0.15993630 +0.02932551 0.84000000 0.99985668 0.15985668 +0.03910068 0.84000000 0.99974521 0.15974521 +0.04887586 0.84000000 0.99960191 0.15960191 +0.05865103 0.84000000 0.99942677 0.15942677 +0.06842620 0.84000000 0.99921983 0.15921983 +0.07820137 0.84000000 0.99898107 0.15898107 +0.08797654 0.84000000 0.99871052 0.15871052 +0.09775171 0.84000000 0.99840819 0.15840819 +0.10752688 0.84000000 0.99807411 0.15807411 +0.11730205 0.84000000 0.99770828 0.15770828 +0.12707722 0.84000000 0.99731074 0.15731074 +0.13685239 0.84000000 0.99688149 0.15688149 +0.14662757 0.84000000 0.99642058 0.15642058 +0.15640274 0.84000000 0.99592801 0.15592801 +0.16617791 0.84000000 0.99540383 0.15540383 +0.17595308 0.84000000 0.99484807 0.15484807 +0.18572825 0.84000000 0.99426074 0.15426074 +0.19550342 0.84000000 0.99364190 0.15364190 +0.20527859 0.84000000 0.99299157 0.15299157 +0.21505376 0.84000000 0.99230978 0.15230978 +0.22482893 0.84000000 0.99159659 0.15159659 +0.23460411 0.84000000 0.99085203 0.15085203 +0.24437928 0.84000000 0.99007614 0.15007614 +0.25415445 0.84000000 0.98926897 0.14926897 +0.26392962 0.84000000 0.98843056 0.14843056 +0.27370479 0.84000000 0.98756097 0.14756097 +0.28347996 0.84000000 0.98666023 0.14666023 +0.29325513 0.84000000 0.98572841 0.14572841 +0.30303030 0.84000000 0.98476555 0.14476555 +0.31280547 0.84000000 0.98377172 0.14377172 +0.32258065 0.84000000 0.98274697 0.14274697 +0.33235582 0.84000000 0.98169135 0.14169135 +0.34213099 0.84000000 0.98060493 0.14060493 +0.35190616 0.84000000 0.97948777 0.13948777 +0.36168133 0.84000000 0.97833993 0.13833993 +0.37145650 0.84000000 0.97716148 0.13716148 +0.38123167 0.84000000 0.97595249 0.13595249 +0.39100684 0.84000000 0.97471302 0.13471302 +0.40078201 0.84000000 0.97344315 0.13344315 +0.41055718 0.84000000 0.97214295 0.13214295 +0.42033236 0.84000000 0.97081249 0.13081249 +0.43010753 0.84000000 0.96945185 0.12945185 +0.43988270 0.84000000 0.96806111 0.12806111 +0.44965787 0.84000000 0.96664035 0.12664035 +0.45943304 0.84000000 0.96518964 0.12518964 +0.46920821 0.84000000 0.96370907 0.12370907 +0.47898338 0.84000000 0.96219873 0.12219873 +0.48875855 0.84000000 0.96065870 0.12065870 +0.49853372 0.84000000 0.95908907 0.11908907 +0.50830890 0.84000000 0.95748993 0.11748993 +0.51808407 0.84000000 0.95586137 0.11586137 +0.52785924 0.84000000 0.95420348 0.11420348 +0.53763441 0.84000000 0.95251635 0.11251635 +0.54740958 0.84000000 0.95080010 0.11080010 +0.55718475 0.84000000 0.94905480 0.10905480 +0.56695992 0.84000000 0.94728056 0.10728056 +0.57673509 0.84000000 0.94547749 0.10547749 +0.58651026 0.84000000 0.94364568 0.10364568 +0.59628543 0.84000000 0.94178524 0.10178524 +0.60606061 0.84000000 0.93989628 0.09989628 +0.61583578 0.84000000 0.93797889 0.09797889 +0.62561095 0.84000000 0.93603320 0.09603320 +0.63538612 0.84000000 0.93405932 0.09405932 +0.64516129 0.84000000 0.93205734 0.09205734 +0.65493646 0.84000000 0.93002740 0.09002740 +0.66471163 0.84000000 0.92796960 0.08796960 +0.67448680 0.84000000 0.92588406 0.08588406 +0.68426197 0.84000000 0.92377090 0.08377090 +0.69403715 0.84000000 0.92163024 0.08163024 +0.70381232 0.84000000 0.91946220 0.07946220 +0.71358749 0.84000000 0.91726690 0.07726690 +0.72336266 0.84000000 0.91504448 0.07504448 +0.73313783 0.84000000 0.91279505 0.07279505 +0.74291300 0.84000000 0.91051874 0.07051874 +0.75268817 0.84000000 0.90821568 0.06821568 +0.76246334 0.84000000 0.90588601 0.06588601 +0.77223851 0.84000000 0.90352985 0.06352985 +0.78201369 0.84000000 0.90114734 0.06114734 +0.79178886 0.84000000 0.89873861 0.05873861 +0.80156403 0.84000000 0.89630380 0.05630380 +0.81133920 0.84000000 0.89384305 0.05384305 +0.82111437 0.84000000 0.89135649 0.05135649 +0.83088954 0.84000000 0.88884427 0.04884427 +0.84066471 0.84000000 0.88630653 0.04630653 +0.85043988 0.84000000 0.88374342 0.04374342 +0.86021505 0.84000000 0.88115507 0.04115507 +0.86999022 0.84000000 0.87854163 0.03854163 +0.87976540 0.84000000 0.87590326 0.03590326 +0.88954057 0.84000000 0.87324010 0.03324010 +0.89931574 0.84000000 0.87055230 0.03055230 +0.90909091 0.84000000 0.86784001 0.02784001 +0.91886608 0.84000000 0.86510339 0.02510339 +0.92864125 0.84000000 0.86234258 0.02234258 +0.93841642 0.84000000 0.85955775 0.01955775 +0.94819159 0.84000000 0.85674906 0.01674906 +0.95796676 0.84000000 0.85391665 0.01391665 +0.96774194 0.84000000 0.85106070 0.01106070 +0.97751711 0.84000000 0.84818136 0.00818136 +0.98729228 0.84000000 0.84527878 0.00527878 +0.99706745 0.84000000 0.84235315 0.00235315 +1.00684262 0.83733138 0.83940461 0.00207323 +1.01661779 0.83351906 0.83643334 0.00291428 +1.02639296 0.82970674 0.83343951 0.00373276 +1.03616813 0.82589443 0.83042327 0.00452884 +1.04594330 0.82208211 0.82738481 0.00530270 +1.05571848 0.81826979 0.82432428 0.00605449 +1.06549365 0.81445748 0.82124187 0.00678439 +1.07526882 0.81064516 0.81813774 0.00749258 +1.08504399 0.80683284 0.81501207 0.00817923 +1.09481916 0.80302053 0.81186504 0.00884451 +1.10459433 0.79920821 0.80869682 0.00948860 +1.11436950 0.79539589 0.80550758 0.01011168 +1.12414467 0.79158358 0.80229751 0.01071393 +1.13391984 0.78777126 0.79906678 0.01129552 +1.14369501 0.78395894 0.79581558 0.01185663 +1.15347019 0.78014663 0.79254408 0.01239745 +1.16324536 0.77633431 0.78925248 0.01291816 +1.17302053 0.77252199 0.78594094 0.01341895 +1.18279570 0.76870968 0.78260967 0.01389999 +1.19257087 0.76489736 0.77925884 0.01436147 +1.20234604 0.76108504 0.77588863 0.01480359 +1.21212121 0.75727273 0.77249925 0.01522652 +1.22189638 0.75346041 0.76909087 0.01563046 +1.23167155 0.74964809 0.76566369 0.01601559 +1.24144673 0.74583578 0.76221789 0.01638211 +1.25122190 0.74202346 0.75875367 0.01673021 +1.26099707 0.73821114 0.75527122 0.01706007 +1.27077224 0.73439883 0.75177073 0.01737190 +1.28054741 0.73058651 0.74825240 0.01766589 +1.29032258 0.72677419 0.74471642 0.01794222 +1.30009775 0.72296188 0.74116298 0.01820111 +1.30987292 0.71914956 0.73759230 0.01844274 +1.31964809 0.71533724 0.73400455 0.01866731 +1.32942326 0.71152493 0.73039994 0.01887502 +1.33919844 0.70771261 0.72677868 0.01906607 +1.34897361 0.70390029 0.72314095 0.01924066 +1.35874878 0.70008798 0.71948696 0.01939899 +1.36852395 0.69627566 0.71581692 0.01954126 +1.37829912 0.69246334 0.71213102 0.01966767 +1.38807429 0.68865103 0.70842946 0.01977844 +1.39784946 0.68483871 0.70471246 0.01987375 +1.40762463 0.68102639 0.70098021 0.01995382 +1.41739980 0.67721408 0.69723292 0.02001884 +1.42717498 0.67340176 0.69347080 0.02006904 +1.43695015 0.66958944 0.68969405 0.02010461 +1.44672532 0.66577713 0.68590288 0.02012575 +1.45650049 0.66196481 0.68209750 0.02013269 +1.46627566 0.65815249 0.67827811 0.02012562 +1.47605083 0.65434018 0.67444493 0.02010476 +1.48582600 0.65052786 0.67059817 0.02007031 +1.49560117 0.64671554 0.66673803 0.02002249 +1.50537634 0.64290323 0.66286472 0.01996150 +1.51515152 0.63909091 0.65897847 0.01988756 +1.52492669 0.63527859 0.65507947 0.01980088 +1.53470186 0.63146628 0.65116795 0.01970168 +1.54447703 0.62765396 0.64724411 0.01959016 +1.55425220 0.62384164 0.64330818 0.01946653 +1.56402737 0.62002933 0.63936035 0.01933103 +1.57380254 0.61621701 0.63540086 0.01918385 +1.58357771 0.61240469 0.63142990 0.01902521 +1.59335288 0.60859238 0.62744771 0.01885533 +1.60312805 0.60478006 0.62345448 0.01867443 +1.61290323 0.60096774 0.61945045 0.01848271 +1.62267840 0.59715543 0.61543583 0.01828041 +1.63245357 0.59334311 0.61141083 0.01806772 +1.64222874 0.58953079 0.60737568 0.01784488 +1.65200391 0.58571848 0.60333058 0.01761210 +1.66177908 0.58190616 0.59927576 0.01736960 +1.67155425 0.57809384 0.59521144 0.01711760 +1.68132942 0.57428152 0.59113783 0.01685631 +1.69110459 0.57046921 0.58705516 0.01658596 +1.70087977 0.56665689 0.58296365 0.01630676 +1.71065494 0.56284457 0.57886351 0.01601893 +1.72043011 0.55903226 0.57475496 0.01572270 +1.73020528 0.55521994 0.57063823 0.01541829 +1.73998045 0.55140762 0.56651353 0.01510591 +1.74975562 0.54759531 0.56238109 0.01478578 +1.75953079 0.54378299 0.55824113 0.01445814 +1.76930596 0.53997067 0.55409386 0.01412319 +1.77908113 0.53615836 0.54993952 0.01378116 +1.78885630 0.53234604 0.54577832 0.01343228 +1.79863148 0.52853372 0.54161048 0.01307675 +1.80840665 0.52472141 0.53743622 0.01271481 +1.81818182 0.52090909 0.53325577 0.01234668 +1.82795699 0.51709677 0.52906935 0.01197258 +1.83773216 0.51328446 0.52487718 0.01159273 +1.84750733 0.50947214 0.52067949 0.01120735 +1.85728250 0.50565982 0.51647649 0.01081666 +1.86705767 0.50184751 0.51226841 0.01042090 +1.87683284 0.49803519 0.50805546 0.01002027 +1.88660802 0.49422287 0.50383788 0.00961501 +1.89638319 0.49041056 0.49961589 0.00920533 +1.90615836 0.48659824 0.49538970 0.00879146 +1.91593353 0.48278592 0.49115955 0.00837362 +1.92570870 0.47897361 0.48692564 0.00795203 +1.93548387 0.47516129 0.48268821 0.00752692 +1.94525904 0.47134897 0.47844748 0.00709850 +1.95503421 0.46753666 0.47420366 0.00666700 +1.96480938 0.46372434 0.46995699 0.00623265 +1.97458456 0.45991202 0.46570768 0.00579565 +1.98435973 0.45609971 0.46145595 0.00535624 +1.99413490 0.45228739 0.45720203 0.00491464 +2.00391007 0.44839687 0.45294613 0.00454926 +2.01368524 0.44438905 0.44868849 0.00429944 +2.02346041 0.44038123 0.44442931 0.00404808 +2.03323558 0.43637341 0.44016883 0.00379542 +2.04301075 0.43236559 0.43590726 0.00354167 +2.05278592 0.42835777 0.43164482 0.00328705 +2.06256109 0.42434995 0.42738174 0.00303178 +2.07233627 0.42034213 0.42311822 0.00277609 +2.08211144 0.41633431 0.41885450 0.00252019 +2.09188661 0.41232649 0.41459079 0.00226430 +2.10166178 0.40831867 0.41032731 0.00200864 +2.11143695 0.40431085 0.40606429 0.00175344 +2.12121212 0.40030303 0.40180193 0.00149890 +2.13098729 0.39629521 0.39754045 0.00124524 +2.14076246 0.39228739 0.39328009 0.00099270 +2.15053763 0.38827957 0.38902104 0.00074147 +2.16031281 0.38427175 0.38476354 0.00049179 +2.17008798 0.38026393 0.38050779 0.00024386 +2.17986315 0.37625611 0.37625401 0.00000210 +2.18963832 0.37224829 0.37200242 0.00024587 +2.19941349 0.36824047 0.36775324 0.00048723 +2.20918866 0.36423265 0.36350667 0.00072598 +2.21896383 0.36022483 0.35926294 0.00096189 +2.22873900 0.35621701 0.35502225 0.00119476 +2.23851417 0.35220919 0.35078483 0.00142436 +2.24828935 0.34820137 0.34655088 0.00165049 +2.25806452 0.34419355 0.34232062 0.00187293 +2.26783969 0.34018573 0.33809425 0.00209148 +2.27761486 0.33617791 0.33387200 0.00230591 +2.28739003 0.33217009 0.32965407 0.00251602 +2.29716520 0.32816227 0.32544067 0.00272160 +2.30694037 0.32415445 0.32123201 0.00292244 +2.31671554 0.32014663 0.31702830 0.00311833 +2.32649071 0.31613881 0.31282975 0.00330906 +2.33626588 0.31213099 0.30863657 0.00349442 +2.34604106 0.30812317 0.30444897 0.00367420 +2.35581623 0.30411535 0.30026714 0.00384821 +2.36559140 0.30010753 0.29609130 0.00401622 +2.37536657 0.29609971 0.29192166 0.00417805 +2.38514174 0.29209189 0.28775841 0.00433347 +2.39491691 0.28808407 0.28360177 0.00448230 +2.40469208 0.28407625 0.27945193 0.00462432 +2.41446725 0.28006843 0.27530910 0.00475933 +2.42424242 0.27606061 0.27117348 0.00488713 +2.43401760 0.27205279 0.26704526 0.00500752 +2.44379277 0.26804497 0.26292466 0.00512030 +2.45356794 0.26403715 0.25881187 0.00522527 +2.46334311 0.26002933 0.25470709 0.00532224 +2.47311828 0.25602151 0.25061052 0.00541099 +2.48289345 0.25201369 0.24652234 0.00549134 +2.49266862 0.24800587 0.24244277 0.00556309 +2.50244379 0.24399804 0.23837200 0.00562605 +2.51221896 0.23999022 0.23431022 0.00568001 +2.52199413 0.23598240 0.23025762 0.00572479 +2.53176931 0.23197458 0.22621439 0.00576019 +2.54154448 0.22796676 0.22218074 0.00578602 +2.55131965 0.22395894 0.21815685 0.00580210 +2.56109482 0.21995112 0.21414291 0.00580822 +2.57086999 0.21594330 0.21013910 0.00580420 +2.58064516 0.21193548 0.20614563 0.00578985 +2.59042033 0.20792766 0.20216267 0.00576499 +2.60019550 0.20391984 0.19819042 0.00572942 +2.60997067 0.19991202 0.19422905 0.00568297 +2.61974585 0.19590420 0.19027876 0.00562545 +2.62952102 0.19189638 0.18633972 0.00555666 +2.63929619 0.18788856 0.18241212 0.00547644 +2.64907136 0.18388074 0.17849614 0.00538460 +2.65884653 0.17987292 0.17459196 0.00528096 +2.66862170 0.17586510 0.17069976 0.00516534 +2.67839687 0.17185728 0.16681972 0.00503756 +2.68817204 0.16784946 0.16295202 0.00489744 +2.69794721 0.16384164 0.15909683 0.00474481 +2.70772239 0.15983382 0.15525433 0.00457950 +2.71749756 0.15582600 0.15142469 0.00440132 +2.72727273 0.15181818 0.14760808 0.00421010 +2.73704790 0.14781036 0.14380468 0.00400568 +2.74682307 0.14380254 0.14001466 0.00378788 +2.75659824 0.13979472 0.13623819 0.00355653 +2.76637341 0.13578690 0.13247544 0.00331146 +2.77614858 0.13177908 0.12872657 0.00305251 +2.78592375 0.12777126 0.12499175 0.00277951 +2.79569892 0.12376344 0.12127114 0.00249230 +2.80547410 0.11975562 0.11756492 0.00219070 +2.81524927 0.11574780 0.11387324 0.00187456 +2.82502444 0.11173998 0.11019627 0.00154371 +2.83479961 0.10773216 0.10653416 0.00119801 +2.84457478 0.10372434 0.10288707 0.00083727 +2.85434995 0.09971652 0.09925517 0.00046135 +2.86412512 0.09570870 0.09563860 0.00007010 +2.87390029 0.09170088 0.09203753 0.00033665 +2.88367546 0.08769306 0.08845211 0.00075905 +2.89345064 0.08368524 0.08488250 0.00119726 +2.90322581 0.07967742 0.08132883 0.00165141 +2.91300098 0.07566960 0.07779128 0.00212168 +2.92277615 0.07166178 0.07426997 0.00260819 +2.93255132 0.06765396 0.07076507 0.00311111 +2.94232649 0.06364614 0.06727672 0.00363058 +2.95210166 0.05963832 0.06380506 0.00416674 +2.96187683 0.05563050 0.06035024 0.00471974 +2.97165200 0.05162268 0.05691240 0.00528972 +2.98142717 0.04761486 0.05349169 0.00587683 +2.99120235 0.04360704 0.05008823 0.00648120 +3.00097752 0.03978495 0.04670218 0.00691724 +3.01075269 0.03763441 0.04333367 0.00569927 +3.02052786 0.03548387 0.03998284 0.00449897 +3.03030303 0.03333333 0.03664981 0.00331648 +3.04007820 0.03118280 0.03333473 0.00215193 +3.04985337 0.02903226 0.03003772 0.00100547 +3.05962854 0.02688172 0.02675892 0.00012280 +3.06940371 0.02473118 0.02349846 0.00123272 +3.07917889 0.02258065 0.02025646 0.00232419 +3.08895406 0.02043011 0.01703304 0.00339706 +3.09872923 0.01827957 0.01382835 0.00445122 +3.10850440 0.01612903 0.01064249 0.00548655 +3.11827957 0.01397849 0.00747559 0.00650291 +3.12805474 0.01182796 0.00432777 0.00750019 +3.13782991 0.00967742 0.00119915 0.00847827 +3.14760508 0.00752688 -0.00191015 0.00943703 +3.15738025 0.00537634 -0.00500001 0.01037636 +3.16715543 0.00322581 -0.00807033 0.01129614 +3.17693060 0.00107527 -0.01112098 0.01219625 +3.18670577 -0.00107527 -0.01415186 0.01307659 +3.19648094 -0.00322581 -0.01716285 0.01393705 +3.20625611 -0.00537634 -0.02015385 0.01477750 +3.21603128 -0.00752688 -0.02312474 0.01559786 +3.22580645 -0.00967742 -0.02607543 0.01639801 +3.23558162 -0.01182796 -0.02900580 0.01717785 +3.24535679 -0.01397849 -0.03191576 0.01793727 +3.25513196 -0.01612903 -0.03480520 0.01867617 +3.26490714 -0.01827957 -0.03767402 0.01939445 +3.27468231 -0.02043011 -0.04052213 0.02009202 +3.28445748 -0.02258065 -0.04334942 0.02076878 +3.29423265 -0.02473118 -0.04615581 0.02142462 +3.30400782 -0.02688172 -0.04894118 0.02205946 +3.31378299 -0.02903226 -0.05170547 0.02267321 +3.32355816 -0.03118280 -0.05444857 0.02326577 +3.33333333 -0.03333333 -0.05717039 0.02383706 +3.34310850 -0.03548387 -0.05987085 0.02438698 +3.35288368 -0.03763441 -0.06254985 0.02491545 +3.36265885 -0.03978495 -0.06520733 0.02542238 +3.37243402 -0.04193548 -0.06784318 0.02590770 +3.38220919 -0.04408602 -0.07045733 0.02637131 +3.39198436 -0.04623656 -0.07304971 0.02681315 +3.40175953 -0.04838710 -0.07562022 0.02723313 +3.41153470 -0.05053763 -0.07816880 0.02763117 +3.42130987 -0.05268817 -0.08069537 0.02800720 +3.43108504 -0.05483871 -0.08319985 0.02836114 +3.44086022 -0.05698925 -0.08568218 0.02869293 +3.45063539 -0.05913978 -0.08814228 0.02900249 +3.46041056 -0.06129032 -0.09058008 0.02928975 +3.47018573 -0.06344086 -0.09299551 0.02955465 +3.47996090 -0.06559140 -0.09538852 0.02979712 +3.48973607 -0.06774194 -0.09775902 0.03001709 +3.49951124 -0.06989247 -0.10010698 0.03021450 +3.50928641 -0.07204301 -0.10243231 0.03038930 +3.51906158 -0.07419355 -0.10473496 0.03054141 +3.52883675 -0.07634409 -0.10701487 0.03067079 +3.53861193 -0.07849462 -0.10927199 0.03077737 +3.54838710 -0.08064516 -0.11150627 0.03086111 +3.55816227 -0.08279570 -0.11371764 0.03092194 +3.56793744 -0.08494624 -0.11590606 0.03095982 +3.57771261 -0.08709677 -0.11807147 0.03097470 +3.58748778 -0.08924731 -0.12021383 0.03096652 +3.59726295 -0.09139785 -0.12233310 0.03093525 +3.60703812 -0.09354839 -0.12442922 0.03088083 +3.61681329 -0.09569892 -0.12650215 0.03080322 +3.62658847 -0.09784946 -0.12855185 0.03070239 +3.63636364 -0.10000000 -0.13057828 0.03057828 +3.64613881 -0.10215054 -0.13258140 0.03043086 +3.65591398 -0.10430108 -0.13456118 0.03026010 +3.66568915 -0.10645161 -0.13651757 0.03006596 +3.67546432 -0.10860215 -0.13845055 0.02984840 +3.68523949 -0.11075269 -0.14036007 0.02960739 +3.69501466 -0.11290323 -0.14224612 0.02934290 +3.70478983 -0.11505376 -0.14410866 0.02905490 +3.71456500 -0.11720430 -0.14594766 0.02874336 +3.72434018 -0.11935484 -0.14776310 0.02840827 +3.73411535 -0.12150538 -0.14955496 0.02804958 +3.74389052 -0.12365591 -0.15132320 0.02766729 +3.75366569 -0.12580645 -0.15306781 0.02726136 +3.76344086 -0.12795699 -0.15478877 0.02683178 +3.77321603 -0.13010753 -0.15648606 0.02637853 +3.78299120 -0.13225806 -0.15815967 0.02590160 +3.79276637 -0.13440860 -0.15980957 0.02540097 +3.80254154 -0.13655914 -0.16143576 0.02487662 +3.81231672 -0.13870968 -0.16303823 0.02432855 +3.82209189 -0.14086022 -0.16461696 0.02375674 +3.83186706 -0.14301075 -0.16617194 0.02316119 +3.84164223 -0.14516129 -0.16770318 0.02254189 +3.85141740 -0.14731183 -0.16921065 0.02189883 +3.86119257 -0.14946237 -0.17069437 0.02123200 +3.87096774 -0.15161290 -0.17215432 0.02054142 +3.88074291 -0.15376344 -0.17359052 0.01982707 +3.89051808 -0.15591398 -0.17500294 0.01908896 +3.90029326 -0.15806452 -0.17639161 0.01832710 +3.91006843 -0.16021505 -0.17775652 0.01754147 +3.91984360 -0.16236559 -0.17909769 0.01673209 +3.92961877 -0.16451613 -0.18041510 0.01589898 +3.93939394 -0.16666667 -0.18170879 0.01504212 +3.94916911 -0.16881720 -0.18297875 0.01416154 +3.95894428 -0.17096774 -0.18422500 0.01325725 +3.96871945 -0.17311828 -0.18544754 0.01232926 +3.97849462 -0.17526882 -0.18664641 0.01137759 +3.98826979 -0.17741935 -0.18782160 0.01040225 +3.99804497 -0.17956989 -0.18897315 0.00940326 +4.00782014 -0.18007820 -0.19010107 0.01002287 +4.01759531 -0.18017595 -0.19120537 0.01102942 +4.02737048 -0.18027370 -0.19228609 0.01201239 +4.03714565 -0.18037146 -0.19334325 0.01297180 +4.04692082 -0.18046921 -0.19437687 0.01390767 +4.05669599 -0.18056696 -0.19538698 0.01482002 +4.06647116 -0.18066471 -0.19637361 0.01570890 +4.07624633 -0.18076246 -0.19733679 0.01657433 +4.08602151 -0.18086022 -0.19827655 0.01741634 +4.09579668 -0.18095797 -0.19919292 0.01823496 +4.10557185 -0.18105572 -0.20008595 0.01903023 +4.11534702 -0.18115347 -0.20095565 0.01980218 +4.12512219 -0.18125122 -0.20180208 0.02055085 +4.13489736 -0.18134897 -0.20262526 0.02127629 +4.14467253 -0.18144673 -0.20342525 0.02197853 +4.15444770 -0.18154448 -0.20420208 0.02265761 +4.16422287 -0.18164223 -0.20495580 0.02331357 +4.17399804 -0.18173998 -0.20568645 0.02394647 +4.18377322 -0.18183773 -0.20639408 0.02455635 +4.19354839 -0.18193548 -0.20707873 0.02514325 +4.20332356 -0.18203324 -0.20774046 0.02570722 +4.21309873 -0.18213099 -0.20837931 0.02624832 +4.22287390 -0.18222874 -0.20899534 0.02676660 +4.23264907 -0.18232649 -0.20958860 0.02726211 +4.24242424 -0.18242424 -0.21015915 0.02773490 +4.25219941 -0.18252199 -0.21070703 0.02818504 +4.26197458 -0.18261975 -0.21123232 0.02861257 +4.27174976 -0.18271750 -0.21173506 0.02901757 +4.28152493 -0.18281525 -0.21221533 0.02940008 +4.29130010 -0.18291300 -0.21267317 0.02976017 +4.30107527 -0.18301075 -0.21310866 0.03009790 +4.31085044 -0.18310850 -0.21352185 0.03041335 +4.32062561 -0.18320626 -0.21391282 0.03070656 +4.33040078 -0.18330401 -0.21428163 0.03097762 +4.34017595 -0.18340176 -0.21462835 0.03122659 +4.34995112 -0.18349951 -0.21495305 0.03145354 +4.35972630 -0.18359726 -0.21525580 0.03165853 +4.36950147 -0.18369501 -0.21553667 0.03184165 +4.37927664 -0.18379277 -0.21579574 0.03200297 +4.38905181 -0.18389052 -0.21603308 0.03214256 +4.39882698 -0.18398827 -0.21624877 0.03226050 +4.40860215 -0.18408602 -0.21644288 0.03235686 +4.41837732 -0.18418377 -0.21661550 0.03243173 +4.42815249 -0.18428152 -0.21676671 0.03248518 +4.43792766 -0.18437928 -0.21689658 0.03251730 +4.44770283 -0.18447703 -0.21700520 0.03252817 +4.45747801 -0.18457478 -0.21709266 0.03251788 +4.46725318 -0.18467253 -0.21715903 0.03248650 +4.47702835 -0.18477028 -0.21720441 0.03243413 +4.48680352 -0.18486804 -0.21722888 0.03236085 +4.49657869 -0.18496579 -0.21723254 0.03226675 +4.50635386 -0.18506354 -0.21721546 0.03215193 +4.51612903 -0.18516129 -0.21717775 0.03201646 +4.52590420 -0.18525904 -0.21711950 0.03186046 +4.53567937 -0.18535679 -0.21704079 0.03168400 +4.54545455 -0.18545455 -0.21694173 0.03148718 +4.55522972 -0.18555230 -0.21682241 0.03127011 +4.56500489 -0.18565005 -0.21668292 0.03103288 +4.57478006 -0.18574780 -0.21652338 0.03077558 +4.58455523 -0.18584555 -0.21634386 0.03049831 +4.59433040 -0.18594330 -0.21614448 0.03020118 +4.60410557 -0.18604106 -0.21592534 0.02988429 +4.61388074 -0.18613881 -0.21568654 0.02954774 +4.62365591 -0.18623656 -0.21542819 0.02919163 +4.63343109 -0.18633431 -0.21515038 0.02881607 +4.64320626 -0.18643206 -0.21485322 0.02842116 +4.65298143 -0.18652981 -0.21453683 0.02800702 +4.66275660 -0.18662757 -0.21420131 0.02757374 +4.67253177 -0.18672532 -0.21384677 0.02712145 +4.68230694 -0.18682307 -0.21347331 0.02665024 +4.69208211 -0.18692082 -0.21308106 0.02616024 +4.70185728 -0.18701857 -0.21267012 0.02565154 +4.71163245 -0.18711632 -0.21224060 0.02512428 +4.72140762 -0.18721408 -0.21179263 0.02457855 +4.73118280 -0.18731183 -0.21132631 0.02401448 +4.74095797 -0.18740958 -0.21084176 0.02343218 +4.75073314 -0.18750733 -0.21033910 0.02283177 +4.76050831 -0.18760508 -0.20981845 0.02221337 +4.77028348 -0.18770283 -0.20927993 0.02157709 +4.78005865 -0.18780059 -0.20872365 0.02092306 +4.78983382 -0.18789834 -0.20814974 0.02025140 +4.79960899 -0.18799609 -0.20755831 0.01956222 +4.80938416 -0.18809384 -0.20694950 0.01885566 +4.81915934 -0.18819159 -0.20632342 0.01813183 +4.82893451 -0.18828935 -0.20568021 0.01739086 +4.83870968 -0.18838710 -0.20501998 0.01663288 +4.84848485 -0.18848485 -0.20434286 0.01585801 +4.85826002 -0.18858260 -0.20364897 0.01506637 +4.86803519 -0.18868035 -0.20293846 0.01425811 +4.87781036 -0.18877810 -0.20221144 0.01343334 +4.88758553 -0.18887586 -0.20146804 0.01259219 +4.89736070 -0.18897361 -0.20070840 0.01173480 +4.90713587 -0.18907136 -0.19993265 0.01086129 +4.91691105 -0.18916911 -0.19914091 0.00997180 +4.92668622 -0.18926686 -0.19833333 0.00906647 +4.93646139 -0.18936461 -0.19751003 0.00814542 +4.94623656 -0.18946237 -0.19667115 0.00720878 +4.95601173 -0.18956012 -0.19581682 0.00625670 +4.96578690 -0.18965787 -0.19494718 0.00528931 +4.97556207 -0.18975562 -0.19406237 0.00430675 +4.98533724 -0.18985337 -0.19316252 0.00330915 +4.99511241 -0.18995112 -0.19224777 0.00229665 +5.00488759 -0.18926686 -0.19131826 0.00205140 +5.01466276 -0.18780059 -0.19037413 0.00257355 +5.02443793 -0.18633431 -0.18941552 0.00308121 +5.03421310 -0.18486804 -0.18844257 0.00357453 +5.04398827 -0.18340176 -0.18745541 0.00405365 +5.05376344 -0.18193548 -0.18645420 0.00451871 +5.06353861 -0.18046921 -0.18543907 0.00496986 +5.07331378 -0.17900293 -0.18441017 0.00540723 +5.08308895 -0.17753666 -0.18336763 0.00583098 +5.09286413 -0.17607038 -0.18231162 0.00624123 +5.10263930 -0.17460411 -0.18124226 0.00663815 +5.11241447 -0.17313783 -0.18015970 0.00702187 +5.12218964 -0.17167155 -0.17906410 0.00739254 +5.13196481 -0.17020528 -0.17795559 0.00775031 +5.14173998 -0.16873900 -0.17683432 0.00809532 +5.15151515 -0.16727273 -0.17570045 0.00842772 +5.16129032 -0.16580645 -0.17455411 0.00874766 +5.17106549 -0.16434018 -0.17339546 0.00905528 +5.18084066 -0.16287390 -0.17222464 0.00935074 +5.19061584 -0.16140762 -0.17104181 0.00963419 +5.20039101 -0.15994135 -0.16984711 0.00990576 +5.21016618 -0.15847507 -0.16864070 0.01016562 +5.21994135 -0.15700880 -0.16742272 0.01041392 +5.22971652 -0.15554252 -0.16619332 0.01065080 +5.23949169 -0.15407625 -0.16495267 0.01087642 +5.24926686 -0.15260997 -0.16370090 0.01109093 +5.25904203 -0.15114370 -0.16243817 0.01129447 +5.26881720 -0.14967742 -0.16116463 0.01148721 +5.27859238 -0.14821114 -0.15988044 0.01166930 +5.28836755 -0.14674487 -0.15858575 0.01184088 +5.29814272 -0.14527859 -0.15728071 0.01200212 +5.30791789 -0.14381232 -0.15596547 0.01215316 +5.31769306 -0.14234604 -0.15464020 0.01229416 +5.32746823 -0.14087977 -0.15330504 0.01242527 +5.33724340 -0.13941349 -0.15196015 0.01254666 +5.34701857 -0.13794721 -0.15060568 0.01265846 +5.35679374 -0.13648094 -0.14924179 0.01276085 +5.36656891 -0.13501466 -0.14786863 0.01285397 +5.37634409 -0.13354839 -0.14648637 0.01293798 +5.38611926 -0.13208211 -0.14509515 0.01301304 +5.39589443 -0.13061584 -0.14369513 0.01307929 +5.40566960 -0.12914956 -0.14228647 0.01313691 +5.41544477 -0.12768328 -0.14086932 0.01318604 +5.42521994 -0.12621701 -0.13944384 0.01322684 +5.43499511 -0.12475073 -0.13801019 0.01325946 +5.44477028 -0.12328446 -0.13656853 0.01328407 +5.45454545 -0.12181818 -0.13511901 0.01330082 +5.46432063 -0.12035191 -0.13366178 0.01330987 +5.47409580 -0.11888563 -0.13219701 0.01331138 +5.48387097 -0.11741935 -0.13072485 0.01330550 +5.49364614 -0.11595308 -0.12924546 0.01329238 +5.50342131 -0.11448680 -0.12775900 0.01327220 +5.51319648 -0.11302053 -0.12626563 0.01324510 +5.52297165 -0.11155425 -0.12476550 0.01321124 +5.53274682 -0.11008798 -0.12325876 0.01317079 +5.54252199 -0.10862170 -0.12174559 0.01312389 +5.55229717 -0.10715543 -0.12022613 0.01307070 +5.56207234 -0.10568915 -0.11870054 0.01301139 +5.57184751 -0.10422287 -0.11716899 0.01294611 +5.58162268 -0.10275660 -0.11563162 0.01287502 +5.59139785 -0.10129032 -0.11408860 0.01279827 +5.60117302 -0.09982405 -0.11254008 0.01271603 +5.61094819 -0.09835777 -0.11098622 0.01262845 +5.62072336 -0.09689150 -0.10942718 0.01253568 +5.63049853 -0.09542522 -0.10786312 0.01243790 +5.64027370 -0.09395894 -0.10629418 0.01233524 +5.65004888 -0.09249267 -0.10472054 0.01222787 +5.65982405 -0.09102639 -0.10314235 0.01211595 +5.66959922 -0.08956012 -0.10155975 0.01199964 +5.67937439 -0.08809384 -0.09997292 0.01187908 +5.68914956 -0.08662757 -0.09838201 0.01175444 +5.69892473 -0.08516129 -0.09678716 0.01162587 +5.70869990 -0.08369501 -0.09518855 0.01149354 +5.71847507 -0.08222874 -0.09358632 0.01135758 +5.72825024 -0.08076246 -0.09198064 0.01121817 +5.73802542 -0.07929619 -0.09037165 0.01107546 +5.74780059 -0.07782991 -0.08875951 0.01092960 +5.75757576 -0.07636364 -0.08714438 0.01078074 +5.76735093 -0.07489736 -0.08552641 0.01062905 +5.77712610 -0.07343109 -0.08390576 0.01047468 +5.78690127 -0.07196481 -0.08228258 0.01031777 +5.79667644 -0.07049853 -0.08065703 0.01015849 +5.80645161 -0.06903226 -0.07902925 0.00999699 +5.81622678 -0.06756598 -0.07739941 0.00983343 +5.82600196 -0.06609971 -0.07576765 0.00966794 +5.83577713 -0.06463343 -0.07413413 0.00950070 +5.84555230 -0.06316716 -0.07249901 0.00933185 +5.85532747 -0.06170088 -0.07086242 0.00916154 +5.86510264 -0.06023460 -0.06922454 0.00898993 +5.87487781 -0.05876833 -0.06758550 0.00881717 +5.88465298 -0.05730205 -0.06594545 0.00864340 +5.89442815 -0.05583578 -0.06430456 0.00846878 +5.90420332 -0.05436950 -0.06266296 0.00829346 +5.91397849 -0.05290323 -0.06102082 0.00811759 +5.92375367 -0.05143695 -0.05937827 0.00794132 +5.93352884 -0.04997067 -0.05773547 0.00776480 +5.94330401 -0.04850440 -0.05609257 0.00758817 +5.95307918 -0.04703812 -0.05444971 0.00741159 +5.96285435 -0.04557185 -0.05280704 0.00723519 +5.97262952 -0.04410557 -0.05116471 0.00705914 +5.98240469 -0.04263930 -0.04952287 0.00688358 +5.99217986 -0.04117302 -0.04788166 0.00670864 +6.00195503 -0.03974585 -0.04624123 0.00649539 +6.01173021 -0.03847507 -0.04460173 0.00612665 +6.02150538 -0.03720430 -0.04296329 0.00575898 +6.03128055 -0.03593353 -0.04132606 0.00539253 +6.04105572 -0.03466276 -0.03969019 0.00502743 +6.05083089 -0.03339198 -0.03805582 0.00466383 +6.06060606 -0.03212121 -0.03642309 0.00430187 +6.07038123 -0.03085044 -0.03479214 0.00394170 +6.08015640 -0.02957967 -0.03316312 0.00358345 +6.08993157 -0.02830890 -0.03153616 0.00322727 +6.09970674 -0.02703812 -0.02991141 0.00287329 +6.10948192 -0.02576735 -0.02828901 0.00252166 +6.11925709 -0.02449658 -0.02666909 0.00217251 +6.12903226 -0.02322581 -0.02505179 0.00182599 +6.13880743 -0.02195503 -0.02343726 0.00148222 +6.14858260 -0.02068426 -0.02182562 0.00114136 +6.15835777 -0.01941349 -0.02021702 0.00080353 +6.16813294 -0.01814272 -0.01861158 0.00046886 +6.17790811 -0.01687195 -0.01700945 0.00013751 +6.18768328 -0.01560117 -0.01541076 0.00019041 +6.19745846 -0.01433040 -0.01381565 0.00051476 +6.20723363 -0.01305963 -0.01222423 0.00083539 +6.21700880 -0.01178886 -0.01063666 0.00115219 +6.22678397 -0.01051808 -0.00905306 0.00146503 +6.23655914 -0.00924731 -0.00747356 0.00177376 +6.24633431 -0.00797654 -0.00589828 0.00207826 +6.25610948 -0.00670577 -0.00432737 0.00237839 +6.26588465 -0.00543500 -0.00276095 0.00267405 +6.27565982 -0.00416422 -0.00119914 0.00296508 +6.28543500 -0.00289345 0.00035792 0.00325137 +6.29521017 -0.00162268 0.00191011 0.00353279 +6.30498534 -0.00035191 0.00345731 0.00380922 +6.31476051 0.00091887 0.00499939 0.00408052 +6.32453568 0.00218964 0.00653623 0.00434659 +6.33431085 0.00346041 0.00806769 0.00460728 +6.34408602 0.00473118 0.00959367 0.00486249 +6.35386119 0.00600196 0.01111404 0.00511208 +6.36363636 0.00727273 0.01262868 0.00535595 +6.37341153 0.00854350 0.01413746 0.00559396 +6.38318671 0.00981427 0.01564028 0.00582601 +6.39296188 0.01108504 0.01713700 0.00605196 +6.40273705 0.01235582 0.01862753 0.00627171 +6.41251222 0.01362659 0.02011173 0.00648514 +6.42228739 0.01489736 0.02158949 0.00669213 +6.43206256 0.01616813 0.02306071 0.00689257 +6.44183773 0.01743891 0.02452525 0.00708635 +6.45161290 0.01870968 0.02598302 0.00727335 +6.46138807 0.01998045 0.02743390 0.00745345 +6.47116325 0.02125122 0.02887778 0.00762656 +6.48093842 0.02252199 0.03031455 0.00779256 +6.49071359 0.02379277 0.03174410 0.00795133 +6.50048876 0.02506354 0.03316632 0.00810278 +6.51026393 0.02633431 0.03458110 0.00824679 +6.52003910 0.02760508 0.03598835 0.00838326 +6.52981427 0.02887586 0.03738794 0.00851209 +6.53958944 0.03014663 0.03877979 0.00863316 +6.54936461 0.03141740 0.04016378 0.00874638 +6.55913978 0.03268817 0.04153981 0.00885164 +6.56891496 0.03395894 0.04290779 0.00894884 +6.57869013 0.03522972 0.04426760 0.00903788 +6.58846530 0.03650049 0.04561916 0.00911867 +6.59824047 0.03777126 0.04696236 0.00919110 +6.60801564 0.03904203 0.04829710 0.00925507 +6.61779081 0.04031281 0.04962329 0.00931049 +6.62756598 0.04158358 0.05094084 0.00935726 +6.63734115 0.04285435 0.05224965 0.00939530 +6.64711632 0.04412512 0.05354962 0.00942449 +6.65689150 0.04539589 0.05484066 0.00944477 +6.66666667 0.04666667 0.05612268 0.00945602 +6.67644184 0.04793744 0.05739560 0.00945816 +6.68621701 0.04920821 0.05865932 0.00945111 +6.69599218 0.05047898 0.05991375 0.00943477 +6.70576735 0.05174976 0.06115881 0.00940905 +6.71554252 0.05302053 0.06239440 0.00937388 +6.72531769 0.05429130 0.06362046 0.00932916 +6.73509286 0.05556207 0.06483688 0.00927481 +6.74486804 0.05683284 0.06604359 0.00921074 +6.75464321 0.05810362 0.06724050 0.00913689 +6.76441838 0.05937439 0.06842755 0.00905316 +6.77419355 0.06064516 0.06960463 0.00895947 +6.78396872 0.06191593 0.07077169 0.00885575 +6.79374389 0.06318671 0.07192863 0.00874192 +6.80351906 0.06445748 0.07307538 0.00861790 +6.81329423 0.06572825 0.07421187 0.00848362 +6.82306940 0.06699902 0.07533803 0.00833900 +6.83284457 0.06826979 0.07645377 0.00818397 +6.84261975 0.06954057 0.07755903 0.00801846 +6.85239492 0.07081134 0.07865373 0.00784240 +6.86217009 0.07208211 0.07973782 0.00765571 +6.87194526 0.07335288 0.08081121 0.00745832 +6.88172043 0.07462366 0.08187384 0.00725018 +6.89149560 0.07589443 0.08292564 0.00703121 +6.90127077 0.07716520 0.08396655 0.00680135 +6.91104594 0.07843597 0.08499650 0.00656053 +6.92082111 0.07970674 0.08601544 0.00630869 +6.93059629 0.08097752 0.08702329 0.00604577 +6.94037146 0.08224829 0.08802000 0.00577171 +6.95014663 0.08351906 0.08900551 0.00548645 +6.95992180 0.08478983 0.08997976 0.00518992 +6.96969697 0.08606061 0.09094268 0.00488208 +6.97947214 0.08733138 0.09189424 0.00456286 +6.98924731 0.08860215 0.09283436 0.00423221 +6.99902248 0.08987292 0.09376300 0.00389008 +7.00879765 0.09026393 0.09468010 0.00441617 +7.01857283 0.09055718 0.09558561 0.00502843 +7.02834800 0.09085044 0.09647948 0.00562904 +7.03812317 0.09114370 0.09736167 0.00621797 +7.04789834 0.09143695 0.09823211 0.00679516 +7.05767351 0.09173021 0.09909078 0.00736057 +7.06744868 0.09202346 0.09993761 0.00791415 +7.07722385 0.09231672 0.10077256 0.00845585 +7.08699902 0.09260997 0.10159560 0.00898563 +7.09677419 0.09290323 0.10240667 0.00950345 +7.10654936 0.09319648 0.10320574 0.01000926 +7.11632454 0.09348974 0.10399277 0.01050304 +7.12609971 0.09378299 0.10476772 0.01098473 +7.13587488 0.09407625 0.10553054 0.01145430 +7.14565005 0.09436950 0.10628121 0.01191171 +7.15542522 0.09466276 0.10701969 0.01235693 +7.16520039 0.09495601 0.10774594 0.01278992 +7.17497556 0.09524927 0.10845992 0.01321066 +7.18475073 0.09554252 0.10916162 0.01361910 +7.19452590 0.09583578 0.10985099 0.01401522 +7.20430108 0.09612903 0.11052801 0.01439898 +7.21407625 0.09642229 0.11119265 0.01477036 +7.22385142 0.09671554 0.11184488 0.01512934 +7.23362659 0.09700880 0.11248467 0.01547587 +7.24340176 0.09730205 0.11311200 0.01580995 +7.25317693 0.09759531 0.11372685 0.01613154 +7.26295210 0.09788856 0.11432919 0.01644063 +7.27272727 0.09818182 0.11491900 0.01673719 +7.28250244 0.09847507 0.11549627 0.01702119 +7.29227761 0.09876833 0.11606096 0.01729263 +7.30205279 0.09906158 0.11661306 0.01755148 +7.31182796 0.09935484 0.11715257 0.01779773 +7.32160313 0.09964809 0.11767945 0.01803135 +7.33137830 0.09994135 0.11819370 0.01825235 +7.34115347 0.10023460 0.11869529 0.01846069 +7.35092864 0.10052786 0.11918423 0.01865637 +7.36070381 0.10082111 0.11966050 0.01883938 +7.37047898 0.10111437 0.12012408 0.01900971 +7.38025415 0.10140762 0.12057498 0.01916735 +7.39002933 0.10170088 0.12101317 0.01931229 +7.39980450 0.10199413 0.12143866 0.01944452 +7.40957967 0.10228739 0.12185144 0.01956405 +7.41935484 0.10258065 0.12225150 0.01967085 +7.42913001 0.10287390 0.12263884 0.01976494 +7.43890518 0.10316716 0.12301346 0.01984631 +7.44868035 0.10346041 0.12337536 0.01991495 +7.45845552 0.10375367 0.12372454 0.01997088 +7.46823069 0.10404692 0.12406100 0.02001408 +7.47800587 0.10434018 0.12438474 0.02004456 +7.48778104 0.10463343 0.12469576 0.02006233 +7.49755621 0.10492669 0.12499407 0.02006738 +7.50733138 0.10521994 0.12527968 0.02005974 +7.51710655 0.10551320 0.12555259 0.02003939 +7.52688172 0.10580645 0.12581281 0.02000636 +7.53665689 0.10609971 0.12606034 0.01996064 +7.54643206 0.10639296 0.12629521 0.01990225 +7.55620723 0.10668622 0.12651742 0.01983120 +7.56598240 0.10697947 0.12672698 0.01974751 +7.57575758 0.10727273 0.12692390 0.01965117 +7.58553275 0.10756598 0.12710821 0.01954222 +7.59530792 0.10785924 0.12727991 0.01942067 +7.60508309 0.10815249 0.12743902 0.01928653 +7.61485826 0.10844575 0.12758556 0.01913982 +7.62463343 0.10873900 0.12771955 0.01898055 +7.63440860 0.10903226 0.12784101 0.01880876 +7.64418377 0.10932551 0.12794996 0.01862445 +7.65395894 0.10961877 0.12804642 0.01842766 +7.66373412 0.10991202 0.12813042 0.01821839 +7.67350929 0.11020528 0.12820197 0.01799669 +7.68328446 0.11049853 0.12826111 0.01776257 +7.69305963 0.11079179 0.12830785 0.01751607 +7.70283480 0.11108504 0.12834224 0.01725719 +7.71260997 0.11137830 0.12836428 0.01698599 +7.72238514 0.11167155 0.12837403 0.01670247 +7.73216031 0.11196481 0.12837149 0.01640668 +7.74193548 0.11225806 0.12835671 0.01609865 +7.75171065 0.11255132 0.12832972 0.01577840 +7.76148583 0.11284457 0.12829055 0.01544598 +7.77126100 0.11313783 0.12823924 0.01510141 +7.78103617 0.11343109 0.12817582 0.01474473 +7.79081134 0.11372434 0.12810032 0.01437598 +7.80058651 0.11401760 0.12801279 0.01399519 +7.81036168 0.11431085 0.12791326 0.01360241 +7.82013685 0.11460411 0.12780177 0.01319766 +7.82991202 0.11489736 0.12767836 0.01278100 +7.83968719 0.11519062 0.12754308 0.01235246 +7.84946237 0.11548387 0.12739596 0.01191209 +7.85923754 0.11577713 0.12723705 0.01145992 +7.86901271 0.11607038 0.12706639 0.01099601 +7.87878788 0.11636364 0.12688403 0.01052039 +7.88856305 0.11665689 0.12669001 0.01003312 +7.89833822 0.11695015 0.12648438 0.00953423 +7.90811339 0.11724340 0.12626719 0.00902379 +7.91788856 0.11753666 0.12603848 0.00850182 +7.92766373 0.11782991 0.12579831 0.00796840 +7.93743891 0.11812317 0.12554673 0.00742356 +7.94721408 0.11841642 0.12528378 0.00686736 +7.95698925 0.11870968 0.12500952 0.00629984 +7.96676442 0.11900293 0.12472400 0.00572107 +7.97653959 0.11929619 0.12442729 0.00513110 +7.98631476 0.11958944 0.12411942 0.00452998 +7.99608993 0.11988270 0.12380046 0.00391776 +8.00586510 0.11953079 0.12347046 0.00393967 +8.01564027 0.11874878 0.12312949 0.00438071 +8.02541544 0.11796676 0.12277759 0.00481083 +8.03519062 0.11718475 0.12241483 0.00523008 +8.04496579 0.11640274 0.12204128 0.00563854 +8.05474096 0.11562072 0.12165698 0.00603625 +8.06451613 0.11483871 0.12126200 0.00642329 +8.07429130 0.11405670 0.12085641 0.00679971 +8.08406647 0.11327468 0.12044026 0.00716558 +8.09384164 0.11249267 0.12001362 0.00752095 +8.10361681 0.11171065 0.11957656 0.00786590 +8.11339198 0.11092864 0.11912914 0.00820050 +8.12316716 0.11014663 0.11867143 0.00852480 +8.13294233 0.10936461 0.11820349 0.00883887 +8.14271750 0.10858260 0.11772539 0.00914279 +8.15249267 0.10780059 0.11723720 0.00943662 +8.16226784 0.10701857 0.11673900 0.00972043 +8.17204301 0.10623656 0.11623084 0.00999429 +8.18181818 0.10545455 0.11571281 0.01025827 +8.19159335 0.10467253 0.11518497 0.01051244 +8.20136852 0.10389052 0.11464739 0.01075688 +8.21114370 0.10310850 0.11410016 0.01099165 +8.22091887 0.10232649 0.11354333 0.01121684 +8.23069404 0.10154448 0.11297699 0.01143251 +8.24046921 0.10076246 0.11240121 0.01163875 +8.25024438 0.09998045 0.11181607 0.01183562 +8.26001955 0.09919844 0.11122164 0.01202321 +8.26979472 0.09841642 0.11061800 0.01220158 +8.27956989 0.09763441 0.11000523 0.01237083 +8.28934506 0.09685239 0.10938341 0.01253102 +8.29912023 0.09607038 0.10875261 0.01268223 +8.30889541 0.09528837 0.10811292 0.01282455 +8.31867058 0.09450635 0.10746441 0.01295805 +8.32844575 0.09372434 0.10680716 0.01308282 +8.33822092 0.09294233 0.10614127 0.01319894 +8.34799609 0.09216031 0.10546680 0.01330649 +8.35777126 0.09137830 0.10478385 0.01340555 +8.36754643 0.09059629 0.10409249 0.01349620 +8.37732160 0.08981427 0.10339280 0.01357853 +8.38709677 0.08903226 0.10268489 0.01365263 +8.39687195 0.08825024 0.10196882 0.01371857 +8.40664712 0.08746823 0.10124468 0.01377645 +8.41642229 0.08668622 0.10051256 0.01382634 +8.42619746 0.08590420 0.09977255 0.01386834 +8.43597263 0.08512219 0.09902473 0.01390254 +8.44574780 0.08434018 0.09826919 0.01392901 +8.45552297 0.08355816 0.09750601 0.01394785 +8.46529814 0.08277615 0.09673530 0.01395915 +8.47507331 0.08199413 0.09595712 0.01396299 +8.48484848 0.08121212 0.09517159 0.01395947 +8.49462366 0.08043011 0.09437878 0.01394867 +8.50439883 0.07964809 0.09357878 0.01393068 +8.51417400 0.07886608 0.09277169 0.01390561 +8.52394917 0.07808407 0.09195759 0.01387352 +8.53372434 0.07730205 0.09113658 0.01383453 +8.54349951 0.07652004 0.09030876 0.01378872 +8.55327468 0.07573803 0.08947420 0.01373618 +8.56304985 0.07495601 0.08863301 0.01367700 +8.57282502 0.07417400 0.08778528 0.01361129 +8.58260020 0.07339198 0.08693111 0.01353912 +8.59237537 0.07260997 0.08607058 0.01346060 +8.60215054 0.07182796 0.08520379 0.01337583 +8.61192571 0.07104594 0.08433083 0.01328489 +8.62170088 0.07026393 0.08345181 0.01318788 +8.63147605 0.06948192 0.08256681 0.01308489 +8.64125122 0.06869990 0.08167593 0.01297603 +8.65102639 0.06791789 0.08077927 0.01286138 +8.66080156 0.06713587 0.07987693 0.01274105 +8.67057674 0.06635386 0.07896899 0.01261513 +8.68035191 0.06557185 0.07805557 0.01248372 +8.69012708 0.06478983 0.07713675 0.01234691 +8.69990225 0.06400782 0.07621263 0.01220481 +8.70967742 0.06322581 0.07528331 0.01205750 +8.71945259 0.06244379 0.07434889 0.01190509 +8.72922776 0.06166178 0.07340946 0.01174768 +8.73900293 0.06087977 0.07246513 0.01158537 +8.74877810 0.06009775 0.07151600 0.01141825 +8.75855327 0.05931574 0.07056216 0.01124642 +8.76832845 0.05853372 0.06960370 0.01106998 +8.77810362 0.05775171 0.06864074 0.01088903 +8.78787879 0.05696970 0.06767337 0.01070368 +8.79765396 0.05618768 0.06670170 0.01051401 +8.80742913 0.05540567 0.06572581 0.01032014 +8.81720430 0.05462366 0.06474581 0.01012215 +8.82697947 0.05384164 0.06376180 0.00992016 +8.83675464 0.05305963 0.06277389 0.00971426 +8.84652981 0.05227761 0.06178216 0.00950455 +8.85630499 0.05149560 0.06078673 0.00929113 +8.86608016 0.05071359 0.05978769 0.00907410 +8.87585533 0.04993157 0.05878515 0.00885357 +8.88563050 0.04914956 0.05777919 0.00862963 +8.89540567 0.04836755 0.05676994 0.00840239 +8.90518084 0.04758553 0.05575748 0.00817195 +8.91495601 0.04680352 0.05474192 0.00793841 +8.92473118 0.04602151 0.05372336 0.00770186 +8.93450635 0.04523949 0.05270191 0.00746241 +8.94428152 0.04445748 0.05167765 0.00722017 +8.95405670 0.04367546 0.05065070 0.00697523 +8.96383187 0.04289345 0.04962115 0.00672770 +8.97360704 0.04211144 0.04858911 0.00647767 +8.98338221 0.04132942 0.04755468 0.00622526 +8.99315738 0.04054741 0.04651796 0.00597055 +9.00293255 0.04000000 0.04547905 0.00547905 +9.01270772 0.04000000 0.04443805 0.00443805 +9.02248289 0.04000000 0.04339506 0.00339506 +9.03225806 0.04000000 0.04235019 0.00235019 +9.04203324 0.04000000 0.04130354 0.00130354 +9.05180841 0.04000000 0.04025521 0.00025521 +9.06158358 0.04000000 0.03920529 0.00079471 +9.07135875 0.04000000 0.03815390 0.00184610 +9.08113392 0.04000000 0.03710113 0.00289887 +9.09090909 0.04000000 0.03604708 0.00395292 +9.10068426 0.04000000 0.03499185 0.00500815 +9.11045943 0.04000000 0.03393555 0.00606445 +9.12023460 0.04000000 0.03287827 0.00712173 +9.13000978 0.04000000 0.03182012 0.00817988 +9.13978495 0.04000000 0.03076120 0.00923880 +9.14956012 0.04000000 0.02970160 0.01029840 +9.15933529 0.04000000 0.02864143 0.01135857 +9.16911046 0.04000000 0.02758079 0.01241921 +9.17888563 0.04000000 0.02651977 0.01348023 +9.18866080 0.04000000 0.02545848 0.01454152 +9.19843597 0.04000000 0.02439701 0.01560299 +9.20821114 0.04000000 0.02333547 0.01666453 +9.21798631 0.04000000 0.02227395 0.01772605 +9.22776149 0.04000000 0.02121255 0.01878745 +9.23753666 0.04000000 0.02015138 0.01984862 +9.24731183 0.04000000 0.01909053 0.02090947 +9.25708700 0.04000000 0.01803009 0.02196991 +9.26686217 0.04000000 0.01697018 0.02302982 +9.27663734 0.04000000 0.01591087 0.02408913 +9.28641251 0.04000000 0.01485228 0.02514772 +9.29618768 0.04000000 0.01379449 0.02620551 +9.30596285 0.04000000 0.01273761 0.02726239 +9.31573803 0.04000000 0.01168174 0.02831826 +9.32551320 0.04000000 0.01062696 0.02937304 +9.33528837 0.04000000 0.00957337 0.03042663 +9.34506354 0.04000000 0.00852108 0.03147892 +9.35483871 0.04000000 0.00747017 0.03252983 +9.36461388 0.04000000 0.00642074 0.03357926 +9.37438905 0.04000000 0.00537289 0.03462711 +9.38416422 0.04000000 0.00432671 0.03567329 +9.39393939 0.04000000 0.00328229 0.03671771 +9.40371457 0.04000000 0.00223974 0.03776026 +9.41348974 0.04000000 0.00119913 0.03880087 +9.42326491 0.04000000 0.00016057 0.03983943 +9.43304008 0.04000000 -0.00087586 0.04087586 +9.44281525 0.04000000 -0.00191006 0.04191006 +9.45259042 0.04000000 -0.00294193 0.04294193 +9.46236559 0.04000000 -0.00397139 0.04397139 +9.47214076 0.04000000 -0.00499835 0.04499835 +9.48191593 0.04000000 -0.00602272 0.04602272 +9.49169110 0.04000000 -0.00704440 0.04704440 +9.50146628 0.04000000 -0.00806330 0.04806330 +9.51124145 0.04000000 -0.00907934 0.04907934 +9.52101662 0.04000000 -0.01009243 0.05009243 +9.53079179 0.04000000 -0.01110247 0.05110247 +9.54056696 0.04000000 -0.01210939 0.05210939 +9.55034213 0.04000000 -0.01311309 0.05311309 +9.56011730 0.04000000 -0.01411348 0.05411348 +9.56989247 0.04000000 -0.01511049 0.05511049 +9.57966764 0.04000000 -0.01610401 0.05610401 +9.58944282 0.04000000 -0.01709398 0.05709398 +9.59921799 0.04000000 -0.01808029 0.05808029 +9.60899316 0.04000000 -0.01906288 0.05906288 +9.61876833 0.04000000 -0.02004164 0.06004164 +9.62854350 0.04000000 -0.02101651 0.06101651 +9.63831867 0.04000000 -0.02198739 0.06198739 +9.64809384 0.04000000 -0.02295421 0.06295421 +9.65786901 0.04000000 -0.02391688 0.06391688 +9.66764418 0.04000000 -0.02487532 0.06487532 +9.67741935 0.04000000 -0.02582945 0.06582945 +9.68719453 0.04000000 -0.02677918 0.06677918 +9.69696970 0.04000000 -0.02772445 0.06772445 +9.70674487 0.04000000 -0.02866516 0.06866516 +9.71652004 0.04000000 -0.02960125 0.06960125 +9.72629521 0.04000000 -0.03053263 0.07053263 +9.73607038 0.04000000 -0.03145922 0.07145922 +9.74584555 0.04000000 -0.03238095 0.07238095 +9.75562072 0.04000000 -0.03329775 0.07329775 +9.76539589 0.04000000 -0.03420953 0.07420953 +9.77517107 0.04000000 -0.03511622 0.07511622 +9.78494624 0.04000000 -0.03601775 0.07601775 +9.79472141 0.04000000 -0.03691404 0.07691404 +9.80449658 0.04000000 -0.03780502 0.07780502 +9.81427175 0.04000000 -0.03869061 0.07869061 +9.82404692 0.04000000 -0.03957075 0.07957075 +9.83382209 0.04000000 -0.04044536 0.08044536 +9.84359726 0.04000000 -0.04131438 0.08131438 +9.85337243 0.04000000 -0.04217772 0.08217772 +9.86314761 0.04000000 -0.04303533 0.08303533 +9.87292278 0.04000000 -0.04388713 0.08388713 +9.88269795 0.04000000 -0.04473306 0.08473306 +9.89247312 0.04000000 -0.04557305 0.08557305 +9.90224829 0.04000000 -0.04640703 0.08640703 +9.91202346 0.04000000 -0.04723493 0.08723493 +9.92179863 0.04000000 -0.04805669 0.08805669 +9.93157380 0.04000000 -0.04887225 0.08887225 +9.94134897 0.04000000 -0.04968154 0.08968154 +9.95112414 0.04000000 -0.05048449 0.09048449 +9.96089932 0.04000000 -0.05128105 0.09128105 +9.97067449 0.04000000 -0.05207115 0.09207115 +9.98044966 0.04000000 -0.05285474 0.09285474 +9.99022483 0.04000000 -0.05363174 0.09363174 +10.00000000 0.04000000 -0.05440211 0.09440211 diff --git a/examples/takagi-sugeno/approximation.fll b/examples/takagi-sugeno/approximation.fll new file mode 100644 index 0000000..1d166c9 --- /dev/null +++ b/examples/takagi-sugeno/approximation.fll @@ -0,0 +1,63 @@ +Engine: approximation of sin(x)/x +InputVariable: inputX + enabled: true + range: 0.000 10.000 + term: NEAR_1 Triangle 0.000 1.000 2.000 + term: NEAR_2 Triangle 1.000 2.000 3.000 + term: NEAR_3 Triangle 2.000 3.000 4.000 + term: NEAR_4 Triangle 3.000 4.000 5.000 + term: NEAR_5 Triangle 4.000 5.000 6.000 + term: NEAR_6 Triangle 5.000 6.000 7.000 + term: NEAR_7 Triangle 6.000 7.000 8.000 + term: NEAR_8 Triangle 7.000 8.000 9.000 + term: NEAR_9 Triangle 8.000 9.000 10.000 +OutputVariable: outputFx + enabled: true + range: -1.000 1.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: true + lock-range: false + term: f1 Constant 0.840 + term: f2 Constant 0.450 + term: f3 Constant 0.040 + term: f4 Constant -0.180 + term: f5 Constant -0.190 + term: f6 Constant -0.040 + term: f7 Constant 0.090 + term: f8 Constant 0.120 + term: f9 Constant 0.040 +OutputVariable: trueFx + enabled: true + range: -1.000 1.000 + accumulation: none + defuzzifier: WeightedAverage Automatic + default: nan + lock-previous: true + lock-range: false + term: fx Function sin(inputX)/inputX +OutputVariable: diffFx + enabled: true + range: -1.000 1.000 + accumulation: none + defuzzifier: WeightedAverage Automatic + default: nan + lock-previous: false + lock-range: false + term: diff Function fabs(outputFx-trueFx) +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: none + rule: if inputX is NEAR_1 then outputFx is f1 + rule: if inputX is NEAR_2 then outputFx is f2 + rule: if inputX is NEAR_3 then outputFx is f3 + rule: if inputX is NEAR_4 then outputFx is f4 + rule: if inputX is NEAR_5 then outputFx is f5 + rule: if inputX is NEAR_6 then outputFx is f6 + rule: if inputX is NEAR_7 then outputFx is f7 + rule: if inputX is NEAR_8 then outputFx is f8 + rule: if inputX is NEAR_9 then outputFx is f9 + rule: if inputX is any then trueFx is fx and diffFx is diff
\ No newline at end of file diff --git a/examples/takagi-sugeno/approximation.java b/examples/takagi-sugeno/approximation.java new file mode 100644 index 0000000..c3d98e1 --- /dev/null +++ b/examples/takagi-sugeno/approximation.java @@ -0,0 +1,97 @@ +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 approximation{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("approximation of sin(x)/x"); + +InputVariable inputVariable = new InputVariable(); +inputVariable.setEnabled(true); +inputVariable.setName("inputX"); +inputVariable.setRange(0.000, 10.000); +inputVariable.addTerm(new Triangle("NEAR_1", 0.000, 1.000, 2.000)); +inputVariable.addTerm(new Triangle("NEAR_2", 1.000, 2.000, 3.000)); +inputVariable.addTerm(new Triangle("NEAR_3", 2.000, 3.000, 4.000)); +inputVariable.addTerm(new Triangle("NEAR_4", 3.000, 4.000, 5.000)); +inputVariable.addTerm(new Triangle("NEAR_5", 4.000, 5.000, 6.000)); +inputVariable.addTerm(new Triangle("NEAR_6", 5.000, 6.000, 7.000)); +inputVariable.addTerm(new Triangle("NEAR_7", 6.000, 7.000, 8.000)); +inputVariable.addTerm(new Triangle("NEAR_8", 7.000, 8.000, 9.000)); +inputVariable.addTerm(new Triangle("NEAR_9", 8.000, 9.000, 10.000)); +engine.addInputVariable(inputVariable); + +OutputVariable outputVariable1 = new OutputVariable(); +outputVariable1.setEnabled(true); +outputVariable1.setName("outputFx"); +outputVariable1.setRange(-1.000, 1.000); +outputVariable1.fuzzyOutput().setAccumulation(null); +outputVariable1.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable1.setDefaultValue(Double.NaN); +outputVariable1.setLockPreviousOutputValue(true); +outputVariable1.setLockOutputValueInRange(false); +outputVariable1.addTerm(new Constant("f1", 0.840)); +outputVariable1.addTerm(new Constant("f2", 0.450)); +outputVariable1.addTerm(new Constant("f3", 0.040)); +outputVariable1.addTerm(new Constant("f4", -0.180)); +outputVariable1.addTerm(new Constant("f5", -0.190)); +outputVariable1.addTerm(new Constant("f6", -0.040)); +outputVariable1.addTerm(new Constant("f7", 0.090)); +outputVariable1.addTerm(new Constant("f8", 0.120)); +outputVariable1.addTerm(new Constant("f9", 0.040)); +engine.addOutputVariable(outputVariable1); + +OutputVariable outputVariable2 = new OutputVariable(); +outputVariable2.setEnabled(true); +outputVariable2.setName("trueFx"); +outputVariable2.setRange(-1.000, 1.000); +outputVariable2.fuzzyOutput().setAccumulation(null); +outputVariable2.setDefuzzifier(new WeightedAverage("Automatic")); +outputVariable2.setDefaultValue(Double.NaN); +outputVariable2.setLockPreviousOutputValue(true); +outputVariable2.setLockOutputValueInRange(false); +outputVariable2.addTerm(Function.create("fx", "sin(inputX)/inputX", engine)); +engine.addOutputVariable(outputVariable2); + +OutputVariable outputVariable3 = new OutputVariable(); +outputVariable3.setEnabled(true); +outputVariable3.setName("diffFx"); +outputVariable3.setRange(-1.000, 1.000); +outputVariable3.fuzzyOutput().setAccumulation(null); +outputVariable3.setDefuzzifier(new WeightedAverage("Automatic")); +outputVariable3.setDefaultValue(Double.NaN); +outputVariable3.setLockPreviousOutputValue(false); +outputVariable3.setLockOutputValueInRange(false); +outputVariable3.addTerm(Function.create("diff", "fabs(outputFx-trueFx)", engine)); +engine.addOutputVariable(outputVariable3); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(null); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_1 then outputFx is f1", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_2 then outputFx is f2", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_3 then outputFx is f3", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_4 then outputFx is f4", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_5 then outputFx is f5", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_6 then outputFx is f6", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_7 then outputFx is f7", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_8 then outputFx is f8", engine)); +ruleBlock.addRule(Rule.parse("if inputX is NEAR_9 then outputFx is f9", engine)); +ruleBlock.addRule(Rule.parse("if inputX is any then trueFx is fx and diffFx is diff", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/takagi-sugeno/octave/COPYING b/examples/takagi-sugeno/octave/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/examples/takagi-sugeno/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/takagi-sugeno/octave/DESCRIPTION b/examples/takagi-sugeno/octave/DESCRIPTION new file mode 100644 index 0000000..35df57d --- /dev/null +++ b/examples/takagi-sugeno/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/takagi-sugeno/octave/cubic_approximator.cpp b/examples/takagi-sugeno/octave/cubic_approximator.cpp new file mode 100644 index 0000000..6941fa5 --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.cpp @@ -0,0 +1,68 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Cubic-Approximator"); + +InputVariable* inputVariable = new InputVariable; +inputVariable->setEnabled(true); +inputVariable->setName("X"); +inputVariable->setRange(-5.000, 5.000); +inputVariable->addTerm(new Triangle("AboutNegFive", -6.000, -5.000, -4.000)); +inputVariable->addTerm(new Triangle("AboutNegFour", -5.000, -4.000, -3.000)); +inputVariable->addTerm(new Triangle("AboutNegThree", -4.000, -3.000, -2.000)); +inputVariable->addTerm(new Triangle("AboutNegTwo", -3.000, -2.000, -1.000)); +inputVariable->addTerm(new Triangle("AboutNegOne", -2.000, -1.000, 0.000)); +inputVariable->addTerm(new Triangle("AboutZero", -1.000, 0.000, 1.000)); +inputVariable->addTerm(new Triangle("AboutOne", 0.000, 1.000, 2.000)); +inputVariable->addTerm(new Triangle("AboutTwo", 1.000, 2.000, 3.000)); +inputVariable->addTerm(new Triangle("AboutThree", 2.000, 3.000, 4.000)); +inputVariable->addTerm(new Triangle("AboutFour", 3.000, 4.000, 5.000)); +inputVariable->addTerm(new Triangle("AboutFive", 4.000, 5.000, 6.000)); +engine->addInputVariable(inputVariable); + +OutputVariable* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("ApproxXCubed"); +outputVariable->setRange(-5.000, 5.000); +outputVariable->fuzzyOutput()->setAccumulation(fl::null); +outputVariable->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(Linear::create("TangentatNegFive", engine, 75.000, 250.000)); +outputVariable->addTerm(Linear::create("TangentatNegFour", engine, 48.000, 128.000)); +outputVariable->addTerm(Linear::create("TangentatNegThree", engine, 27.000, 54.000)); +outputVariable->addTerm(Linear::create("TangentatNegTwo", engine, 12.000, 16.000)); +outputVariable->addTerm(Linear::create("TangentatNegOne", engine, 3.000, 2.000)); +outputVariable->addTerm(Linear::create("TangentatZero", engine, 0.000, 0.000)); +outputVariable->addTerm(Linear::create("TangentatOne", engine, 3.000, -2.000)); +outputVariable->addTerm(Linear::create("TangentatTwo", engine, 12.000, -16.000)); +outputVariable->addTerm(Linear::create("TangentatThree", engine, 27.000, -54.000)); +outputVariable->addTerm(Linear::create("TangentatFour", engine, 48.000, -128.000)); +outputVariable->addTerm(Linear::create("TangentatFive", engine, 75.000, -250.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(fl::null); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +ruleBlock->addRule(fl::Rule::parse("if X is AboutNegFive then ApproxXCubed is TangentatNegFive", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutNegFour then ApproxXCubed is TangentatNegFour", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutNegThree then ApproxXCubed is TangentatNegThree", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutNegTwo then ApproxXCubed is TangentatNegTwo", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutNegOne then ApproxXCubed is TangentatNegOne", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutZero then ApproxXCubed is TangentatZero", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutOne then ApproxXCubed is TangentatOne", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutTwo then ApproxXCubed is TangentatTwo", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutThree then ApproxXCubed is TangentatThree", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutFour then ApproxXCubed is TangentatFour", engine)); +ruleBlock->addRule(fl::Rule::parse("if X is AboutFive then ApproxXCubed is TangentatFive", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/takagi-sugeno/octave/cubic_approximator.fcl b/examples/takagi-sugeno/octave/cubic_approximator.fcl new file mode 100644 index 0000000..db88e44 --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.fcl @@ -0,0 +1,57 @@ +FUNCTION_BLOCK Cubic-Approximator + +VAR_INPUT + X: REAL; +END_VAR + +VAR_OUTPUT + ApproxXCubed: REAL; +END_VAR + +FUZZIFY X + RANGE := (-5.000 .. 5.000); + TERM AboutNegFive := Triangle -6.000 -5.000 -4.000; + TERM AboutNegFour := Triangle -5.000 -4.000 -3.000; + TERM AboutNegThree := Triangle -4.000 -3.000 -2.000; + TERM AboutNegTwo := Triangle -3.000 -2.000 -1.000; + TERM AboutNegOne := Triangle -2.000 -1.000 0.000; + TERM AboutZero := Triangle -1.000 0.000 1.000; + TERM AboutOne := Triangle 0.000 1.000 2.000; + TERM AboutTwo := Triangle 1.000 2.000 3.000; + TERM AboutThree := Triangle 2.000 3.000 4.000; + TERM AboutFour := Triangle 3.000 4.000 5.000; + TERM AboutFive := Triangle 4.000 5.000 6.000; +END_FUZZIFY + +DEFUZZIFY ApproxXCubed + RANGE := (-5.000 .. 5.000); + TERM TangentatNegFive := Linear 75.000 250.000; + TERM TangentatNegFour := Linear 48.000 128.000; + TERM TangentatNegThree := Linear 27.000 54.000; + TERM TangentatNegTwo := Linear 12.000 16.000; + TERM TangentatNegOne := Linear 3.000 2.000; + TERM TangentatZero := Linear 0.000 0.000; + TERM TangentatOne := Linear 3.000 -2.000; + TERM TangentatTwo := Linear 12.000 -16.000; + TERM TangentatThree := Linear 27.000 -54.000; + TERM TangentatFour := Linear 48.000 -128.000; + TERM TangentatFive := Linear 75.000 -250.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + RULE 1 : if X is AboutNegFive then ApproxXCubed is TangentatNegFive + RULE 2 : if X is AboutNegFour then ApproxXCubed is TangentatNegFour + RULE 3 : if X is AboutNegThree then ApproxXCubed is TangentatNegThree + RULE 4 : if X is AboutNegTwo then ApproxXCubed is TangentatNegTwo + RULE 5 : if X is AboutNegOne then ApproxXCubed is TangentatNegOne + RULE 6 : if X is AboutZero then ApproxXCubed is TangentatZero + RULE 7 : if X is AboutOne then ApproxXCubed is TangentatOne + RULE 8 : if X is AboutTwo then ApproxXCubed is TangentatTwo + RULE 9 : if X is AboutThree then ApproxXCubed is TangentatThree + RULE 10 : if X is AboutFour then ApproxXCubed is TangentatFour + RULE 11 : if X is AboutFive then ApproxXCubed is TangentatFive +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/takagi-sugeno/octave/cubic_approximator.fis b/examples/takagi-sugeno/octave/cubic_approximator.fis new file mode 100644 index 0000000..b69675b --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.fis @@ -0,0 +1,56 @@ +[System] +Name='Cubic-Approximator' +Type='sugeno' +NumInputs=1 +NumOutputs=1 +NumRules=11 +AndMethod='' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[Input1] +Name='X' +Range=[-5.000 5.000] +NumMFs=11 +MF1='AboutNegFive':'trimf',[-6.000 -5.000 -4.000] +MF2='AboutNegFour':'trimf',[-5.000 -4.000 -3.000] +MF3='AboutNegThree':'trimf',[-4.000 -3.000 -2.000] +MF4='AboutNegTwo':'trimf',[-3.000 -2.000 -1.000] +MF5='AboutNegOne':'trimf',[-2.000 -1.000 0.000] +MF6='AboutZero':'trimf',[-1.000 0.000 1.000] +MF7='AboutOne':'trimf',[0.000 1.000 2.000] +MF8='AboutTwo':'trimf',[1.000 2.000 3.000] +MF9='AboutThree':'trimf',[2.000 3.000 4.000] +MF10='AboutFour':'trimf',[3.000 4.000 5.000] +MF11='AboutFive':'trimf',[4.000 5.000 6.000] + +[Output1] +Name='ApproxXCubed' +Range=[-5.000 5.000] +NumMFs=11 +MF1='TangentatNegFive':'linear',[75.000 250.000] +MF2='TangentatNegFour':'linear',[48.000 128.000] +MF3='TangentatNegThree':'linear',[27.000 54.000] +MF4='TangentatNegTwo':'linear',[12.000 16.000] +MF5='TangentatNegOne':'linear',[3.000 2.000] +MF6='TangentatZero':'linear',[0.000 0.000] +MF7='TangentatOne':'linear',[3.000 -2.000] +MF8='TangentatTwo':'linear',[12.000 -16.000] +MF9='TangentatThree':'linear',[27.000 -54.000] +MF10='TangentatFour':'linear',[48.000 -128.000] +MF11='TangentatFive':'linear',[75.000 -250.000] + +[Rules] +1.000 , 1.000 (1.000) : 1 +2.000 , 2.000 (1.000) : 1 +3.000 , 3.000 (1.000) : 1 +4.000 , 4.000 (1.000) : 1 +5.000 , 5.000 (1.000) : 1 +6.000 , 6.000 (1.000) : 1 +7.000 , 7.000 (1.000) : 1 +8.000 , 8.000 (1.000) : 1 +9.000 , 9.000 (1.000) : 1 +10.000 , 10.000 (1.000) : 1 +11.000 , 11.000 (1.000) : 1 diff --git a/examples/takagi-sugeno/octave/cubic_approximator.fld b/examples/takagi-sugeno/octave/cubic_approximator.fld new file mode 100644 index 0000000..e13c169 --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.fld @@ -0,0 +1,1026 @@ +#@Engine: Cubic-Approximator; +#@InputVariable: X; @OutputVariable: ApproxXCubed; +-5.00000000 -125.00000000 +-4.99022483 -124.14236490 +-4.98044966 -123.28988972 +-4.97067449 -122.44257445 +-4.96089932 -121.60041910 +-4.95112414 -120.76342366 +-4.94134897 -119.93158814 +-4.93157380 -119.10491253 +-4.92179863 -118.28339683 +-4.91202346 -117.46704105 +-4.90224829 -116.65584518 +-4.89247312 -115.84980923 +-4.88269795 -115.04893319 +-4.87292278 -114.25321706 +-4.86314761 -113.46266085 +-4.85337243 -112.67726456 +-4.84359726 -111.89702818 +-4.83382209 -111.12195171 +-4.82404692 -110.35203516 +-4.81427175 -109.58727852 +-4.80449658 -108.82768179 +-4.79472141 -108.07324498 +-4.78494624 -107.32396809 +-4.77517107 -106.57985111 +-4.76539589 -105.84089404 +-4.75562072 -105.10709689 +-4.74584555 -104.37845965 +-4.73607038 -103.65498233 +-4.72629521 -102.93666492 +-4.71652004 -102.22350742 +-4.70674487 -101.51550984 +-4.69696970 -100.81267218 +-4.68719453 -100.11499442 +-4.67741935 -99.42247659 +-4.66764418 -98.73511866 +-4.65786901 -98.05292065 +-4.64809384 -97.37588256 +-4.63831867 -96.70400438 +-4.62854350 -96.03728611 +-4.61876833 -95.37572776 +-4.60899316 -94.71932933 +-4.59921799 -94.06809080 +-4.58944282 -93.42201219 +-4.57966764 -92.78109350 +-4.56989247 -92.14533472 +-4.56011730 -91.51473586 +-4.55034213 -90.88929690 +-4.54056696 -90.26901787 +-4.53079179 -89.65389875 +-4.52101662 -89.04393954 +-4.51124145 -88.43914024 +-4.50146628 -87.83950086 +-4.49169110 -87.24502140 +-4.48191593 -86.65570185 +-4.47214076 -86.07154221 +-4.46236559 -85.49254249 +-4.45259042 -84.91870268 +-4.44281525 -84.35002279 +-4.43304008 -83.78650281 +-4.42326491 -83.22814275 +-4.41348974 -82.67494260 +-4.40371457 -82.12690236 +-4.39393939 -81.58402204 +-4.38416422 -81.04630163 +-4.37438905 -80.51374114 +-4.36461388 -79.98634056 +-4.35483871 -79.46409990 +-4.34506354 -78.94701915 +-4.33528837 -78.43509831 +-4.32551320 -77.92833739 +-4.31573803 -77.42673638 +-4.30596285 -76.93029529 +-4.29618768 -76.43901411 +-4.28641251 -75.95289285 +-4.27663734 -75.47193150 +-4.26686217 -74.99613006 +-4.25708700 -74.52548854 +-4.24731183 -74.06000694 +-4.23753666 -73.59968525 +-4.22776149 -73.14452347 +-4.21798631 -72.69452160 +-4.20821114 -72.24967966 +-4.19843597 -71.80999762 +-4.18866080 -71.37547550 +-4.17888563 -70.94611329 +-4.16911046 -70.52191100 +-4.15933529 -70.10286863 +-4.14956012 -69.68898616 +-4.13978495 -69.28026361 +-4.13000978 -68.87670098 +-4.12023460 -68.47829826 +-4.11045943 -68.08505545 +-4.10068426 -67.69697256 +-4.09090909 -67.31404959 +-4.08113392 -66.93628652 +-4.07135875 -66.56368338 +-4.06158358 -66.19624014 +-4.05180841 -65.83395682 +-4.04203324 -65.47683342 +-4.03225806 -65.12486993 +-4.02248289 -64.77806635 +-4.01270772 -64.43642269 +-4.00293255 -64.09993894 +-3.99315738 -63.60411131 +-3.98338221 -63.04196730 +-3.97360704 -62.48383657 +-3.96383187 -61.92971910 +-3.95405670 -61.37961490 +-3.94428152 -60.83352396 +-3.93450635 -60.29144630 +-3.92473118 -59.75338189 +-3.91495601 -59.21933076 +-3.90518084 -58.68929289 +-3.89540567 -58.16326829 +-3.88563050 -57.64125696 +-3.87585533 -57.12325889 +-3.86608016 -56.60927409 +-3.85630499 -56.09930255 +-3.84652981 -55.59334428 +-3.83675464 -55.09139928 +-3.82697947 -54.59346755 +-3.81720430 -54.09954908 +-3.80742913 -53.60964388 +-3.79765396 -53.12375195 +-3.78787879 -52.64187328 +-3.77810362 -52.16400788 +-3.76832845 -51.69015574 +-3.75855327 -51.22031688 +-3.74877810 -50.75449128 +-3.73900293 -50.29267894 +-3.72922776 -49.83487987 +-3.71945259 -49.38109407 +-3.70967742 -48.93132154 +-3.69990225 -48.48556227 +-3.69012708 -48.04381627 +-3.68035191 -47.60608354 +-3.67057674 -47.17236407 +-3.66080156 -46.74265787 +-3.65102639 -46.31696494 +-3.64125122 -45.89528527 +-3.63147605 -45.47761887 +-3.62170088 -45.06396574 +-3.61192571 -44.65432587 +-3.60215054 -44.24869927 +-3.59237537 -43.84708594 +-3.58260020 -43.44948587 +-3.57282502 -43.05589907 +-3.56304985 -42.66632554 +-3.55327468 -42.28076527 +-3.54349951 -41.89921827 +-3.53372434 -41.52168454 +-3.52394917 -41.14816407 +-3.51417400 -40.77865687 +-3.50439883 -40.41316294 +-3.49462366 -40.05168228 +-3.48484848 -39.69421488 +-3.47507331 -39.34076074 +-3.46529814 -38.99131988 +-3.45552297 -38.64589228 +-3.44574780 -38.30447795 +-3.43597263 -37.96707688 +-3.42619746 -37.63368908 +-3.41642229 -37.30431455 +-3.40664712 -36.97895328 +-3.39687195 -36.65760528 +-3.38709677 -36.34027055 +-3.37732160 -36.02694909 +-3.36754643 -35.71764089 +-3.35777126 -35.41234596 +-3.34799609 -35.11106429 +-3.33822092 -34.81379589 +-3.32844575 -34.52054076 +-3.31867058 -34.23129889 +-3.30889541 -33.94607030 +-3.29912023 -33.66485496 +-3.28934506 -33.38765290 +-3.27956989 -33.11446410 +-3.26979472 -32.84528857 +-3.26001955 -32.58012630 +-3.25024438 -32.31897730 +-3.24046921 -32.06184157 +-3.23069404 -31.80871911 +-3.22091887 -31.55960991 +-3.21114370 -31.31451398 +-3.20136852 -31.07343131 +-3.19159335 -30.83636192 +-3.18181818 -30.60330579 +-3.17204301 -30.37426292 +-3.16226784 -30.14923332 +-3.15249267 -29.92821699 +-3.14271750 -29.71121393 +-3.13294233 -29.49822413 +-3.12316716 -29.28924760 +-3.11339198 -29.08428433 +-3.10361681 -28.88333434 +-3.09384164 -28.68639761 +-3.08406647 -28.49347414 +-3.07429130 -28.30456394 +-3.06451613 -28.11966701 +-3.05474096 -27.93878335 +-3.04496579 -27.76191295 +-3.03519062 -27.58905582 +-3.02541544 -27.42021196 +-3.01564027 -27.25538136 +-3.00586510 -27.09456403 +-2.99608993 -26.86728700 +-2.98631476 -26.53751114 +-2.97653959 -26.21060190 +-2.96676442 -25.88655928 +-2.95698925 -25.56538328 +-2.94721408 -25.24707390 +-2.93743891 -24.93163113 +-2.92766373 -24.61905499 +-2.91788856 -24.30934546 +-2.90811339 -24.00250256 +-2.89833822 -23.69852627 +-2.88856305 -23.39741660 +-2.87878788 -23.09917355 +-2.86901271 -22.80379712 +-2.85923754 -22.51128731 +-2.84946237 -22.22164412 +-2.83968719 -21.93486755 +-2.82991202 -21.65095759 +-2.82013685 -21.36991426 +-2.81036168 -21.09173754 +-2.80058651 -20.81642745 +-2.79081134 -20.54398397 +-2.78103617 -20.27440711 +-2.77126100 -20.00769687 +-2.76148583 -19.74385325 +-2.75171065 -19.48287625 +-2.74193548 -19.22476587 +-2.73216031 -18.96952211 +-2.72238514 -18.71714496 +-2.71260997 -18.46763444 +-2.70283480 -18.22099053 +-2.69305963 -17.97721324 +-2.68328446 -17.73630258 +-2.67350929 -17.49825853 +-2.66373412 -17.26308110 +-2.65395894 -17.03077029 +-2.64418377 -16.80132610 +-2.63440860 -16.57474853 +-2.62463343 -16.35103757 +-2.61485826 -16.13019324 +-2.60508309 -15.91221552 +-2.59530792 -15.69710443 +-2.58553275 -15.48485995 +-2.57575758 -15.27548209 +-2.56598240 -15.06897086 +-2.55620723 -14.86532624 +-2.54643206 -14.66454824 +-2.53665689 -14.46663685 +-2.52688172 -14.27159209 +-2.51710655 -14.07941395 +-2.50733138 -13.89010242 +-2.49755621 -13.70365752 +-2.48778104 -13.52007923 +-2.47800587 -13.33936757 +-2.46823069 -13.16152252 +-2.45845552 -12.98654409 +-2.44868035 -12.81443228 +-2.43890518 -12.64518709 +-2.42913001 -12.47880852 +-2.41935484 -12.31529657 +-2.40957967 -12.15465123 +-2.39980450 -11.99687252 +-2.39002933 -11.84196042 +-2.38025415 -11.68991495 +-2.37047898 -11.54073609 +-2.36070381 -11.39442385 +-2.35092864 -11.25097823 +-2.34115347 -11.11039923 +-2.33137830 -10.97268685 +-2.32160313 -10.83784109 +-2.31182796 -10.70586195 +-2.30205279 -10.57674943 +-2.29227761 -10.45050352 +-2.28250244 -10.32712424 +-2.27272727 -10.20661157 +-2.26295210 -10.08896552 +-2.25317693 -9.97418610 +-2.24340176 -9.86227329 +-2.23362659 -9.75322710 +-2.22385142 -9.64704753 +-2.21407625 -9.54373457 +-2.20430108 -9.44328824 +-2.19452590 -9.34570853 +-2.18475073 -9.25099543 +-2.17497556 -9.15914896 +-2.16520039 -9.07016910 +-2.15542522 -8.98405586 +-2.14565005 -8.90080925 +-2.13587488 -8.82042925 +-2.12609971 -8.74291587 +-2.11632454 -8.66826911 +-2.10654936 -8.59648896 +-2.09677419 -8.52757544 +-2.08699902 -8.46152854 +-2.07722385 -8.39834825 +-2.06744868 -8.33803459 +-2.05767351 -8.28058754 +-2.04789834 -8.22600711 +-2.03812317 -8.17429331 +-2.02834800 -8.12544612 +-2.01857283 -8.07946555 +-2.00879765 -8.03635160 +-1.99902248 -7.98436833 +-1.98924731 -7.82899757 +-1.97947214 -7.67534679 +-1.96969697 -7.52341598 +-1.95992180 -7.37320514 +-1.95014663 -7.22471427 +-1.94037146 -7.07794337 +-1.93059629 -6.93289245 +-1.92082111 -6.78956149 +-1.91104594 -6.64795051 +-1.90127077 -6.50805950 +-1.89149560 -6.36988846 +-1.88172043 -6.23343739 +-1.87194526 -6.09870629 +-1.86217009 -5.96569517 +-1.85239492 -5.83440402 +-1.84261975 -5.70483283 +-1.83284457 -5.57698162 +-1.82306940 -5.45085038 +-1.81329423 -5.32643911 +-1.80351906 -5.20374782 +-1.79374389 -5.08277649 +-1.78396872 -4.96352514 +-1.77419355 -4.84599376 +-1.76441838 -4.73018235 +-1.75464321 -4.61609091 +-1.74486804 -4.50371944 +-1.73509286 -4.39306794 +-1.72531769 -4.28413642 +-1.71554252 -4.17692486 +-1.70576735 -4.07143328 +-1.69599218 -3.96766167 +-1.68621701 -3.86561003 +-1.67644184 -3.76527836 +-1.66666667 -3.66666667 +-1.65689150 -3.56977494 +-1.64711632 -3.47460319 +-1.63734115 -3.38115141 +-1.62756598 -3.28941960 +-1.61779081 -3.19940776 +-1.60801564 -3.11111589 +-1.59824047 -3.02454399 +-1.58846530 -2.93969207 +-1.57869013 -2.85656011 +-1.56891496 -2.77514813 +-1.55913978 -2.69545612 +-1.54936461 -2.61748408 +-1.53958944 -2.54123202 +-1.52981427 -2.46669992 +-1.52003910 -2.39388779 +-1.51026393 -2.32279564 +-1.50048876 -2.25342346 +-1.49071359 -2.18577125 +-1.48093842 -2.11983901 +-1.47116325 -2.05562674 +-1.46138807 -1.99313445 +-1.45161290 -1.93236212 +-1.44183773 -1.87330977 +-1.43206256 -1.81597739 +-1.42228739 -1.76036498 +-1.41251222 -1.70647254 +-1.40273705 -1.65430007 +-1.39296188 -1.60384758 +-1.38318671 -1.55511505 +-1.37341153 -1.50810250 +-1.36363636 -1.46280992 +-1.35386119 -1.41923731 +-1.34408602 -1.37738467 +-1.33431085 -1.33725200 +-1.32453568 -1.29883931 +-1.31476051 -1.26214658 +-1.30498534 -1.22717383 +-1.29521017 -1.19392105 +-1.28543500 -1.16238824 +-1.27565982 -1.13257540 +-1.26588465 -1.10448253 +-1.25610948 -1.07810964 +-1.24633431 -1.05345671 +-1.23655914 -1.03052376 +-1.22678397 -1.00931078 +-1.21700880 -0.98981777 +-1.20723363 -0.97204473 +-1.19745846 -0.95599166 +-1.18768328 -0.94165857 +-1.17790811 -0.92904544 +-1.16813294 -0.91815229 +-1.15835777 -0.90897911 +-1.14858260 -0.90152590 +-1.13880743 -0.89579266 +-1.12903226 -0.89177940 +-1.11925709 -0.88948610 +-1.10948192 -0.88891278 +-1.09970674 -0.89005943 +-1.08993157 -0.89292604 +-1.08015640 -0.89751263 +-1.07038123 -0.90381920 +-1.06060606 -0.91184573 +-1.05083089 -0.92159223 +-1.04105572 -0.93305871 +-1.03128055 -0.94624516 +-1.02150538 -0.96115158 +-1.01173021 -0.97777797 +-1.00195503 -0.99612433 +-0.99217986 -0.96890292 +-0.98240469 -0.93054755 +-0.97262952 -0.89276551 +-0.96285435 -0.85555680 +-0.95307918 -0.81892141 +-0.94330401 -0.78285934 +-0.93352884 -0.74737059 +-0.92375367 -0.71245517 +-0.91397849 -0.67811308 +-0.90420332 -0.64434430 +-0.89442815 -0.61114885 +-0.88465298 -0.57852673 +-0.87487781 -0.54647793 +-0.86510264 -0.51500245 +-0.85532747 -0.48410030 +-0.84555230 -0.45377147 +-0.83577713 -0.42401596 +-0.82600196 -0.39483378 +-0.81622678 -0.36622492 +-0.80645161 -0.33818939 +-0.79667644 -0.31072718 +-0.78690127 -0.28383829 +-0.77712610 -0.25752273 +-0.76735093 -0.23178049 +-0.75757576 -0.20661157 +-0.74780059 -0.18201598 +-0.73802542 -0.15799371 +-0.72825024 -0.13454477 +-0.71847507 -0.11166915 +-0.70869990 -0.08936685 +-0.69892473 -0.06763788 +-0.68914956 -0.04648223 +-0.67937439 -0.02589990 +-0.66959922 -0.00589090 +-0.65982405 0.01354478 +-0.65004888 0.03240713 +-0.64027370 0.05069616 +-0.63049853 0.06841186 +-0.62072336 0.08555425 +-0.61094819 0.10212330 +-0.60117302 0.11811904 +-0.59139785 0.13354145 +-0.58162268 0.14839054 +-0.57184751 0.16266630 +-0.56207234 0.17636874 +-0.55229717 0.18949785 +-0.54252199 0.20205365 +-0.53274682 0.21403611 +-0.52297165 0.22544526 +-0.51319648 0.23628108 +-0.50342131 0.24654357 +-0.49364614 0.25623275 +-0.48387097 0.26534860 +-0.47409580 0.27389112 +-0.46432063 0.28186032 +-0.45454545 0.28925620 +-0.44477028 0.29607875 +-0.43499511 0.30232798 +-0.42521994 0.30800389 +-0.41544477 0.31310647 +-0.40566960 0.31763573 +-0.39589443 0.32159166 +-0.38611926 0.32497427 +-0.37634409 0.32778356 +-0.36656891 0.33001952 +-0.35679374 0.33168216 +-0.34701857 0.33277148 +-0.33724340 0.33328747 +-0.32746823 0.33323014 +-0.31769306 0.33259948 +-0.30791789 0.33139550 +-0.29814272 0.32961820 +-0.28836755 0.32726757 +-0.27859238 0.32434362 +-0.26881720 0.32084634 +-0.25904203 0.31677574 +-0.24926686 0.31213182 +-0.23949169 0.30691457 +-0.22971652 0.30112400 +-0.21994135 0.29476011 +-0.21016618 0.28782289 +-0.20039101 0.28031235 +-0.19061584 0.27222848 +-0.18084066 0.26357129 +-0.17106549 0.25434078 +-0.16129032 0.24453694 +-0.15151515 0.23415978 +-0.14173998 0.22320929 +-0.13196481 0.21168549 +-0.12218964 0.19958835 +-0.11241447 0.18691790 +-0.10263930 0.17367412 +-0.09286413 0.15985701 +-0.08308895 0.14546659 +-0.07331378 0.13050283 +-0.06353861 0.11496576 +-0.05376344 0.09885536 +-0.04398827 0.08217164 +-0.03421310 0.06491459 +-0.02443793 0.04708422 +-0.01466276 0.02868052 +-0.00488759 0.00970351 +0.00488759 -0.00970351 +0.01466276 -0.02868052 +0.02443793 -0.04708422 +0.03421310 -0.06491459 +0.04398827 -0.08217164 +0.05376344 -0.09885536 +0.06353861 -0.11496576 +0.07331378 -0.13050283 +0.08308895 -0.14546659 +0.09286413 -0.15985701 +0.10263930 -0.17367412 +0.11241447 -0.18691790 +0.12218964 -0.19958835 +0.13196481 -0.21168549 +0.14173998 -0.22320929 +0.15151515 -0.23415978 +0.16129032 -0.24453694 +0.17106549 -0.25434078 +0.18084066 -0.26357129 +0.19061584 -0.27222848 +0.20039101 -0.28031235 +0.21016618 -0.28782289 +0.21994135 -0.29476011 +0.22971652 -0.30112400 +0.23949169 -0.30691457 +0.24926686 -0.31213182 +0.25904203 -0.31677574 +0.26881720 -0.32084634 +0.27859238 -0.32434362 +0.28836755 -0.32726757 +0.29814272 -0.32961820 +0.30791789 -0.33139550 +0.31769306 -0.33259948 +0.32746823 -0.33323014 +0.33724340 -0.33328747 +0.34701857 -0.33277148 +0.35679374 -0.33168216 +0.36656891 -0.33001952 +0.37634409 -0.32778356 +0.38611926 -0.32497427 +0.39589443 -0.32159166 +0.40566960 -0.31763573 +0.41544477 -0.31310647 +0.42521994 -0.30800389 +0.43499511 -0.30232798 +0.44477028 -0.29607875 +0.45454545 -0.28925620 +0.46432063 -0.28186032 +0.47409580 -0.27389112 +0.48387097 -0.26534860 +0.49364614 -0.25623275 +0.50342131 -0.24654357 +0.51319648 -0.23628108 +0.52297165 -0.22544526 +0.53274682 -0.21403611 +0.54252199 -0.20205365 +0.55229717 -0.18949785 +0.56207234 -0.17636874 +0.57184751 -0.16266630 +0.58162268 -0.14839054 +0.59139785 -0.13354145 +0.60117302 -0.11811904 +0.61094819 -0.10212330 +0.62072336 -0.08555425 +0.63049853 -0.06841186 +0.64027370 -0.05069616 +0.65004888 -0.03240713 +0.65982405 -0.01354478 +0.66959922 0.00589090 +0.67937439 0.02589990 +0.68914956 0.04648223 +0.69892473 0.06763788 +0.70869990 0.08936685 +0.71847507 0.11166915 +0.72825024 0.13454477 +0.73802542 0.15799371 +0.74780059 0.18201598 +0.75757576 0.20661157 +0.76735093 0.23178049 +0.77712610 0.25752273 +0.78690127 0.28383829 +0.79667644 0.31072718 +0.80645161 0.33818939 +0.81622678 0.36622492 +0.82600196 0.39483378 +0.83577713 0.42401596 +0.84555230 0.45377147 +0.85532747 0.48410030 +0.86510264 0.51500245 +0.87487781 0.54647793 +0.88465298 0.57852673 +0.89442815 0.61114885 +0.90420332 0.64434430 +0.91397849 0.67811308 +0.92375367 0.71245517 +0.93352884 0.74737059 +0.94330401 0.78285934 +0.95307918 0.81892141 +0.96285435 0.85555680 +0.97262952 0.89276551 +0.98240469 0.93054755 +0.99217986 0.96890292 +1.00195503 0.99612433 +1.01173021 0.97777797 +1.02150538 0.96115158 +1.03128055 0.94624516 +1.04105572 0.93305871 +1.05083089 0.92159223 +1.06060606 0.91184573 +1.07038123 0.90381920 +1.08015640 0.89751263 +1.08993157 0.89292604 +1.09970674 0.89005943 +1.10948192 0.88891278 +1.11925709 0.88948610 +1.12903226 0.89177940 +1.13880743 0.89579266 +1.14858260 0.90152590 +1.15835777 0.90897911 +1.16813294 0.91815229 +1.17790811 0.92904544 +1.18768328 0.94165857 +1.19745846 0.95599166 +1.20723363 0.97204473 +1.21700880 0.98981777 +1.22678397 1.00931078 +1.23655914 1.03052376 +1.24633431 1.05345671 +1.25610948 1.07810964 +1.26588465 1.10448253 +1.27565982 1.13257540 +1.28543500 1.16238824 +1.29521017 1.19392105 +1.30498534 1.22717383 +1.31476051 1.26214658 +1.32453568 1.29883931 +1.33431085 1.33725200 +1.34408602 1.37738467 +1.35386119 1.41923731 +1.36363636 1.46280992 +1.37341153 1.50810250 +1.38318671 1.55511505 +1.39296188 1.60384758 +1.40273705 1.65430007 +1.41251222 1.70647254 +1.42228739 1.76036498 +1.43206256 1.81597739 +1.44183773 1.87330977 +1.45161290 1.93236212 +1.46138807 1.99313445 +1.47116325 2.05562674 +1.48093842 2.11983901 +1.49071359 2.18577125 +1.50048876 2.25342346 +1.51026393 2.32279564 +1.52003910 2.39388779 +1.52981427 2.46669992 +1.53958944 2.54123202 +1.54936461 2.61748408 +1.55913978 2.69545612 +1.56891496 2.77514813 +1.57869013 2.85656011 +1.58846530 2.93969207 +1.59824047 3.02454399 +1.60801564 3.11111589 +1.61779081 3.19940776 +1.62756598 3.28941960 +1.63734115 3.38115141 +1.64711632 3.47460319 +1.65689150 3.56977494 +1.66666667 3.66666667 +1.67644184 3.76527836 +1.68621701 3.86561003 +1.69599218 3.96766167 +1.70576735 4.07143328 +1.71554252 4.17692486 +1.72531769 4.28413642 +1.73509286 4.39306794 +1.74486804 4.50371944 +1.75464321 4.61609091 +1.76441838 4.73018235 +1.77419355 4.84599376 +1.78396872 4.96352514 +1.79374389 5.08277649 +1.80351906 5.20374782 +1.81329423 5.32643911 +1.82306940 5.45085038 +1.83284457 5.57698162 +1.84261975 5.70483283 +1.85239492 5.83440402 +1.86217009 5.96569517 +1.87194526 6.09870629 +1.88172043 6.23343739 +1.89149560 6.36988846 +1.90127077 6.50805950 +1.91104594 6.64795051 +1.92082111 6.78956149 +1.93059629 6.93289245 +1.94037146 7.07794337 +1.95014663 7.22471427 +1.95992180 7.37320514 +1.96969697 7.52341598 +1.97947214 7.67534679 +1.98924731 7.82899757 +1.99902248 7.98436833 +2.00879765 8.03635160 +2.01857283 8.07946555 +2.02834800 8.12544612 +2.03812317 8.17429331 +2.04789834 8.22600711 +2.05767351 8.28058754 +2.06744868 8.33803459 +2.07722385 8.39834825 +2.08699902 8.46152854 +2.09677419 8.52757544 +2.10654936 8.59648896 +2.11632454 8.66826911 +2.12609971 8.74291587 +2.13587488 8.82042925 +2.14565005 8.90080925 +2.15542522 8.98405586 +2.16520039 9.07016910 +2.17497556 9.15914896 +2.18475073 9.25099543 +2.19452590 9.34570853 +2.20430108 9.44328824 +2.21407625 9.54373457 +2.22385142 9.64704753 +2.23362659 9.75322710 +2.24340176 9.86227329 +2.25317693 9.97418610 +2.26295210 10.08896552 +2.27272727 10.20661157 +2.28250244 10.32712424 +2.29227761 10.45050352 +2.30205279 10.57674943 +2.31182796 10.70586195 +2.32160313 10.83784109 +2.33137830 10.97268685 +2.34115347 11.11039923 +2.35092864 11.25097823 +2.36070381 11.39442385 +2.37047898 11.54073609 +2.38025415 11.68991495 +2.39002933 11.84196042 +2.39980450 11.99687252 +2.40957967 12.15465123 +2.41935484 12.31529657 +2.42913001 12.47880852 +2.43890518 12.64518709 +2.44868035 12.81443228 +2.45845552 12.98654409 +2.46823069 13.16152252 +2.47800587 13.33936757 +2.48778104 13.52007923 +2.49755621 13.70365752 +2.50733138 13.89010242 +2.51710655 14.07941395 +2.52688172 14.27159209 +2.53665689 14.46663685 +2.54643206 14.66454824 +2.55620723 14.86532624 +2.56598240 15.06897086 +2.57575758 15.27548209 +2.58553275 15.48485995 +2.59530792 15.69710443 +2.60508309 15.91221552 +2.61485826 16.13019324 +2.62463343 16.35103757 +2.63440860 16.57474853 +2.64418377 16.80132610 +2.65395894 17.03077029 +2.66373412 17.26308110 +2.67350929 17.49825853 +2.68328446 17.73630258 +2.69305963 17.97721324 +2.70283480 18.22099053 +2.71260997 18.46763444 +2.72238514 18.71714496 +2.73216031 18.96952211 +2.74193548 19.22476587 +2.75171065 19.48287625 +2.76148583 19.74385325 +2.77126100 20.00769687 +2.78103617 20.27440711 +2.79081134 20.54398397 +2.80058651 20.81642745 +2.81036168 21.09173754 +2.82013685 21.36991426 +2.82991202 21.65095759 +2.83968719 21.93486755 +2.84946237 22.22164412 +2.85923754 22.51128731 +2.86901271 22.80379712 +2.87878788 23.09917355 +2.88856305 23.39741660 +2.89833822 23.69852627 +2.90811339 24.00250256 +2.91788856 24.30934546 +2.92766373 24.61905499 +2.93743891 24.93163113 +2.94721408 25.24707390 +2.95698925 25.56538328 +2.96676442 25.88655928 +2.97653959 26.21060190 +2.98631476 26.53751114 +2.99608993 26.86728700 +3.00586510 27.09456403 +3.01564027 27.25538136 +3.02541544 27.42021196 +3.03519062 27.58905582 +3.04496579 27.76191295 +3.05474096 27.93878335 +3.06451613 28.11966701 +3.07429130 28.30456394 +3.08406647 28.49347414 +3.09384164 28.68639761 +3.10361681 28.88333434 +3.11339198 29.08428433 +3.12316716 29.28924760 +3.13294233 29.49822413 +3.14271750 29.71121393 +3.15249267 29.92821699 +3.16226784 30.14923332 +3.17204301 30.37426292 +3.18181818 30.60330579 +3.19159335 30.83636192 +3.20136852 31.07343131 +3.21114370 31.31451398 +3.22091887 31.55960991 +3.23069404 31.80871911 +3.24046921 32.06184157 +3.25024438 32.31897730 +3.26001955 32.58012630 +3.26979472 32.84528857 +3.27956989 33.11446410 +3.28934506 33.38765290 +3.29912023 33.66485496 +3.30889541 33.94607030 +3.31867058 34.23129889 +3.32844575 34.52054076 +3.33822092 34.81379589 +3.34799609 35.11106429 +3.35777126 35.41234596 +3.36754643 35.71764089 +3.37732160 36.02694909 +3.38709677 36.34027055 +3.39687195 36.65760528 +3.40664712 36.97895328 +3.41642229 37.30431455 +3.42619746 37.63368908 +3.43597263 37.96707688 +3.44574780 38.30447795 +3.45552297 38.64589228 +3.46529814 38.99131988 +3.47507331 39.34076074 +3.48484848 39.69421488 +3.49462366 40.05168228 +3.50439883 40.41316294 +3.51417400 40.77865687 +3.52394917 41.14816407 +3.53372434 41.52168454 +3.54349951 41.89921827 +3.55327468 42.28076527 +3.56304985 42.66632554 +3.57282502 43.05589907 +3.58260020 43.44948587 +3.59237537 43.84708594 +3.60215054 44.24869927 +3.61192571 44.65432587 +3.62170088 45.06396574 +3.63147605 45.47761887 +3.64125122 45.89528527 +3.65102639 46.31696494 +3.66080156 46.74265787 +3.67057674 47.17236407 +3.68035191 47.60608354 +3.69012708 48.04381627 +3.69990225 48.48556227 +3.70967742 48.93132154 +3.71945259 49.38109407 +3.72922776 49.83487987 +3.73900293 50.29267894 +3.74877810 50.75449128 +3.75855327 51.22031688 +3.76832845 51.69015574 +3.77810362 52.16400788 +3.78787879 52.64187328 +3.79765396 53.12375195 +3.80742913 53.60964388 +3.81720430 54.09954908 +3.82697947 54.59346755 +3.83675464 55.09139928 +3.84652981 55.59334428 +3.85630499 56.09930255 +3.86608016 56.60927409 +3.87585533 57.12325889 +3.88563050 57.64125696 +3.89540567 58.16326829 +3.90518084 58.68929289 +3.91495601 59.21933076 +3.92473118 59.75338189 +3.93450635 60.29144630 +3.94428152 60.83352396 +3.95405670 61.37961490 +3.96383187 61.92971910 +3.97360704 62.48383657 +3.98338221 63.04196730 +3.99315738 63.60411131 +4.00293255 64.09993894 +4.01270772 64.43642269 +4.02248289 64.77806635 +4.03225806 65.12486993 +4.04203324 65.47683342 +4.05180841 65.83395682 +4.06158358 66.19624014 +4.07135875 66.56368338 +4.08113392 66.93628652 +4.09090909 67.31404959 +4.10068426 67.69697256 +4.11045943 68.08505545 +4.12023460 68.47829826 +4.13000978 68.87670098 +4.13978495 69.28026361 +4.14956012 69.68898616 +4.15933529 70.10286863 +4.16911046 70.52191100 +4.17888563 70.94611329 +4.18866080 71.37547550 +4.19843597 71.80999762 +4.20821114 72.24967966 +4.21798631 72.69452160 +4.22776149 73.14452347 +4.23753666 73.59968525 +4.24731183 74.06000694 +4.25708700 74.52548854 +4.26686217 74.99613006 +4.27663734 75.47193150 +4.28641251 75.95289285 +4.29618768 76.43901411 +4.30596285 76.93029529 +4.31573803 77.42673638 +4.32551320 77.92833739 +4.33528837 78.43509831 +4.34506354 78.94701915 +4.35483871 79.46409990 +4.36461388 79.98634056 +4.37438905 80.51374114 +4.38416422 81.04630163 +4.39393939 81.58402204 +4.40371457 82.12690236 +4.41348974 82.67494260 +4.42326491 83.22814275 +4.43304008 83.78650281 +4.44281525 84.35002279 +4.45259042 84.91870268 +4.46236559 85.49254249 +4.47214076 86.07154221 +4.48191593 86.65570185 +4.49169110 87.24502140 +4.50146628 87.83950086 +4.51124145 88.43914024 +4.52101662 89.04393954 +4.53079179 89.65389875 +4.54056696 90.26901787 +4.55034213 90.88929690 +4.56011730 91.51473586 +4.56989247 92.14533472 +4.57966764 92.78109350 +4.58944282 93.42201219 +4.59921799 94.06809080 +4.60899316 94.71932933 +4.61876833 95.37572776 +4.62854350 96.03728611 +4.63831867 96.70400438 +4.64809384 97.37588256 +4.65786901 98.05292065 +4.66764418 98.73511866 +4.67741935 99.42247659 +4.68719453 100.11499442 +4.69696970 100.81267218 +4.70674487 101.51550984 +4.71652004 102.22350742 +4.72629521 102.93666492 +4.73607038 103.65498233 +4.74584555 104.37845965 +4.75562072 105.10709689 +4.76539589 105.84089404 +4.77517107 106.57985111 +4.78494624 107.32396809 +4.79472141 108.07324498 +4.80449658 108.82768179 +4.81427175 109.58727852 +4.82404692 110.35203516 +4.83382209 111.12195171 +4.84359726 111.89702818 +4.85337243 112.67726456 +4.86314761 113.46266085 +4.87292278 114.25321706 +4.88269795 115.04893319 +4.89247312 115.84980923 +4.90224829 116.65584518 +4.91202346 117.46704105 +4.92179863 118.28339683 +4.93157380 119.10491253 +4.94134897 119.93158814 +4.95112414 120.76342366 +4.96089932 121.60041910 +4.97067449 122.44257445 +4.98044966 123.28988972 +4.99022483 124.14236490 +5.00000000 125.00000000 diff --git a/examples/takagi-sugeno/octave/cubic_approximator.fll b/examples/takagi-sugeno/octave/cubic_approximator.fll new file mode 100644 index 0000000..073e70e --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.fll @@ -0,0 +1,50 @@ +Engine: Cubic-Approximator +InputVariable: X + enabled: true + range: -5.000 5.000 + term: AboutNegFive Triangle -6.000 -5.000 -4.000 + term: AboutNegFour Triangle -5.000 -4.000 -3.000 + term: AboutNegThree Triangle -4.000 -3.000 -2.000 + term: AboutNegTwo Triangle -3.000 -2.000 -1.000 + term: AboutNegOne Triangle -2.000 -1.000 0.000 + term: AboutZero Triangle -1.000 0.000 1.000 + term: AboutOne Triangle 0.000 1.000 2.000 + term: AboutTwo Triangle 1.000 2.000 3.000 + term: AboutThree Triangle 2.000 3.000 4.000 + term: AboutFour Triangle 3.000 4.000 5.000 + term: AboutFive Triangle 4.000 5.000 6.000 +OutputVariable: ApproxXCubed + enabled: true + range: -5.000 5.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: TangentatNegFive Linear 75.000 250.000 + term: TangentatNegFour Linear 48.000 128.000 + term: TangentatNegThree Linear 27.000 54.000 + term: TangentatNegTwo Linear 12.000 16.000 + term: TangentatNegOne Linear 3.000 2.000 + term: TangentatZero Linear 0.000 0.000 + term: TangentatOne Linear 3.000 -2.000 + term: TangentatTwo Linear 12.000 -16.000 + term: TangentatThree Linear 27.000 -54.000 + term: TangentatFour Linear 48.000 -128.000 + term: TangentatFive Linear 75.000 -250.000 +RuleBlock: + enabled: true + conjunction: none + disjunction: none + activation: none + rule: if X is AboutNegFive then ApproxXCubed is TangentatNegFive + rule: if X is AboutNegFour then ApproxXCubed is TangentatNegFour + rule: if X is AboutNegThree then ApproxXCubed is TangentatNegThree + rule: if X is AboutNegTwo then ApproxXCubed is TangentatNegTwo + rule: if X is AboutNegOne then ApproxXCubed is TangentatNegOne + rule: if X is AboutZero then ApproxXCubed is TangentatZero + rule: if X is AboutOne then ApproxXCubed is TangentatOne + rule: if X is AboutTwo then ApproxXCubed is TangentatTwo + rule: if X is AboutThree then ApproxXCubed is TangentatThree + rule: if X is AboutFour then ApproxXCubed is TangentatFour + rule: if X is AboutFive then ApproxXCubed is TangentatFive
\ No newline at end of file diff --git a/examples/takagi-sugeno/octave/cubic_approximator.java b/examples/takagi-sugeno/octave/cubic_approximator.java new file mode 100644 index 0000000..1955a24 --- /dev/null +++ b/examples/takagi-sugeno/octave/cubic_approximator.java @@ -0,0 +1,78 @@ +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 cubic_approximator{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Cubic-Approximator"); + +InputVariable inputVariable = new InputVariable(); +inputVariable.setEnabled(true); +inputVariable.setName("X"); +inputVariable.setRange(-5.000, 5.000); +inputVariable.addTerm(new Triangle("AboutNegFive", -6.000, -5.000, -4.000)); +inputVariable.addTerm(new Triangle("AboutNegFour", -5.000, -4.000, -3.000)); +inputVariable.addTerm(new Triangle("AboutNegThree", -4.000, -3.000, -2.000)); +inputVariable.addTerm(new Triangle("AboutNegTwo", -3.000, -2.000, -1.000)); +inputVariable.addTerm(new Triangle("AboutNegOne", -2.000, -1.000, 0.000)); +inputVariable.addTerm(new Triangle("AboutZero", -1.000, 0.000, 1.000)); +inputVariable.addTerm(new Triangle("AboutOne", 0.000, 1.000, 2.000)); +inputVariable.addTerm(new Triangle("AboutTwo", 1.000, 2.000, 3.000)); +inputVariable.addTerm(new Triangle("AboutThree", 2.000, 3.000, 4.000)); +inputVariable.addTerm(new Triangle("AboutFour", 3.000, 4.000, 5.000)); +inputVariable.addTerm(new Triangle("AboutFive", 4.000, 5.000, 6.000)); +engine.addInputVariable(inputVariable); + +OutputVariable outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("ApproxXCubed"); +outputVariable.setRange(-5.000, 5.000); +outputVariable.fuzzyOutput().setAccumulation(null); +outputVariable.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(Linear.create("TangentatNegFive", engine, 75.000, 250.000)); +outputVariable.addTerm(Linear.create("TangentatNegFour", engine, 48.000, 128.000)); +outputVariable.addTerm(Linear.create("TangentatNegThree", engine, 27.000, 54.000)); +outputVariable.addTerm(Linear.create("TangentatNegTwo", engine, 12.000, 16.000)); +outputVariable.addTerm(Linear.create("TangentatNegOne", engine, 3.000, 2.000)); +outputVariable.addTerm(Linear.create("TangentatZero", engine, 0.000, 0.000)); +outputVariable.addTerm(Linear.create("TangentatOne", engine, 3.000, -2.000)); +outputVariable.addTerm(Linear.create("TangentatTwo", engine, 12.000, -16.000)); +outputVariable.addTerm(Linear.create("TangentatThree", engine, 27.000, -54.000)); +outputVariable.addTerm(Linear.create("TangentatFour", engine, 48.000, -128.000)); +outputVariable.addTerm(Linear.create("TangentatFive", engine, 75.000, -250.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(null); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +ruleBlock.addRule(Rule.parse("if X is AboutNegFive then ApproxXCubed is TangentatNegFive", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutNegFour then ApproxXCubed is TangentatNegFour", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutNegThree then ApproxXCubed is TangentatNegThree", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutNegTwo then ApproxXCubed is TangentatNegTwo", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutNegOne then ApproxXCubed is TangentatNegOne", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutZero then ApproxXCubed is TangentatZero", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutOne then ApproxXCubed is TangentatOne", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutTwo then ApproxXCubed is TangentatTwo", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutThree then ApproxXCubed is TangentatThree", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutFour then ApproxXCubed is TangentatFour", engine)); +ruleBlock.addRule(Rule.parse("if X is AboutFive then ApproxXCubed is TangentatFive", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.cpp b/examples/takagi-sugeno/octave/heart_disease_risk.cpp new file mode 100644 index 0000000..397b303 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.cpp @@ -0,0 +1,69 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Heart-Disease-Risk"); + +InputVariable* inputVariable1 = new InputVariable; +inputVariable1->setEnabled(true); +inputVariable1->setName("LDLLevel"); +inputVariable1->setRange(0.000, 300.000); +inputVariable1->addTerm(new Trapezoid("Low", -1.000, 0.000, 90.000, 110.000)); +inputVariable1->addTerm(new Trapezoid("LowBorderline", 90.000, 110.000, 120.000, 140.000)); +inputVariable1->addTerm(new Trapezoid("Borderline", 120.000, 140.000, 150.000, 170.000)); +inputVariable1->addTerm(new Trapezoid("HighBorderline", 150.000, 170.000, 180.000, 200.000)); +inputVariable1->addTerm(new Trapezoid("High", 180.000, 200.000, 300.000, 301.000)); +engine->addInputVariable(inputVariable1); + +InputVariable* inputVariable2 = new InputVariable; +inputVariable2->setEnabled(true); +inputVariable2->setName("HDLLevel"); +inputVariable2->setRange(0.000, 100.000); +inputVariable2->addTerm(new Trapezoid("LowHDL", -1.000, 0.000, 35.000, 45.000)); +inputVariable2->addTerm(new Trapezoid("ModerateHDL", 35.000, 45.000, 55.000, 65.000)); +inputVariable2->addTerm(new Trapezoid("HighHDL", 55.000, 65.000, 100.000, 101.000)); +engine->addInputVariable(inputVariable2); + +OutputVariable* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("HeartDiseaseRisk"); +outputVariable->setRange(0.000, 10.000); +outputVariable->fuzzyOutput()->setAccumulation(fl::null); +outputVariable->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(new Constant("NoRisk", 0.000)); +outputVariable->addTerm(new Constant("LowRisk", 2.500)); +outputVariable->addTerm(new Constant("MediumRisk", 5.000)); +outputVariable->addTerm(new Constant("HighRisk", 7.500)); +outputVariable->addTerm(new Constant("ExtremeRisk", 10.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new Minimum); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Low and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Low and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Low and HDLLevel is HighHDL then HeartDiseaseRisk is NoRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is LowBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is LowBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is LowBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Borderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Borderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is Borderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is HighBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is HighBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is HighBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is High and HDLLevel is LowHDL then HeartDiseaseRisk is ExtremeRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is High and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock->addRule(fl::Rule::parse("if LDLLevel is High and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.fcl b/examples/takagi-sugeno/octave/heart_disease_risk.fcl new file mode 100644 index 0000000..9629a47 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.fcl @@ -0,0 +1,58 @@ +FUNCTION_BLOCK Heart-Disease-Risk + +VAR_INPUT + LDLLevel: REAL; + HDLLevel: REAL; +END_VAR + +VAR_OUTPUT + HeartDiseaseRisk: REAL; +END_VAR + +FUZZIFY LDLLevel + RANGE := (0.000 .. 300.000); + TERM Low := Trapezoid -1.000 0.000 90.000 110.000; + TERM LowBorderline := Trapezoid 90.000 110.000 120.000 140.000; + TERM Borderline := Trapezoid 120.000 140.000 150.000 170.000; + TERM HighBorderline := Trapezoid 150.000 170.000 180.000 200.000; + TERM High := Trapezoid 180.000 200.000 300.000 301.000; +END_FUZZIFY + +FUZZIFY HDLLevel + RANGE := (0.000 .. 100.000); + TERM LowHDL := Trapezoid -1.000 0.000 35.000 45.000; + TERM ModerateHDL := Trapezoid 35.000 45.000 55.000 65.000; + TERM HighHDL := Trapezoid 55.000 65.000 100.000 101.000; +END_FUZZIFY + +DEFUZZIFY HeartDiseaseRisk + RANGE := (0.000 .. 10.000); + TERM NoRisk := 0.000; + TERM LowRisk := 2.500; + TERM MediumRisk := 5.000; + TERM HighRisk := 7.500; + TERM ExtremeRisk := 10.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : MIN; + RULE 1 : if LDLLevel is Low and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk + RULE 2 : if LDLLevel is Low and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk + RULE 3 : if LDLLevel is Low and HDLLevel is HighHDL then HeartDiseaseRisk is NoRisk + RULE 4 : if LDLLevel is LowBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk + RULE 5 : if LDLLevel is LowBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk + RULE 6 : if LDLLevel is LowBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk + RULE 7 : if LDLLevel is Borderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk + RULE 8 : if LDLLevel is Borderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is MediumRisk + RULE 9 : if LDLLevel is Borderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk + RULE 10 : if LDLLevel is HighBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk + RULE 11 : if LDLLevel is HighBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk + RULE 12 : if LDLLevel is HighBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk + RULE 13 : if LDLLevel is High and HDLLevel is LowHDL then HeartDiseaseRisk is ExtremeRisk + RULE 14 : if LDLLevel is High and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk + RULE 15 : if LDLLevel is High and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.fis b/examples/takagi-sugeno/octave/heart_disease_risk.fis new file mode 100644 index 0000000..11686f1 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.fis @@ -0,0 +1,56 @@ +[System] +Name='Heart-Disease-Risk' +Type='sugeno' +NumInputs=2 +NumOutputs=1 +NumRules=15 +AndMethod='min' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[Input1] +Name='LDLLevel' +Range=[0.000 300.000] +NumMFs=5 +MF1='Low':'trapmf',[-1.000 0.000 90.000 110.000] +MF2='LowBorderline':'trapmf',[90.000 110.000 120.000 140.000] +MF3='Borderline':'trapmf',[120.000 140.000 150.000 170.000] +MF4='HighBorderline':'trapmf',[150.000 170.000 180.000 200.000] +MF5='High':'trapmf',[180.000 200.000 300.000 301.000] + +[Input2] +Name='HDLLevel' +Range=[0.000 100.000] +NumMFs=3 +MF1='LowHDL':'trapmf',[-1.000 0.000 35.000 45.000] +MF2='ModerateHDL':'trapmf',[35.000 45.000 55.000 65.000] +MF3='HighHDL':'trapmf',[55.000 65.000 100.000 101.000] + +[Output1] +Name='HeartDiseaseRisk' +Range=[0.000 10.000] +NumMFs=5 +MF1='NoRisk':'constant',[0.000] +MF2='LowRisk':'constant',[2.500] +MF3='MediumRisk':'constant',[5.000] +MF4='HighRisk':'constant',[7.500] +MF5='ExtremeRisk':'constant',[10.000] + +[Rules] +1.000 1.000 , 3.000 (1.000) : 1 +1.000 2.000 , 2.000 (1.000) : 1 +1.000 3.000 , 1.000 (1.000) : 1 +2.000 1.000 , 3.000 (1.000) : 1 +2.000 2.000 , 2.000 (1.000) : 1 +2.000 3.000 , 2.000 (1.000) : 1 +3.000 1.000 , 4.000 (1.000) : 1 +3.000 2.000 , 3.000 (1.000) : 1 +3.000 3.000 , 2.000 (1.000) : 1 +4.000 1.000 , 4.000 (1.000) : 1 +4.000 2.000 , 4.000 (1.000) : 1 +4.000 3.000 , 3.000 (1.000) : 1 +5.000 1.000 , 5.000 (1.000) : 1 +5.000 2.000 , 4.000 (1.000) : 1 +5.000 3.000 , 3.000 (1.000) : 1 diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.fld b/examples/takagi-sugeno/octave/heart_disease_risk.fld new file mode 100644 index 0000000..afc1fe0 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.fld @@ -0,0 +1,1026 @@ +#@Engine: Heart-Disease-Risk; +#@InputVariable: LDLLevel; @InputVariable: HDLLevel; @OutputVariable: HeartDiseaseRisk; +0.00000000 0.00000000 5.00000000 +0.00000000 3.22580645 5.00000000 +0.00000000 6.45161290 5.00000000 +0.00000000 9.67741935 5.00000000 +0.00000000 12.90322581 5.00000000 +0.00000000 16.12903226 5.00000000 +0.00000000 19.35483871 5.00000000 +0.00000000 22.58064516 5.00000000 +0.00000000 25.80645161 5.00000000 +0.00000000 29.03225806 5.00000000 +0.00000000 32.25806452 5.00000000 +0.00000000 35.48387097 4.87903226 +0.00000000 38.70967742 4.07258065 +0.00000000 41.93548387 3.26612903 +0.00000000 45.16129032 2.50000000 +0.00000000 48.38709677 2.50000000 +0.00000000 51.61290323 2.50000000 +0.00000000 54.83870968 2.50000000 +0.00000000 58.06451613 1.73387097 +0.00000000 61.29032258 0.92741935 +0.00000000 64.51612903 0.12096774 +0.00000000 67.74193548 0.00000000 +0.00000000 70.96774194 0.00000000 +0.00000000 74.19354839 0.00000000 +0.00000000 77.41935484 0.00000000 +0.00000000 80.64516129 0.00000000 +0.00000000 83.87096774 0.00000000 +0.00000000 87.09677419 0.00000000 +0.00000000 90.32258065 0.00000000 +0.00000000 93.54838710 0.00000000 +0.00000000 96.77419355 0.00000000 +0.00000000 100.00000000 0.00000000 +9.67741935 0.00000000 5.00000000 +9.67741935 3.22580645 5.00000000 +9.67741935 6.45161290 5.00000000 +9.67741935 9.67741935 5.00000000 +9.67741935 12.90322581 5.00000000 +9.67741935 16.12903226 5.00000000 +9.67741935 19.35483871 5.00000000 +9.67741935 22.58064516 5.00000000 +9.67741935 25.80645161 5.00000000 +9.67741935 29.03225806 5.00000000 +9.67741935 32.25806452 5.00000000 +9.67741935 35.48387097 4.87903226 +9.67741935 38.70967742 4.07258065 +9.67741935 41.93548387 3.26612903 +9.67741935 45.16129032 2.50000000 +9.67741935 48.38709677 2.50000000 +9.67741935 51.61290323 2.50000000 +9.67741935 54.83870968 2.50000000 +9.67741935 58.06451613 1.73387097 +9.67741935 61.29032258 0.92741935 +9.67741935 64.51612903 0.12096774 +9.67741935 67.74193548 0.00000000 +9.67741935 70.96774194 0.00000000 +9.67741935 74.19354839 0.00000000 +9.67741935 77.41935484 0.00000000 +9.67741935 80.64516129 0.00000000 +9.67741935 83.87096774 0.00000000 +9.67741935 87.09677419 0.00000000 +9.67741935 90.32258065 0.00000000 +9.67741935 93.54838710 0.00000000 +9.67741935 96.77419355 0.00000000 +9.67741935 100.00000000 0.00000000 +19.35483871 0.00000000 5.00000000 +19.35483871 3.22580645 5.00000000 +19.35483871 6.45161290 5.00000000 +19.35483871 9.67741935 5.00000000 +19.35483871 12.90322581 5.00000000 +19.35483871 16.12903226 5.00000000 +19.35483871 19.35483871 5.00000000 +19.35483871 22.58064516 5.00000000 +19.35483871 25.80645161 5.00000000 +19.35483871 29.03225806 5.00000000 +19.35483871 32.25806452 5.00000000 +19.35483871 35.48387097 4.87903226 +19.35483871 38.70967742 4.07258065 +19.35483871 41.93548387 3.26612903 +19.35483871 45.16129032 2.50000000 +19.35483871 48.38709677 2.50000000 +19.35483871 51.61290323 2.50000000 +19.35483871 54.83870968 2.50000000 +19.35483871 58.06451613 1.73387097 +19.35483871 61.29032258 0.92741935 +19.35483871 64.51612903 0.12096774 +19.35483871 67.74193548 0.00000000 +19.35483871 70.96774194 0.00000000 +19.35483871 74.19354839 0.00000000 +19.35483871 77.41935484 0.00000000 +19.35483871 80.64516129 0.00000000 +19.35483871 83.87096774 0.00000000 +19.35483871 87.09677419 0.00000000 +19.35483871 90.32258065 0.00000000 +19.35483871 93.54838710 0.00000000 +19.35483871 96.77419355 0.00000000 +19.35483871 100.00000000 0.00000000 +29.03225806 0.00000000 5.00000000 +29.03225806 3.22580645 5.00000000 +29.03225806 6.45161290 5.00000000 +29.03225806 9.67741935 5.00000000 +29.03225806 12.90322581 5.00000000 +29.03225806 16.12903226 5.00000000 +29.03225806 19.35483871 5.00000000 +29.03225806 22.58064516 5.00000000 +29.03225806 25.80645161 5.00000000 +29.03225806 29.03225806 5.00000000 +29.03225806 32.25806452 5.00000000 +29.03225806 35.48387097 4.87903226 +29.03225806 38.70967742 4.07258065 +29.03225806 41.93548387 3.26612903 +29.03225806 45.16129032 2.50000000 +29.03225806 48.38709677 2.50000000 +29.03225806 51.61290323 2.50000000 +29.03225806 54.83870968 2.50000000 +29.03225806 58.06451613 1.73387097 +29.03225806 61.29032258 0.92741935 +29.03225806 64.51612903 0.12096774 +29.03225806 67.74193548 0.00000000 +29.03225806 70.96774194 0.00000000 +29.03225806 74.19354839 0.00000000 +29.03225806 77.41935484 0.00000000 +29.03225806 80.64516129 0.00000000 +29.03225806 83.87096774 0.00000000 +29.03225806 87.09677419 0.00000000 +29.03225806 90.32258065 0.00000000 +29.03225806 93.54838710 0.00000000 +29.03225806 96.77419355 0.00000000 +29.03225806 100.00000000 0.00000000 +38.70967742 0.00000000 5.00000000 +38.70967742 3.22580645 5.00000000 +38.70967742 6.45161290 5.00000000 +38.70967742 9.67741935 5.00000000 +38.70967742 12.90322581 5.00000000 +38.70967742 16.12903226 5.00000000 +38.70967742 19.35483871 5.00000000 +38.70967742 22.58064516 5.00000000 +38.70967742 25.80645161 5.00000000 +38.70967742 29.03225806 5.00000000 +38.70967742 32.25806452 5.00000000 +38.70967742 35.48387097 4.87903226 +38.70967742 38.70967742 4.07258065 +38.70967742 41.93548387 3.26612903 +38.70967742 45.16129032 2.50000000 +38.70967742 48.38709677 2.50000000 +38.70967742 51.61290323 2.50000000 +38.70967742 54.83870968 2.50000000 +38.70967742 58.06451613 1.73387097 +38.70967742 61.29032258 0.92741935 +38.70967742 64.51612903 0.12096774 +38.70967742 67.74193548 0.00000000 +38.70967742 70.96774194 0.00000000 +38.70967742 74.19354839 0.00000000 +38.70967742 77.41935484 0.00000000 +38.70967742 80.64516129 0.00000000 +38.70967742 83.87096774 0.00000000 +38.70967742 87.09677419 0.00000000 +38.70967742 90.32258065 0.00000000 +38.70967742 93.54838710 0.00000000 +38.70967742 96.77419355 0.00000000 +38.70967742 100.00000000 0.00000000 +48.38709677 0.00000000 5.00000000 +48.38709677 3.22580645 5.00000000 +48.38709677 6.45161290 5.00000000 +48.38709677 9.67741935 5.00000000 +48.38709677 12.90322581 5.00000000 +48.38709677 16.12903226 5.00000000 +48.38709677 19.35483871 5.00000000 +48.38709677 22.58064516 5.00000000 +48.38709677 25.80645161 5.00000000 +48.38709677 29.03225806 5.00000000 +48.38709677 32.25806452 5.00000000 +48.38709677 35.48387097 4.87903226 +48.38709677 38.70967742 4.07258065 +48.38709677 41.93548387 3.26612903 +48.38709677 45.16129032 2.50000000 +48.38709677 48.38709677 2.50000000 +48.38709677 51.61290323 2.50000000 +48.38709677 54.83870968 2.50000000 +48.38709677 58.06451613 1.73387097 +48.38709677 61.29032258 0.92741935 +48.38709677 64.51612903 0.12096774 +48.38709677 67.74193548 0.00000000 +48.38709677 70.96774194 0.00000000 +48.38709677 74.19354839 0.00000000 +48.38709677 77.41935484 0.00000000 +48.38709677 80.64516129 0.00000000 +48.38709677 83.87096774 0.00000000 +48.38709677 87.09677419 0.00000000 +48.38709677 90.32258065 0.00000000 +48.38709677 93.54838710 0.00000000 +48.38709677 96.77419355 0.00000000 +48.38709677 100.00000000 0.00000000 +58.06451613 0.00000000 5.00000000 +58.06451613 3.22580645 5.00000000 +58.06451613 6.45161290 5.00000000 +58.06451613 9.67741935 5.00000000 +58.06451613 12.90322581 5.00000000 +58.06451613 16.12903226 5.00000000 +58.06451613 19.35483871 5.00000000 +58.06451613 22.58064516 5.00000000 +58.06451613 25.80645161 5.00000000 +58.06451613 29.03225806 5.00000000 +58.06451613 32.25806452 5.00000000 +58.06451613 35.48387097 4.87903226 +58.06451613 38.70967742 4.07258065 +58.06451613 41.93548387 3.26612903 +58.06451613 45.16129032 2.50000000 +58.06451613 48.38709677 2.50000000 +58.06451613 51.61290323 2.50000000 +58.06451613 54.83870968 2.50000000 +58.06451613 58.06451613 1.73387097 +58.06451613 61.29032258 0.92741935 +58.06451613 64.51612903 0.12096774 +58.06451613 67.74193548 0.00000000 +58.06451613 70.96774194 0.00000000 +58.06451613 74.19354839 0.00000000 +58.06451613 77.41935484 0.00000000 +58.06451613 80.64516129 0.00000000 +58.06451613 83.87096774 0.00000000 +58.06451613 87.09677419 0.00000000 +58.06451613 90.32258065 0.00000000 +58.06451613 93.54838710 0.00000000 +58.06451613 96.77419355 0.00000000 +58.06451613 100.00000000 0.00000000 +67.74193548 0.00000000 5.00000000 +67.74193548 3.22580645 5.00000000 +67.74193548 6.45161290 5.00000000 +67.74193548 9.67741935 5.00000000 +67.74193548 12.90322581 5.00000000 +67.74193548 16.12903226 5.00000000 +67.74193548 19.35483871 5.00000000 +67.74193548 22.58064516 5.00000000 +67.74193548 25.80645161 5.00000000 +67.74193548 29.03225806 5.00000000 +67.74193548 32.25806452 5.00000000 +67.74193548 35.48387097 4.87903226 +67.74193548 38.70967742 4.07258065 +67.74193548 41.93548387 3.26612903 +67.74193548 45.16129032 2.50000000 +67.74193548 48.38709677 2.50000000 +67.74193548 51.61290323 2.50000000 +67.74193548 54.83870968 2.50000000 +67.74193548 58.06451613 1.73387097 +67.74193548 61.29032258 0.92741935 +67.74193548 64.51612903 0.12096774 +67.74193548 67.74193548 0.00000000 +67.74193548 70.96774194 0.00000000 +67.74193548 74.19354839 0.00000000 +67.74193548 77.41935484 0.00000000 +67.74193548 80.64516129 0.00000000 +67.74193548 83.87096774 0.00000000 +67.74193548 87.09677419 0.00000000 +67.74193548 90.32258065 0.00000000 +67.74193548 93.54838710 0.00000000 +67.74193548 96.77419355 0.00000000 +67.74193548 100.00000000 0.00000000 +77.41935484 0.00000000 5.00000000 +77.41935484 3.22580645 5.00000000 +77.41935484 6.45161290 5.00000000 +77.41935484 9.67741935 5.00000000 +77.41935484 12.90322581 5.00000000 +77.41935484 16.12903226 5.00000000 +77.41935484 19.35483871 5.00000000 +77.41935484 22.58064516 5.00000000 +77.41935484 25.80645161 5.00000000 +77.41935484 29.03225806 5.00000000 +77.41935484 32.25806452 5.00000000 +77.41935484 35.48387097 4.87903226 +77.41935484 38.70967742 4.07258065 +77.41935484 41.93548387 3.26612903 +77.41935484 45.16129032 2.50000000 +77.41935484 48.38709677 2.50000000 +77.41935484 51.61290323 2.50000000 +77.41935484 54.83870968 2.50000000 +77.41935484 58.06451613 1.73387097 +77.41935484 61.29032258 0.92741935 +77.41935484 64.51612903 0.12096774 +77.41935484 67.74193548 0.00000000 +77.41935484 70.96774194 0.00000000 +77.41935484 74.19354839 0.00000000 +77.41935484 77.41935484 0.00000000 +77.41935484 80.64516129 0.00000000 +77.41935484 83.87096774 0.00000000 +77.41935484 87.09677419 0.00000000 +77.41935484 90.32258065 0.00000000 +77.41935484 93.54838710 0.00000000 +77.41935484 96.77419355 0.00000000 +77.41935484 100.00000000 0.00000000 +87.09677419 0.00000000 5.00000000 +87.09677419 3.22580645 5.00000000 +87.09677419 6.45161290 5.00000000 +87.09677419 9.67741935 5.00000000 +87.09677419 12.90322581 5.00000000 +87.09677419 16.12903226 5.00000000 +87.09677419 19.35483871 5.00000000 +87.09677419 22.58064516 5.00000000 +87.09677419 25.80645161 5.00000000 +87.09677419 29.03225806 5.00000000 +87.09677419 32.25806452 5.00000000 +87.09677419 35.48387097 4.87903226 +87.09677419 38.70967742 4.07258065 +87.09677419 41.93548387 3.26612903 +87.09677419 45.16129032 2.50000000 +87.09677419 48.38709677 2.50000000 +87.09677419 51.61290323 2.50000000 +87.09677419 54.83870968 2.50000000 +87.09677419 58.06451613 1.73387097 +87.09677419 61.29032258 0.92741935 +87.09677419 64.51612903 0.12096774 +87.09677419 67.74193548 0.00000000 +87.09677419 70.96774194 0.00000000 +87.09677419 74.19354839 0.00000000 +87.09677419 77.41935484 0.00000000 +87.09677419 80.64516129 0.00000000 +87.09677419 83.87096774 0.00000000 +87.09677419 87.09677419 0.00000000 +87.09677419 90.32258065 0.00000000 +87.09677419 93.54838710 0.00000000 +87.09677419 96.77419355 0.00000000 +87.09677419 100.00000000 0.00000000 +96.77419355 0.00000000 5.00000000 +96.77419355 3.22580645 5.00000000 +96.77419355 6.45161290 5.00000000 +96.77419355 9.67741935 5.00000000 +96.77419355 12.90322581 5.00000000 +96.77419355 16.12903226 5.00000000 +96.77419355 19.35483871 5.00000000 +96.77419355 22.58064516 5.00000000 +96.77419355 25.80645161 5.00000000 +96.77419355 29.03225806 5.00000000 +96.77419355 32.25806452 5.00000000 +96.77419355 35.48387097 4.77941176 +96.77419355 38.70967742 3.94230769 +96.77419355 41.93548387 3.45000000 +96.77419355 45.16129032 2.50000000 +96.77419355 48.38709677 2.50000000 +96.77419355 51.61290323 2.50000000 +96.77419355 54.83870968 2.50000000 +96.77419355 58.06451613 2.02500000 +96.77419355 61.29032258 1.56250000 +96.77419355 64.51612903 0.99264706 +96.77419355 67.74193548 0.84677419 +96.77419355 70.96774194 0.84677419 +96.77419355 74.19354839 0.84677419 +96.77419355 77.41935484 0.84677419 +96.77419355 80.64516129 0.84677419 +96.77419355 83.87096774 0.84677419 +96.77419355 87.09677419 0.84677419 +96.77419355 90.32258065 0.84677419 +96.77419355 93.54838710 0.84677419 +96.77419355 96.77419355 0.84677419 +96.77419355 100.00000000 0.84677419 +106.45161290 0.00000000 5.00000000 +106.45161290 3.22580645 5.00000000 +106.45161290 6.45161290 5.00000000 +106.45161290 9.67741935 5.00000000 +106.45161290 12.90322581 5.00000000 +106.45161290 16.12903226 5.00000000 +106.45161290 19.35483871 5.00000000 +106.45161290 22.58064516 5.00000000 +106.45161290 25.80645161 5.00000000 +106.45161290 29.03225806 5.00000000 +106.45161290 32.25806452 5.00000000 +106.45161290 35.48387097 4.77941176 +106.45161290 38.70967742 3.98809524 +106.45161290 41.93548387 3.39285714 +106.45161290 45.16129032 2.50000000 +106.45161290 48.38709677 2.50000000 +106.45161290 51.61290323 2.50000000 +106.45161290 54.83870968 2.50000000 +106.45161290 58.06451613 2.17261905 +106.45161290 61.29032258 2.17261905 +106.45161290 64.51612903 2.09558824 +106.45161290 67.74193548 2.05645161 +106.45161290 70.96774194 2.05645161 +106.45161290 74.19354839 2.05645161 +106.45161290 77.41935484 2.05645161 +106.45161290 80.64516129 2.05645161 +106.45161290 83.87096774 2.05645161 +106.45161290 87.09677419 2.05645161 +106.45161290 90.32258065 2.05645161 +106.45161290 93.54838710 2.05645161 +106.45161290 96.77419355 2.05645161 +106.45161290 100.00000000 2.05645161 +116.12903226 0.00000000 5.00000000 +116.12903226 3.22580645 5.00000000 +116.12903226 6.45161290 5.00000000 +116.12903226 9.67741935 5.00000000 +116.12903226 12.90322581 5.00000000 +116.12903226 16.12903226 5.00000000 +116.12903226 19.35483871 5.00000000 +116.12903226 22.58064516 5.00000000 +116.12903226 25.80645161 5.00000000 +116.12903226 29.03225806 5.00000000 +116.12903226 32.25806452 5.00000000 +116.12903226 35.48387097 4.87903226 +116.12903226 38.70967742 4.07258065 +116.12903226 41.93548387 3.26612903 +116.12903226 45.16129032 2.50000000 +116.12903226 48.38709677 2.50000000 +116.12903226 51.61290323 2.50000000 +116.12903226 54.83870968 2.50000000 +116.12903226 58.06451613 2.50000000 +116.12903226 61.29032258 2.50000000 +116.12903226 64.51612903 2.50000000 +116.12903226 67.74193548 2.50000000 +116.12903226 70.96774194 2.50000000 +116.12903226 74.19354839 2.50000000 +116.12903226 77.41935484 2.50000000 +116.12903226 80.64516129 2.50000000 +116.12903226 83.87096774 2.50000000 +116.12903226 87.09677419 2.50000000 +116.12903226 90.32258065 2.50000000 +116.12903226 93.54838710 2.50000000 +116.12903226 96.77419355 2.50000000 +116.12903226 100.00000000 2.50000000 +125.80645161 0.00000000 5.72580645 +125.80645161 3.22580645 5.72580645 +125.80645161 6.45161290 5.72580645 +125.80645161 9.67741935 5.72580645 +125.80645161 12.90322581 5.72580645 +125.80645161 16.12903226 5.72580645 +125.80645161 19.35483871 5.72580645 +125.80645161 22.58064516 5.72580645 +125.80645161 25.80645161 5.72580645 +125.80645161 29.03225806 5.72580645 +125.80645161 32.25806452 5.72580645 +125.80645161 35.48387097 5.55147059 +125.80645161 38.70967742 4.87244898 +125.80645161 41.93548387 4.36224490 +125.80645161 45.16129032 3.22580645 +125.80645161 48.38709677 3.22580645 +125.80645161 51.61290323 3.22580645 +125.80645161 54.83870968 3.22580645 +125.80645161 58.06451613 2.95918367 +125.80645161 61.29032258 2.95918367 +125.80645161 64.51612903 2.61029412 +125.80645161 67.74193548 2.50000000 +125.80645161 70.96774194 2.50000000 +125.80645161 74.19354839 2.50000000 +125.80645161 77.41935484 2.50000000 +125.80645161 80.64516129 2.50000000 +125.80645161 83.87096774 2.50000000 +125.80645161 87.09677419 2.50000000 +125.80645161 90.32258065 2.50000000 +125.80645161 93.54838710 2.50000000 +125.80645161 96.77419355 2.50000000 +125.80645161 100.00000000 2.50000000 +135.48387097 0.00000000 6.93548387 +135.48387097 3.22580645 6.93548387 +135.48387097 6.45161290 6.93548387 +135.48387097 9.67741935 6.93548387 +135.48387097 12.90322581 6.93548387 +135.48387097 16.12903226 6.93548387 +135.48387097 19.35483871 6.93548387 +135.48387097 22.58064516 6.93548387 +135.48387097 25.80645161 6.93548387 +135.48387097 29.03225806 6.93548387 +135.48387097 32.25806452 6.93548387 +135.48387097 35.48387097 6.65441176 +135.48387097 38.70967742 5.69444444 +135.48387097 41.93548387 5.13888889 +135.48387097 45.16129032 4.43548387 +135.48387097 48.38709677 4.43548387 +135.48387097 51.61290323 4.43548387 +135.48387097 54.83870968 4.43548387 +135.48387097 58.06451613 3.69444444 +135.48387097 61.29032258 3.13888889 +135.48387097 64.51612903 2.61029412 +135.48387097 67.74193548 2.50000000 +135.48387097 70.96774194 2.50000000 +135.48387097 74.19354839 2.50000000 +135.48387097 77.41935484 2.50000000 +135.48387097 80.64516129 2.50000000 +135.48387097 83.87096774 2.50000000 +135.48387097 87.09677419 2.50000000 +135.48387097 90.32258065 2.50000000 +135.48387097 93.54838710 2.50000000 +135.48387097 96.77419355 2.50000000 +135.48387097 100.00000000 2.50000000 +145.16129032 0.00000000 7.50000000 +145.16129032 3.22580645 7.50000000 +145.16129032 6.45161290 7.50000000 +145.16129032 9.67741935 7.50000000 +145.16129032 12.90322581 7.50000000 +145.16129032 16.12903226 7.50000000 +145.16129032 19.35483871 7.50000000 +145.16129032 22.58064516 7.50000000 +145.16129032 25.80645161 7.50000000 +145.16129032 29.03225806 7.50000000 +145.16129032 32.25806452 7.50000000 +145.16129032 35.48387097 7.37903226 +145.16129032 38.70967742 6.57258065 +145.16129032 41.93548387 5.76612903 +145.16129032 45.16129032 5.00000000 +145.16129032 48.38709677 5.00000000 +145.16129032 51.61290323 5.00000000 +145.16129032 54.83870968 5.00000000 +145.16129032 58.06451613 4.23387097 +145.16129032 61.29032258 3.42741935 +145.16129032 64.51612903 2.62096774 +145.16129032 67.74193548 2.50000000 +145.16129032 70.96774194 2.50000000 +145.16129032 74.19354839 2.50000000 +145.16129032 77.41935484 2.50000000 +145.16129032 80.64516129 2.50000000 +145.16129032 83.87096774 2.50000000 +145.16129032 87.09677419 2.50000000 +145.16129032 90.32258065 2.50000000 +145.16129032 93.54838710 2.50000000 +145.16129032 96.77419355 2.50000000 +145.16129032 100.00000000 2.50000000 +154.83870968 0.00000000 7.50000000 +154.83870968 3.22580645 7.50000000 +154.83870968 6.45161290 7.50000000 +154.83870968 9.67741935 7.50000000 +154.83870968 12.90322581 7.50000000 +154.83870968 16.12903226 7.50000000 +154.83870968 19.35483871 7.50000000 +154.83870968 22.58064516 7.50000000 +154.83870968 25.80645161 7.50000000 +154.83870968 29.03225806 7.50000000 +154.83870968 32.25806452 7.50000000 +154.83870968 35.48387097 7.38970588 +154.83870968 38.70967742 6.87500000 +154.83870968 41.93548387 6.33152174 +154.83870968 45.16129032 5.60483871 +154.83870968 48.38709677 5.60483871 +154.83870968 51.61290323 5.60483871 +154.83870968 54.83870968 5.60483871 +154.83870968 58.06451613 4.89130435 +154.83870968 61.29032258 4.34782609 +154.83870968 64.51612903 3.38235294 +154.83870968 67.74193548 3.10483871 +154.83870968 70.96774194 3.10483871 +154.83870968 74.19354839 3.10483871 +154.83870968 77.41935484 3.10483871 +154.83870968 80.64516129 3.10483871 +154.83870968 83.87096774 3.10483871 +154.83870968 87.09677419 3.10483871 +154.83870968 90.32258065 3.10483871 +154.83870968 93.54838710 3.10483871 +154.83870968 96.77419355 3.10483871 +154.83870968 100.00000000 3.10483871 +164.51612903 0.00000000 7.50000000 +164.51612903 3.22580645 7.50000000 +164.51612903 6.45161290 7.50000000 +164.51612903 9.67741935 7.50000000 +164.51612903 12.90322581 7.50000000 +164.51612903 16.12903226 7.50000000 +164.51612903 19.35483871 7.50000000 +164.51612903 22.58064516 7.50000000 +164.51612903 25.80645161 7.50000000 +164.51612903 29.03225806 7.50000000 +164.51612903 32.25806452 7.50000000 +164.51612903 35.48387097 7.38970588 +164.51612903 38.70967742 7.05729167 +164.51612903 41.93548387 7.05729167 +164.51612903 45.16129032 6.81451613 +164.51612903 48.38709677 6.81451613 +164.51612903 51.61290323 6.81451613 +164.51612903 54.83870968 6.81451613 +164.51612903 58.06451613 5.67708333 +164.51612903 61.29032258 5.15625000 +164.51612903 64.51612903 4.48529412 +164.51612903 67.74193548 4.31451613 +164.51612903 70.96774194 4.31451613 +164.51612903 74.19354839 4.31451613 +164.51612903 77.41935484 4.31451613 +164.51612903 80.64516129 4.31451613 +164.51612903 83.87096774 4.31451613 +164.51612903 87.09677419 4.31451613 +164.51612903 90.32258065 4.31451613 +164.51612903 93.54838710 4.31451613 +164.51612903 96.77419355 4.31451613 +164.51612903 100.00000000 4.31451613 +174.19354839 0.00000000 7.50000000 +174.19354839 3.22580645 7.50000000 +174.19354839 6.45161290 7.50000000 +174.19354839 9.67741935 7.50000000 +174.19354839 12.90322581 7.50000000 +174.19354839 16.12903226 7.50000000 +174.19354839 19.35483871 7.50000000 +174.19354839 22.58064516 7.50000000 +174.19354839 25.80645161 7.50000000 +174.19354839 29.03225806 7.50000000 +174.19354839 32.25806452 7.50000000 +174.19354839 35.48387097 7.50000000 +174.19354839 38.70967742 7.50000000 +174.19354839 41.93548387 7.50000000 +174.19354839 45.16129032 7.50000000 +174.19354839 48.38709677 7.50000000 +174.19354839 51.61290323 7.50000000 +174.19354839 54.83870968 7.50000000 +174.19354839 58.06451613 6.73387097 +174.19354839 61.29032258 5.92741935 +174.19354839 64.51612903 5.12096774 +174.19354839 67.74193548 5.00000000 +174.19354839 70.96774194 5.00000000 +174.19354839 74.19354839 5.00000000 +174.19354839 77.41935484 5.00000000 +174.19354839 80.64516129 5.00000000 +174.19354839 83.87096774 5.00000000 +174.19354839 87.09677419 5.00000000 +174.19354839 90.32258065 5.00000000 +174.19354839 93.54838710 5.00000000 +174.19354839 96.77419355 5.00000000 +174.19354839 100.00000000 5.00000000 +183.87096774 0.00000000 7.98387097 +183.87096774 3.22580645 7.98387097 +183.87096774 6.45161290 7.98387097 +183.87096774 9.67741935 7.98387097 +183.87096774 12.90322581 7.98387097 +183.87096774 16.12903226 7.98387097 +183.87096774 19.35483871 7.98387097 +183.87096774 22.58064516 7.98387097 +183.87096774 25.80645161 7.98387097 +183.87096774 29.03225806 7.98387097 +183.87096774 32.25806452 7.98387097 +183.87096774 35.48387097 7.94117647 +183.87096774 38.70967742 7.84883721 +183.87096774 41.93548387 7.84883721 +183.87096774 45.16129032 7.50000000 +183.87096774 48.38709677 7.50000000 +183.87096774 51.61290323 7.50000000 +183.87096774 54.83870968 7.50000000 +183.87096774 58.06451613 6.59883721 +183.87096774 61.29032258 6.01744186 +183.87096774 64.51612903 5.22058824 +183.87096774 67.74193548 5.00000000 +183.87096774 70.96774194 5.00000000 +183.87096774 74.19354839 5.00000000 +183.87096774 77.41935484 5.00000000 +183.87096774 80.64516129 5.00000000 +183.87096774 83.87096774 5.00000000 +183.87096774 87.09677419 5.00000000 +183.87096774 90.32258065 5.00000000 +183.87096774 93.54838710 5.00000000 +183.87096774 96.77419355 5.00000000 +183.87096774 100.00000000 5.00000000 +193.54838710 0.00000000 9.19354839 +193.54838710 3.22580645 9.19354839 +193.54838710 6.45161290 9.19354839 +193.54838710 9.67741935 9.19354839 +193.54838710 12.90322581 9.19354839 +193.54838710 16.12903226 9.19354839 +193.54838710 19.35483871 9.19354839 +193.54838710 22.58064516 9.19354839 +193.54838710 25.80645161 9.19354839 +193.54838710 29.03225806 9.19354839 +193.54838710 32.25806452 9.19354839 +193.54838710 35.48387097 9.04411765 +193.54838710 38.70967742 8.45588235 +193.54838710 41.93548387 7.97500000 +193.54838710 45.16129032 7.50000000 +193.54838710 48.38709677 7.50000000 +193.54838710 51.61290323 7.50000000 +193.54838710 54.83870968 7.50000000 +193.54838710 58.06451613 6.55000000 +193.54838710 61.29032258 6.05392157 +193.54838710 64.51612903 5.22058824 +193.54838710 67.74193548 5.00000000 +193.54838710 70.96774194 5.00000000 +193.54838710 74.19354839 5.00000000 +193.54838710 77.41935484 5.00000000 +193.54838710 80.64516129 5.00000000 +193.54838710 83.87096774 5.00000000 +193.54838710 87.09677419 5.00000000 +193.54838710 90.32258065 5.00000000 +193.54838710 93.54838710 5.00000000 +193.54838710 96.77419355 5.00000000 +193.54838710 100.00000000 5.00000000 +203.22580645 0.00000000 10.00000000 +203.22580645 3.22580645 10.00000000 +203.22580645 6.45161290 10.00000000 +203.22580645 9.67741935 10.00000000 +203.22580645 12.90322581 10.00000000 +203.22580645 16.12903226 10.00000000 +203.22580645 19.35483871 10.00000000 +203.22580645 22.58064516 10.00000000 +203.22580645 25.80645161 10.00000000 +203.22580645 29.03225806 10.00000000 +203.22580645 32.25806452 10.00000000 +203.22580645 35.48387097 9.87903226 +203.22580645 38.70967742 9.07258065 +203.22580645 41.93548387 8.26612903 +203.22580645 45.16129032 7.50000000 +203.22580645 48.38709677 7.50000000 +203.22580645 51.61290323 7.50000000 +203.22580645 54.83870968 7.50000000 +203.22580645 58.06451613 6.73387097 +203.22580645 61.29032258 5.92741935 +203.22580645 64.51612903 5.12096774 +203.22580645 67.74193548 5.00000000 +203.22580645 70.96774194 5.00000000 +203.22580645 74.19354839 5.00000000 +203.22580645 77.41935484 5.00000000 +203.22580645 80.64516129 5.00000000 +203.22580645 83.87096774 5.00000000 +203.22580645 87.09677419 5.00000000 +203.22580645 90.32258065 5.00000000 +203.22580645 93.54838710 5.00000000 +203.22580645 96.77419355 5.00000000 +203.22580645 100.00000000 5.00000000 +212.90322581 0.00000000 10.00000000 +212.90322581 3.22580645 10.00000000 +212.90322581 6.45161290 10.00000000 +212.90322581 9.67741935 10.00000000 +212.90322581 12.90322581 10.00000000 +212.90322581 16.12903226 10.00000000 +212.90322581 19.35483871 10.00000000 +212.90322581 22.58064516 10.00000000 +212.90322581 25.80645161 10.00000000 +212.90322581 29.03225806 10.00000000 +212.90322581 32.25806452 10.00000000 +212.90322581 35.48387097 9.87903226 +212.90322581 38.70967742 9.07258065 +212.90322581 41.93548387 8.26612903 +212.90322581 45.16129032 7.50000000 +212.90322581 48.38709677 7.50000000 +212.90322581 51.61290323 7.50000000 +212.90322581 54.83870968 7.50000000 +212.90322581 58.06451613 6.73387097 +212.90322581 61.29032258 5.92741935 +212.90322581 64.51612903 5.12096774 +212.90322581 67.74193548 5.00000000 +212.90322581 70.96774194 5.00000000 +212.90322581 74.19354839 5.00000000 +212.90322581 77.41935484 5.00000000 +212.90322581 80.64516129 5.00000000 +212.90322581 83.87096774 5.00000000 +212.90322581 87.09677419 5.00000000 +212.90322581 90.32258065 5.00000000 +212.90322581 93.54838710 5.00000000 +212.90322581 96.77419355 5.00000000 +212.90322581 100.00000000 5.00000000 +222.58064516 0.00000000 10.00000000 +222.58064516 3.22580645 10.00000000 +222.58064516 6.45161290 10.00000000 +222.58064516 9.67741935 10.00000000 +222.58064516 12.90322581 10.00000000 +222.58064516 16.12903226 10.00000000 +222.58064516 19.35483871 10.00000000 +222.58064516 22.58064516 10.00000000 +222.58064516 25.80645161 10.00000000 +222.58064516 29.03225806 10.00000000 +222.58064516 32.25806452 10.00000000 +222.58064516 35.48387097 9.87903226 +222.58064516 38.70967742 9.07258065 +222.58064516 41.93548387 8.26612903 +222.58064516 45.16129032 7.50000000 +222.58064516 48.38709677 7.50000000 +222.58064516 51.61290323 7.50000000 +222.58064516 54.83870968 7.50000000 +222.58064516 58.06451613 6.73387097 +222.58064516 61.29032258 5.92741935 +222.58064516 64.51612903 5.12096774 +222.58064516 67.74193548 5.00000000 +222.58064516 70.96774194 5.00000000 +222.58064516 74.19354839 5.00000000 +222.58064516 77.41935484 5.00000000 +222.58064516 80.64516129 5.00000000 +222.58064516 83.87096774 5.00000000 +222.58064516 87.09677419 5.00000000 +222.58064516 90.32258065 5.00000000 +222.58064516 93.54838710 5.00000000 +222.58064516 96.77419355 5.00000000 +222.58064516 100.00000000 5.00000000 +232.25806452 0.00000000 10.00000000 +232.25806452 3.22580645 10.00000000 +232.25806452 6.45161290 10.00000000 +232.25806452 9.67741935 10.00000000 +232.25806452 12.90322581 10.00000000 +232.25806452 16.12903226 10.00000000 +232.25806452 19.35483871 10.00000000 +232.25806452 22.58064516 10.00000000 +232.25806452 25.80645161 10.00000000 +232.25806452 29.03225806 10.00000000 +232.25806452 32.25806452 10.00000000 +232.25806452 35.48387097 9.87903226 +232.25806452 38.70967742 9.07258065 +232.25806452 41.93548387 8.26612903 +232.25806452 45.16129032 7.50000000 +232.25806452 48.38709677 7.50000000 +232.25806452 51.61290323 7.50000000 +232.25806452 54.83870968 7.50000000 +232.25806452 58.06451613 6.73387097 +232.25806452 61.29032258 5.92741935 +232.25806452 64.51612903 5.12096774 +232.25806452 67.74193548 5.00000000 +232.25806452 70.96774194 5.00000000 +232.25806452 74.19354839 5.00000000 +232.25806452 77.41935484 5.00000000 +232.25806452 80.64516129 5.00000000 +232.25806452 83.87096774 5.00000000 +232.25806452 87.09677419 5.00000000 +232.25806452 90.32258065 5.00000000 +232.25806452 93.54838710 5.00000000 +232.25806452 96.77419355 5.00000000 +232.25806452 100.00000000 5.00000000 +241.93548387 0.00000000 10.00000000 +241.93548387 3.22580645 10.00000000 +241.93548387 6.45161290 10.00000000 +241.93548387 9.67741935 10.00000000 +241.93548387 12.90322581 10.00000000 +241.93548387 16.12903226 10.00000000 +241.93548387 19.35483871 10.00000000 +241.93548387 22.58064516 10.00000000 +241.93548387 25.80645161 10.00000000 +241.93548387 29.03225806 10.00000000 +241.93548387 32.25806452 10.00000000 +241.93548387 35.48387097 9.87903226 +241.93548387 38.70967742 9.07258065 +241.93548387 41.93548387 8.26612903 +241.93548387 45.16129032 7.50000000 +241.93548387 48.38709677 7.50000000 +241.93548387 51.61290323 7.50000000 +241.93548387 54.83870968 7.50000000 +241.93548387 58.06451613 6.73387097 +241.93548387 61.29032258 5.92741935 +241.93548387 64.51612903 5.12096774 +241.93548387 67.74193548 5.00000000 +241.93548387 70.96774194 5.00000000 +241.93548387 74.19354839 5.00000000 +241.93548387 77.41935484 5.00000000 +241.93548387 80.64516129 5.00000000 +241.93548387 83.87096774 5.00000000 +241.93548387 87.09677419 5.00000000 +241.93548387 90.32258065 5.00000000 +241.93548387 93.54838710 5.00000000 +241.93548387 96.77419355 5.00000000 +241.93548387 100.00000000 5.00000000 +251.61290323 0.00000000 10.00000000 +251.61290323 3.22580645 10.00000000 +251.61290323 6.45161290 10.00000000 +251.61290323 9.67741935 10.00000000 +251.61290323 12.90322581 10.00000000 +251.61290323 16.12903226 10.00000000 +251.61290323 19.35483871 10.00000000 +251.61290323 22.58064516 10.00000000 +251.61290323 25.80645161 10.00000000 +251.61290323 29.03225806 10.00000000 +251.61290323 32.25806452 10.00000000 +251.61290323 35.48387097 9.87903226 +251.61290323 38.70967742 9.07258065 +251.61290323 41.93548387 8.26612903 +251.61290323 45.16129032 7.50000000 +251.61290323 48.38709677 7.50000000 +251.61290323 51.61290323 7.50000000 +251.61290323 54.83870968 7.50000000 +251.61290323 58.06451613 6.73387097 +251.61290323 61.29032258 5.92741935 +251.61290323 64.51612903 5.12096774 +251.61290323 67.74193548 5.00000000 +251.61290323 70.96774194 5.00000000 +251.61290323 74.19354839 5.00000000 +251.61290323 77.41935484 5.00000000 +251.61290323 80.64516129 5.00000000 +251.61290323 83.87096774 5.00000000 +251.61290323 87.09677419 5.00000000 +251.61290323 90.32258065 5.00000000 +251.61290323 93.54838710 5.00000000 +251.61290323 96.77419355 5.00000000 +251.61290323 100.00000000 5.00000000 +261.29032258 0.00000000 10.00000000 +261.29032258 3.22580645 10.00000000 +261.29032258 6.45161290 10.00000000 +261.29032258 9.67741935 10.00000000 +261.29032258 12.90322581 10.00000000 +261.29032258 16.12903226 10.00000000 +261.29032258 19.35483871 10.00000000 +261.29032258 22.58064516 10.00000000 +261.29032258 25.80645161 10.00000000 +261.29032258 29.03225806 10.00000000 +261.29032258 32.25806452 10.00000000 +261.29032258 35.48387097 9.87903226 +261.29032258 38.70967742 9.07258065 +261.29032258 41.93548387 8.26612903 +261.29032258 45.16129032 7.50000000 +261.29032258 48.38709677 7.50000000 +261.29032258 51.61290323 7.50000000 +261.29032258 54.83870968 7.50000000 +261.29032258 58.06451613 6.73387097 +261.29032258 61.29032258 5.92741935 +261.29032258 64.51612903 5.12096774 +261.29032258 67.74193548 5.00000000 +261.29032258 70.96774194 5.00000000 +261.29032258 74.19354839 5.00000000 +261.29032258 77.41935484 5.00000000 +261.29032258 80.64516129 5.00000000 +261.29032258 83.87096774 5.00000000 +261.29032258 87.09677419 5.00000000 +261.29032258 90.32258065 5.00000000 +261.29032258 93.54838710 5.00000000 +261.29032258 96.77419355 5.00000000 +261.29032258 100.00000000 5.00000000 +270.96774194 0.00000000 10.00000000 +270.96774194 3.22580645 10.00000000 +270.96774194 6.45161290 10.00000000 +270.96774194 9.67741935 10.00000000 +270.96774194 12.90322581 10.00000000 +270.96774194 16.12903226 10.00000000 +270.96774194 19.35483871 10.00000000 +270.96774194 22.58064516 10.00000000 +270.96774194 25.80645161 10.00000000 +270.96774194 29.03225806 10.00000000 +270.96774194 32.25806452 10.00000000 +270.96774194 35.48387097 9.87903226 +270.96774194 38.70967742 9.07258065 +270.96774194 41.93548387 8.26612903 +270.96774194 45.16129032 7.50000000 +270.96774194 48.38709677 7.50000000 +270.96774194 51.61290323 7.50000000 +270.96774194 54.83870968 7.50000000 +270.96774194 58.06451613 6.73387097 +270.96774194 61.29032258 5.92741935 +270.96774194 64.51612903 5.12096774 +270.96774194 67.74193548 5.00000000 +270.96774194 70.96774194 5.00000000 +270.96774194 74.19354839 5.00000000 +270.96774194 77.41935484 5.00000000 +270.96774194 80.64516129 5.00000000 +270.96774194 83.87096774 5.00000000 +270.96774194 87.09677419 5.00000000 +270.96774194 90.32258065 5.00000000 +270.96774194 93.54838710 5.00000000 +270.96774194 96.77419355 5.00000000 +270.96774194 100.00000000 5.00000000 +280.64516129 0.00000000 10.00000000 +280.64516129 3.22580645 10.00000000 +280.64516129 6.45161290 10.00000000 +280.64516129 9.67741935 10.00000000 +280.64516129 12.90322581 10.00000000 +280.64516129 16.12903226 10.00000000 +280.64516129 19.35483871 10.00000000 +280.64516129 22.58064516 10.00000000 +280.64516129 25.80645161 10.00000000 +280.64516129 29.03225806 10.00000000 +280.64516129 32.25806452 10.00000000 +280.64516129 35.48387097 9.87903226 +280.64516129 38.70967742 9.07258065 +280.64516129 41.93548387 8.26612903 +280.64516129 45.16129032 7.50000000 +280.64516129 48.38709677 7.50000000 +280.64516129 51.61290323 7.50000000 +280.64516129 54.83870968 7.50000000 +280.64516129 58.06451613 6.73387097 +280.64516129 61.29032258 5.92741935 +280.64516129 64.51612903 5.12096774 +280.64516129 67.74193548 5.00000000 +280.64516129 70.96774194 5.00000000 +280.64516129 74.19354839 5.00000000 +280.64516129 77.41935484 5.00000000 +280.64516129 80.64516129 5.00000000 +280.64516129 83.87096774 5.00000000 +280.64516129 87.09677419 5.00000000 +280.64516129 90.32258065 5.00000000 +280.64516129 93.54838710 5.00000000 +280.64516129 96.77419355 5.00000000 +280.64516129 100.00000000 5.00000000 +290.32258065 0.00000000 10.00000000 +290.32258065 3.22580645 10.00000000 +290.32258065 6.45161290 10.00000000 +290.32258065 9.67741935 10.00000000 +290.32258065 12.90322581 10.00000000 +290.32258065 16.12903226 10.00000000 +290.32258065 19.35483871 10.00000000 +290.32258065 22.58064516 10.00000000 +290.32258065 25.80645161 10.00000000 +290.32258065 29.03225806 10.00000000 +290.32258065 32.25806452 10.00000000 +290.32258065 35.48387097 9.87903226 +290.32258065 38.70967742 9.07258065 +290.32258065 41.93548387 8.26612903 +290.32258065 45.16129032 7.50000000 +290.32258065 48.38709677 7.50000000 +290.32258065 51.61290323 7.50000000 +290.32258065 54.83870968 7.50000000 +290.32258065 58.06451613 6.73387097 +290.32258065 61.29032258 5.92741935 +290.32258065 64.51612903 5.12096774 +290.32258065 67.74193548 5.00000000 +290.32258065 70.96774194 5.00000000 +290.32258065 74.19354839 5.00000000 +290.32258065 77.41935484 5.00000000 +290.32258065 80.64516129 5.00000000 +290.32258065 83.87096774 5.00000000 +290.32258065 87.09677419 5.00000000 +290.32258065 90.32258065 5.00000000 +290.32258065 93.54838710 5.00000000 +290.32258065 96.77419355 5.00000000 +290.32258065 100.00000000 5.00000000 +300.00000000 0.00000000 10.00000000 +300.00000000 3.22580645 10.00000000 +300.00000000 6.45161290 10.00000000 +300.00000000 9.67741935 10.00000000 +300.00000000 12.90322581 10.00000000 +300.00000000 16.12903226 10.00000000 +300.00000000 19.35483871 10.00000000 +300.00000000 22.58064516 10.00000000 +300.00000000 25.80645161 10.00000000 +300.00000000 29.03225806 10.00000000 +300.00000000 32.25806452 10.00000000 +300.00000000 35.48387097 9.87903226 +300.00000000 38.70967742 9.07258065 +300.00000000 41.93548387 8.26612903 +300.00000000 45.16129032 7.50000000 +300.00000000 48.38709677 7.50000000 +300.00000000 51.61290323 7.50000000 +300.00000000 54.83870968 7.50000000 +300.00000000 58.06451613 6.73387097 +300.00000000 61.29032258 5.92741935 +300.00000000 64.51612903 5.12096774 +300.00000000 67.74193548 5.00000000 +300.00000000 70.96774194 5.00000000 +300.00000000 74.19354839 5.00000000 +300.00000000 77.41935484 5.00000000 +300.00000000 80.64516129 5.00000000 +300.00000000 83.87096774 5.00000000 +300.00000000 87.09677419 5.00000000 +300.00000000 90.32258065 5.00000000 +300.00000000 93.54838710 5.00000000 +300.00000000 96.77419355 5.00000000 +300.00000000 100.00000000 5.00000000 diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.fll b/examples/takagi-sugeno/octave/heart_disease_risk.fll new file mode 100644 index 0000000..5bc3207 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.fll @@ -0,0 +1,48 @@ +Engine: Heart-Disease-Risk +InputVariable: LDLLevel + enabled: true + range: 0.000 300.000 + term: Low Trapezoid -1.000 0.000 90.000 110.000 + term: LowBorderline Trapezoid 90.000 110.000 120.000 140.000 + term: Borderline Trapezoid 120.000 140.000 150.000 170.000 + term: HighBorderline Trapezoid 150.000 170.000 180.000 200.000 + term: High Trapezoid 180.000 200.000 300.000 301.000 +InputVariable: HDLLevel + enabled: true + range: 0.000 100.000 + term: LowHDL Trapezoid -1.000 0.000 35.000 45.000 + term: ModerateHDL Trapezoid 35.000 45.000 55.000 65.000 + term: HighHDL Trapezoid 55.000 65.000 100.000 101.000 +OutputVariable: HeartDiseaseRisk + enabled: true + range: 0.000 10.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: NoRisk Constant 0.000 + term: LowRisk Constant 2.500 + term: MediumRisk Constant 5.000 + term: HighRisk Constant 7.500 + term: ExtremeRisk Constant 10.000 +RuleBlock: + enabled: true + conjunction: Minimum + disjunction: none + activation: none + rule: if LDLLevel is Low and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk + rule: if LDLLevel is Low and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk + rule: if LDLLevel is Low and HDLLevel is HighHDL then HeartDiseaseRisk is NoRisk + rule: if LDLLevel is LowBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk + rule: if LDLLevel is LowBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk + rule: if LDLLevel is LowBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk + rule: if LDLLevel is Borderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk + rule: if LDLLevel is Borderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is MediumRisk + rule: if LDLLevel is Borderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk + rule: if LDLLevel is HighBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk + rule: if LDLLevel is HighBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk + rule: if LDLLevel is HighBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk + rule: if LDLLevel is High and HDLLevel is LowHDL then HeartDiseaseRisk is ExtremeRisk + rule: if LDLLevel is High and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk + rule: if LDLLevel is High and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk
\ No newline at end of file diff --git a/examples/takagi-sugeno/octave/heart_disease_risk.java b/examples/takagi-sugeno/octave/heart_disease_risk.java new file mode 100644 index 0000000..fcd67c9 --- /dev/null +++ b/examples/takagi-sugeno/octave/heart_disease_risk.java @@ -0,0 +1,79 @@ +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 heart_disease_risk{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Heart-Disease-Risk"); + +InputVariable inputVariable1 = new InputVariable(); +inputVariable1.setEnabled(true); +inputVariable1.setName("LDLLevel"); +inputVariable1.setRange(0.000, 300.000); +inputVariable1.addTerm(new Trapezoid("Low", -1.000, 0.000, 90.000, 110.000)); +inputVariable1.addTerm(new Trapezoid("LowBorderline", 90.000, 110.000, 120.000, 140.000)); +inputVariable1.addTerm(new Trapezoid("Borderline", 120.000, 140.000, 150.000, 170.000)); +inputVariable1.addTerm(new Trapezoid("HighBorderline", 150.000, 170.000, 180.000, 200.000)); +inputVariable1.addTerm(new Trapezoid("High", 180.000, 200.000, 300.000, 301.000)); +engine.addInputVariable(inputVariable1); + +InputVariable inputVariable2 = new InputVariable(); +inputVariable2.setEnabled(true); +inputVariable2.setName("HDLLevel"); +inputVariable2.setRange(0.000, 100.000); +inputVariable2.addTerm(new Trapezoid("LowHDL", -1.000, 0.000, 35.000, 45.000)); +inputVariable2.addTerm(new Trapezoid("ModerateHDL", 35.000, 45.000, 55.000, 65.000)); +inputVariable2.addTerm(new Trapezoid("HighHDL", 55.000, 65.000, 100.000, 101.000)); +engine.addInputVariable(inputVariable2); + +OutputVariable outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("HeartDiseaseRisk"); +outputVariable.setRange(0.000, 10.000); +outputVariable.fuzzyOutput().setAccumulation(null); +outputVariable.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(new Constant("NoRisk", 0.000)); +outputVariable.addTerm(new Constant("LowRisk", 2.500)); +outputVariable.addTerm(new Constant("MediumRisk", 5.000)); +outputVariable.addTerm(new Constant("HighRisk", 7.500)); +outputVariable.addTerm(new Constant("ExtremeRisk", 10.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new Minimum()); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +ruleBlock.addRule(Rule.parse("if LDLLevel is Low and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is Low and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is Low and HDLLevel is HighHDL then HeartDiseaseRisk is NoRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is LowBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is LowBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is LowBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is Borderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is Borderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is Borderline and HDLLevel is HighHDL then HeartDiseaseRisk is LowRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is HighBorderline and HDLLevel is LowHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is HighBorderline and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is HighBorderline and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is High and HDLLevel is LowHDL then HeartDiseaseRisk is ExtremeRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is High and HDLLevel is ModerateHDL then HeartDiseaseRisk is HighRisk", engine)); +ruleBlock.addRule(Rule.parse("if LDLLevel is High and HDLLevel is HighHDL then HeartDiseaseRisk is MediumRisk", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.cpp b/examples/takagi-sugeno/octave/linear_tip_calculator.cpp new file mode 100644 index 0000000..6982766 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.cpp @@ -0,0 +1,52 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Linear-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* outputVariable = new OutputVariable; +outputVariable->setEnabled(true); +outputVariable->setName("Tip"); +outputVariable->setRange(10.000, 20.000); +outputVariable->fuzzyOutput()->setAccumulation(fl::null); +outputVariable->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable->setDefaultValue(fl::nan); +outputVariable->setLockPreviousOutputValue(false); +outputVariable->setLockOutputValueInRange(false); +outputVariable->addTerm(Linear::create("TenPercent", engine, 0.000, 0.000, 10.000)); +outputVariable->addTerm(Linear::create("FifteenPercent", engine, 0.000, 0.000, 15.000)); +outputVariable->addTerm(Linear::create("TwentyPercent", engine, 0.000, 0.000, 20.000)); +engine->addOutputVariable(outputVariable); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new Minimum); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Bad then Tip is TenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Good then Tip is FifteenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Bad then Tip is FifteenPercent", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Good then Tip is TwentyPercent", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.fcl b/examples/takagi-sugeno/octave/linear_tip_calculator.fcl new file mode 100644 index 0000000..d326b2e --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.fcl @@ -0,0 +1,41 @@ +FUNCTION_BLOCK Linear-Tip-Calculator + +VAR_INPUT + FoodQuality: REAL; + Service: REAL; +END_VAR + +VAR_OUTPUT + Tip: 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 := (10.000 .. 20.000); + TERM TenPercent := Linear 0.000 0.000 10.000; + TERM FifteenPercent := Linear 0.000 0.000 15.000; + TERM TwentyPercent := Linear 0.000 0.000 20.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : MIN; + RULE 1 : if FoodQuality is Bad and Service is Bad then Tip is TenPercent + RULE 2 : if FoodQuality is Bad and Service is Good then Tip is FifteenPercent + RULE 3 : if FoodQuality is Good and Service is Bad then Tip is FifteenPercent + RULE 4 : if FoodQuality is Good and Service is Good then Tip is TwentyPercent +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.fis b/examples/takagi-sugeno/octave/linear_tip_calculator.fis new file mode 100644 index 0000000..8df5a02 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.fis @@ -0,0 +1,39 @@ +[System] +Name='Linear-Tip-Calculator' +Type='sugeno' +NumInputs=2 +NumOutputs=1 +NumRules=4 +AndMethod='min' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[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=[10.000 20.000] +NumMFs=3 +MF1='TenPercent':'linear',[0.000 0.000 10.000] +MF2='FifteenPercent':'linear',[0.000 0.000 15.000] +MF3='TwentyPercent':'linear',[0.000 0.000 20.000] + +[Rules] +1.000 1.000 , 1.000 (1.000) : 1 +1.000 2.000 , 2.000 (1.000) : 1 +2.000 1.000 , 2.000 (1.000) : 1 +2.000 2.000 , 3.000 (1.000) : 1 diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.fld b/examples/takagi-sugeno/octave/linear_tip_calculator.fld new file mode 100644 index 0000000..27f51b4 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.fld @@ -0,0 +1,1026 @@ +#@Engine: Linear-Tip-Calculator; +#@InputVariable: FoodQuality; @InputVariable: Service; @OutputVariable: Tip; +1.00000000 1.00000000 10.00000000 +1.00000000 1.29032258 10.00000000 +1.00000000 1.58064516 10.00000000 +1.00000000 1.87096774 10.00000000 +1.00000000 2.16129032 10.00000000 +1.00000000 2.45161290 10.00000000 +1.00000000 2.74193548 10.00000000 +1.00000000 3.03225806 10.04032258 +1.00000000 3.32258065 10.40322581 +1.00000000 3.61290323 10.76612903 +1.00000000 3.90322581 11.12903226 +1.00000000 4.19354839 11.49193548 +1.00000000 4.48387097 11.85483871 +1.00000000 4.77419355 12.21774194 +1.00000000 5.06451613 12.58064516 +1.00000000 5.35483871 12.94354839 +1.00000000 5.64516129 13.30645161 +1.00000000 5.93548387 13.66935484 +1.00000000 6.22580645 14.03225806 +1.00000000 6.51612903 14.39516129 +1.00000000 6.80645161 14.75806452 +1.00000000 7.09677419 15.00000000 +1.00000000 7.38709677 15.00000000 +1.00000000 7.67741935 15.00000000 +1.00000000 7.96774194 15.00000000 +1.00000000 8.25806452 15.00000000 +1.00000000 8.54838710 15.00000000 +1.00000000 8.83870968 15.00000000 +1.00000000 9.12903226 15.00000000 +1.00000000 9.41935484 15.00000000 +1.00000000 9.70967742 15.00000000 +1.00000000 10.00000000 15.00000000 +1.29032258 1.00000000 10.00000000 +1.29032258 1.29032258 10.00000000 +1.29032258 1.58064516 10.00000000 +1.29032258 1.87096774 10.00000000 +1.29032258 2.16129032 10.00000000 +1.29032258 2.45161290 10.00000000 +1.29032258 2.74193548 10.00000000 +1.29032258 3.03225806 10.04032258 +1.29032258 3.32258065 10.40322581 +1.29032258 3.61290323 10.76612903 +1.29032258 3.90322581 11.12903226 +1.29032258 4.19354839 11.49193548 +1.29032258 4.48387097 11.85483871 +1.29032258 4.77419355 12.21774194 +1.29032258 5.06451613 12.58064516 +1.29032258 5.35483871 12.94354839 +1.29032258 5.64516129 13.30645161 +1.29032258 5.93548387 13.66935484 +1.29032258 6.22580645 14.03225806 +1.29032258 6.51612903 14.39516129 +1.29032258 6.80645161 14.75806452 +1.29032258 7.09677419 15.00000000 +1.29032258 7.38709677 15.00000000 +1.29032258 7.67741935 15.00000000 +1.29032258 7.96774194 15.00000000 +1.29032258 8.25806452 15.00000000 +1.29032258 8.54838710 15.00000000 +1.29032258 8.83870968 15.00000000 +1.29032258 9.12903226 15.00000000 +1.29032258 9.41935484 15.00000000 +1.29032258 9.70967742 15.00000000 +1.29032258 10.00000000 15.00000000 +1.58064516 1.00000000 10.00000000 +1.58064516 1.29032258 10.00000000 +1.58064516 1.58064516 10.00000000 +1.58064516 1.87096774 10.00000000 +1.58064516 2.16129032 10.00000000 +1.58064516 2.45161290 10.00000000 +1.58064516 2.74193548 10.00000000 +1.58064516 3.03225806 10.04032258 +1.58064516 3.32258065 10.40322581 +1.58064516 3.61290323 10.76612903 +1.58064516 3.90322581 11.12903226 +1.58064516 4.19354839 11.49193548 +1.58064516 4.48387097 11.85483871 +1.58064516 4.77419355 12.21774194 +1.58064516 5.06451613 12.58064516 +1.58064516 5.35483871 12.94354839 +1.58064516 5.64516129 13.30645161 +1.58064516 5.93548387 13.66935484 +1.58064516 6.22580645 14.03225806 +1.58064516 6.51612903 14.39516129 +1.58064516 6.80645161 14.75806452 +1.58064516 7.09677419 15.00000000 +1.58064516 7.38709677 15.00000000 +1.58064516 7.67741935 15.00000000 +1.58064516 7.96774194 15.00000000 +1.58064516 8.25806452 15.00000000 +1.58064516 8.54838710 15.00000000 +1.58064516 8.83870968 15.00000000 +1.58064516 9.12903226 15.00000000 +1.58064516 9.41935484 15.00000000 +1.58064516 9.70967742 15.00000000 +1.58064516 10.00000000 15.00000000 +1.87096774 1.00000000 10.00000000 +1.87096774 1.29032258 10.00000000 +1.87096774 1.58064516 10.00000000 +1.87096774 1.87096774 10.00000000 +1.87096774 2.16129032 10.00000000 +1.87096774 2.45161290 10.00000000 +1.87096774 2.74193548 10.00000000 +1.87096774 3.03225806 10.04032258 +1.87096774 3.32258065 10.40322581 +1.87096774 3.61290323 10.76612903 +1.87096774 3.90322581 11.12903226 +1.87096774 4.19354839 11.49193548 +1.87096774 4.48387097 11.85483871 +1.87096774 4.77419355 12.21774194 +1.87096774 5.06451613 12.58064516 +1.87096774 5.35483871 12.94354839 +1.87096774 5.64516129 13.30645161 +1.87096774 5.93548387 13.66935484 +1.87096774 6.22580645 14.03225806 +1.87096774 6.51612903 14.39516129 +1.87096774 6.80645161 14.75806452 +1.87096774 7.09677419 15.00000000 +1.87096774 7.38709677 15.00000000 +1.87096774 7.67741935 15.00000000 +1.87096774 7.96774194 15.00000000 +1.87096774 8.25806452 15.00000000 +1.87096774 8.54838710 15.00000000 +1.87096774 8.83870968 15.00000000 +1.87096774 9.12903226 15.00000000 +1.87096774 9.41935484 15.00000000 +1.87096774 9.70967742 15.00000000 +1.87096774 10.00000000 15.00000000 +2.16129032 1.00000000 10.00000000 +2.16129032 1.29032258 10.00000000 +2.16129032 1.58064516 10.00000000 +2.16129032 1.87096774 10.00000000 +2.16129032 2.16129032 10.00000000 +2.16129032 2.45161290 10.00000000 +2.16129032 2.74193548 10.00000000 +2.16129032 3.03225806 10.04032258 +2.16129032 3.32258065 10.40322581 +2.16129032 3.61290323 10.76612903 +2.16129032 3.90322581 11.12903226 +2.16129032 4.19354839 11.49193548 +2.16129032 4.48387097 11.85483871 +2.16129032 4.77419355 12.21774194 +2.16129032 5.06451613 12.58064516 +2.16129032 5.35483871 12.94354839 +2.16129032 5.64516129 13.30645161 +2.16129032 5.93548387 13.66935484 +2.16129032 6.22580645 14.03225806 +2.16129032 6.51612903 14.39516129 +2.16129032 6.80645161 14.75806452 +2.16129032 7.09677419 15.00000000 +2.16129032 7.38709677 15.00000000 +2.16129032 7.67741935 15.00000000 +2.16129032 7.96774194 15.00000000 +2.16129032 8.25806452 15.00000000 +2.16129032 8.54838710 15.00000000 +2.16129032 8.83870968 15.00000000 +2.16129032 9.12903226 15.00000000 +2.16129032 9.41935484 15.00000000 +2.16129032 9.70967742 15.00000000 +2.16129032 10.00000000 15.00000000 +2.45161290 1.00000000 10.00000000 +2.45161290 1.29032258 10.00000000 +2.45161290 1.58064516 10.00000000 +2.45161290 1.87096774 10.00000000 +2.45161290 2.16129032 10.00000000 +2.45161290 2.45161290 10.00000000 +2.45161290 2.74193548 10.00000000 +2.45161290 3.03225806 10.04032258 +2.45161290 3.32258065 10.40322581 +2.45161290 3.61290323 10.76612903 +2.45161290 3.90322581 11.12903226 +2.45161290 4.19354839 11.49193548 +2.45161290 4.48387097 11.85483871 +2.45161290 4.77419355 12.21774194 +2.45161290 5.06451613 12.58064516 +2.45161290 5.35483871 12.94354839 +2.45161290 5.64516129 13.30645161 +2.45161290 5.93548387 13.66935484 +2.45161290 6.22580645 14.03225806 +2.45161290 6.51612903 14.39516129 +2.45161290 6.80645161 14.75806452 +2.45161290 7.09677419 15.00000000 +2.45161290 7.38709677 15.00000000 +2.45161290 7.67741935 15.00000000 +2.45161290 7.96774194 15.00000000 +2.45161290 8.25806452 15.00000000 +2.45161290 8.54838710 15.00000000 +2.45161290 8.83870968 15.00000000 +2.45161290 9.12903226 15.00000000 +2.45161290 9.41935484 15.00000000 +2.45161290 9.70967742 15.00000000 +2.45161290 10.00000000 15.00000000 +2.74193548 1.00000000 10.00000000 +2.74193548 1.29032258 10.00000000 +2.74193548 1.58064516 10.00000000 +2.74193548 1.87096774 10.00000000 +2.74193548 2.16129032 10.00000000 +2.74193548 2.45161290 10.00000000 +2.74193548 2.74193548 10.00000000 +2.74193548 3.03225806 10.04032258 +2.74193548 3.32258065 10.40322581 +2.74193548 3.61290323 10.76612903 +2.74193548 3.90322581 11.12903226 +2.74193548 4.19354839 11.49193548 +2.74193548 4.48387097 11.85483871 +2.74193548 4.77419355 12.21774194 +2.74193548 5.06451613 12.58064516 +2.74193548 5.35483871 12.94354839 +2.74193548 5.64516129 13.30645161 +2.74193548 5.93548387 13.66935484 +2.74193548 6.22580645 14.03225806 +2.74193548 6.51612903 14.39516129 +2.74193548 6.80645161 14.75806452 +2.74193548 7.09677419 15.00000000 +2.74193548 7.38709677 15.00000000 +2.74193548 7.67741935 15.00000000 +2.74193548 7.96774194 15.00000000 +2.74193548 8.25806452 15.00000000 +2.74193548 8.54838710 15.00000000 +2.74193548 8.83870968 15.00000000 +2.74193548 9.12903226 15.00000000 +2.74193548 9.41935484 15.00000000 +2.74193548 9.70967742 15.00000000 +2.74193548 10.00000000 15.00000000 +3.03225806 1.00000000 10.04032258 +3.03225806 1.29032258 10.04032258 +3.03225806 1.58064516 10.04032258 +3.03225806 1.87096774 10.04032258 +3.03225806 2.16129032 10.04032258 +3.03225806 2.45161290 10.04032258 +3.03225806 2.74193548 10.04032258 +3.03225806 3.03225806 10.15873016 +3.03225806 3.32258065 10.51587302 +3.03225806 3.61290323 10.87301587 +3.03225806 3.90322581 11.23015873 +3.03225806 4.19354839 11.58730159 +3.03225806 4.48387097 11.94444444 +3.03225806 4.77419355 12.30158730 +3.03225806 5.06451613 12.65873016 +3.03225806 5.35483871 13.01587302 +3.03225806 5.64516129 13.37301587 +3.03225806 5.93548387 13.73015873 +3.03225806 6.22580645 14.08730159 +3.03225806 6.51612903 14.44444444 +3.03225806 6.80645161 14.80158730 +3.03225806 7.09677419 15.04032258 +3.03225806 7.38709677 15.04032258 +3.03225806 7.67741935 15.04032258 +3.03225806 7.96774194 15.04032258 +3.03225806 8.25806452 15.04032258 +3.03225806 8.54838710 15.04032258 +3.03225806 8.83870968 15.04032258 +3.03225806 9.12903226 15.04032258 +3.03225806 9.41935484 15.04032258 +3.03225806 9.70967742 15.04032258 +3.03225806 10.00000000 15.04032258 +3.32258065 1.00000000 10.40322581 +3.32258065 1.29032258 10.40322581 +3.32258065 1.58064516 10.40322581 +3.32258065 1.87096774 10.40322581 +3.32258065 2.16129032 10.40322581 +3.32258065 2.45161290 10.40322581 +3.32258065 2.74193548 10.40322581 +3.32258065 3.03225806 10.51587302 +3.32258065 3.32258065 11.38888889 +3.32258065 3.61290323 11.70138889 +3.32258065 3.90322581 12.01388889 +3.32258065 4.19354839 12.32638889 +3.32258065 4.48387097 12.63888889 +3.32258065 4.77419355 12.95138889 +3.32258065 5.06451613 13.26388889 +3.32258065 5.35483871 13.57638889 +3.32258065 5.64516129 13.88888889 +3.32258065 5.93548387 14.20138889 +3.32258065 6.22580645 14.51388889 +3.32258065 6.51612903 14.82638889 +3.32258065 6.80645161 15.14705882 +3.32258065 7.09677419 15.40322581 +3.32258065 7.38709677 15.40322581 +3.32258065 7.67741935 15.40322581 +3.32258065 7.96774194 15.40322581 +3.32258065 8.25806452 15.40322581 +3.32258065 8.54838710 15.40322581 +3.32258065 8.83870968 15.40322581 +3.32258065 9.12903226 15.40322581 +3.32258065 9.41935484 15.40322581 +3.32258065 9.70967742 15.40322581 +3.32258065 10.00000000 15.40322581 +3.61290323 1.00000000 10.76612903 +3.61290323 1.29032258 10.76612903 +3.61290323 1.58064516 10.76612903 +3.61290323 1.87096774 10.76612903 +3.61290323 2.16129032 10.76612903 +3.61290323 2.45161290 10.76612903 +3.61290323 2.74193548 10.76612903 +3.61290323 3.03225806 10.87301587 +3.61290323 3.32258065 11.70138889 +3.61290323 3.61290323 12.34567901 +3.61290323 3.90322581 12.62345679 +3.61290323 4.19354839 12.90123457 +3.61290323 4.48387097 13.17901235 +3.61290323 4.77419355 13.45679012 +3.61290323 5.06451613 13.73456790 +3.61290323 5.35483871 14.01234568 +3.61290323 5.64516129 14.29012346 +3.61290323 5.93548387 14.56790123 +3.61290323 6.22580645 14.84567901 +3.61290323 6.51612903 15.12987013 +3.61290323 6.80645161 15.47794118 +3.61290323 7.09677419 15.76612903 +3.61290323 7.38709677 15.76612903 +3.61290323 7.67741935 15.76612903 +3.61290323 7.96774194 15.76612903 +3.61290323 8.25806452 15.76612903 +3.61290323 8.54838710 15.76612903 +3.61290323 8.83870968 15.76612903 +3.61290323 9.12903226 15.76612903 +3.61290323 9.41935484 15.76612903 +3.61290323 9.70967742 15.76612903 +3.61290323 10.00000000 15.76612903 +3.90322581 1.00000000 11.12903226 +3.90322581 1.29032258 11.12903226 +3.90322581 1.58064516 11.12903226 +3.90322581 1.87096774 11.12903226 +3.90322581 2.16129032 11.12903226 +3.90322581 2.45161290 11.12903226 +3.90322581 2.74193548 11.12903226 +3.90322581 3.03225806 11.23015873 +3.90322581 3.32258065 12.01388889 +3.90322581 3.61290323 12.62345679 +3.90322581 3.90322581 13.11111111 +3.90322581 4.19354839 13.36111111 +3.90322581 4.48387097 13.61111111 +3.90322581 4.77419355 13.86111111 +3.90322581 5.06451613 14.11111111 +3.90322581 5.35483871 14.36111111 +3.90322581 5.64516129 14.61111111 +3.90322581 5.93548387 14.86111111 +3.90322581 6.22580645 15.11627907 +3.90322581 6.51612903 15.42207792 +3.90322581 6.80645161 15.80882353 +3.90322581 7.09677419 16.12903226 +3.90322581 7.38709677 16.12903226 +3.90322581 7.67741935 16.12903226 +3.90322581 7.96774194 16.12903226 +3.90322581 8.25806452 16.12903226 +3.90322581 8.54838710 16.12903226 +3.90322581 8.83870968 16.12903226 +3.90322581 9.12903226 16.12903226 +3.90322581 9.41935484 16.12903226 +3.90322581 9.70967742 16.12903226 +3.90322581 10.00000000 16.12903226 +4.19354839 1.00000000 11.49193548 +4.19354839 1.29032258 11.49193548 +4.19354839 1.58064516 11.49193548 +4.19354839 1.87096774 11.49193548 +4.19354839 2.16129032 11.49193548 +4.19354839 2.45161290 11.49193548 +4.19354839 2.74193548 11.49193548 +4.19354839 3.03225806 11.58730159 +4.19354839 3.32258065 12.32638889 +4.19354839 3.61290323 12.90123457 +4.19354839 3.90322581 13.36111111 +4.19354839 4.19354839 13.73737374 +4.19354839 4.48387097 13.96464646 +4.19354839 4.77419355 14.19191919 +4.19354839 5.06451613 14.41919192 +4.19354839 5.35483871 14.64646465 +4.19354839 5.64516129 14.87373737 +4.19354839 5.93548387 15.10526316 +4.19354839 6.22580645 15.37790698 +4.19354839 6.51612903 15.71428571 +4.19354839 6.80645161 16.13970588 +4.19354839 7.09677419 16.49193548 +4.19354839 7.38709677 16.49193548 +4.19354839 7.67741935 16.49193548 +4.19354839 7.96774194 16.49193548 +4.19354839 8.25806452 16.49193548 +4.19354839 8.54838710 16.49193548 +4.19354839 8.83870968 16.49193548 +4.19354839 9.12903226 16.49193548 +4.19354839 9.41935484 16.49193548 +4.19354839 9.70967742 16.49193548 +4.19354839 10.00000000 16.49193548 +4.48387097 1.00000000 11.85483871 +4.48387097 1.29032258 11.85483871 +4.48387097 1.58064516 11.85483871 +4.48387097 1.87096774 11.85483871 +4.48387097 2.16129032 11.85483871 +4.48387097 2.45161290 11.85483871 +4.48387097 2.74193548 11.85483871 +4.48387097 3.03225806 11.94444444 +4.48387097 3.32258065 12.63888889 +4.48387097 3.61290323 13.17901235 +4.48387097 3.90322581 13.61111111 +4.48387097 4.19354839 13.96464646 +4.48387097 4.48387097 14.25925926 +4.48387097 4.77419355 14.46759259 +4.48387097 5.06451613 14.67592593 +4.48387097 5.35483871 14.88425926 +4.48387097 5.64516129 15.09615385 +4.48387097 5.93548387 15.34210526 +4.48387097 6.22580645 15.63953488 +4.48387097 6.51612903 16.00649351 +4.48387097 6.80645161 16.47058824 +4.48387097 7.09677419 16.85483871 +4.48387097 7.38709677 16.85483871 +4.48387097 7.67741935 16.85483871 +4.48387097 7.96774194 16.85483871 +4.48387097 8.25806452 16.85483871 +4.48387097 8.54838710 16.85483871 +4.48387097 8.83870968 16.85483871 +4.48387097 9.12903226 16.85483871 +4.48387097 9.41935484 16.85483871 +4.48387097 9.70967742 16.85483871 +4.48387097 10.00000000 16.85483871 +4.77419355 1.00000000 12.21774194 +4.77419355 1.29032258 12.21774194 +4.77419355 1.58064516 12.21774194 +4.77419355 1.87096774 12.21774194 +4.77419355 2.16129032 12.21774194 +4.77419355 2.45161290 12.21774194 +4.77419355 2.74193548 12.21774194 +4.77419355 3.03225806 12.30158730 +4.77419355 3.32258065 12.95138889 +4.77419355 3.61290323 13.45679012 +4.77419355 3.90322581 13.86111111 +4.77419355 4.19354839 14.19191919 +4.77419355 4.48387097 14.46759259 +4.77419355 4.77419355 14.70085470 +4.77419355 5.06451613 14.89316239 +4.77419355 5.35483871 15.08849558 +4.77419355 5.64516129 15.31250000 +4.77419355 5.93548387 15.57894737 +4.77419355 6.22580645 15.90116279 +4.77419355 6.51612903 16.29870130 +4.77419355 6.80645161 16.80147059 +4.77419355 7.09677419 17.21774194 +4.77419355 7.38709677 17.21774194 +4.77419355 7.67741935 17.21774194 +4.77419355 7.96774194 17.21774194 +4.77419355 8.25806452 17.21774194 +4.77419355 8.54838710 17.21774194 +4.77419355 8.83870968 17.21774194 +4.77419355 9.12903226 17.21774194 +4.77419355 9.41935484 17.21774194 +4.77419355 9.70967742 17.21774194 +4.77419355 10.00000000 17.21774194 +5.06451613 1.00000000 12.58064516 +5.06451613 1.29032258 12.58064516 +5.06451613 1.58064516 12.58064516 +5.06451613 1.87096774 12.58064516 +5.06451613 2.16129032 12.58064516 +5.06451613 2.45161290 12.58064516 +5.06451613 2.74193548 12.58064516 +5.06451613 3.03225806 12.65873016 +5.06451613 3.32258065 13.26388889 +5.06451613 3.61290323 13.73456790 +5.06451613 3.90322581 14.11111111 +5.06451613 4.19354839 14.41919192 +5.06451613 4.48387097 14.67592593 +5.06451613 4.77419355 14.89316239 +5.06451613 5.06451613 15.08196721 +5.06451613 5.35483871 15.28761062 +5.06451613 5.64516129 15.52884615 +5.06451613 5.93548387 15.81578947 +5.06451613 6.22580645 16.16279070 +5.06451613 6.51612903 16.59090909 +5.06451613 6.80645161 17.13235294 +5.06451613 7.09677419 17.58064516 +5.06451613 7.38709677 17.58064516 +5.06451613 7.67741935 17.58064516 +5.06451613 7.96774194 17.58064516 +5.06451613 8.25806452 17.58064516 +5.06451613 8.54838710 17.58064516 +5.06451613 8.83870968 17.58064516 +5.06451613 9.12903226 17.58064516 +5.06451613 9.41935484 17.58064516 +5.06451613 9.70967742 17.58064516 +5.06451613 10.00000000 17.58064516 +5.35483871 1.00000000 12.94354839 +5.35483871 1.29032258 12.94354839 +5.35483871 1.58064516 12.94354839 +5.35483871 1.87096774 12.94354839 +5.35483871 2.16129032 12.94354839 +5.35483871 2.45161290 12.94354839 +5.35483871 2.74193548 12.94354839 +5.35483871 3.03225806 13.01587302 +5.35483871 3.32258065 13.57638889 +5.35483871 3.61290323 14.01234568 +5.35483871 3.90322581 14.36111111 +5.35483871 4.19354839 14.64646465 +5.35483871 4.48387097 14.88425926 +5.35483871 4.77419355 15.08849558 +5.35483871 5.06451613 15.28761062 +5.35483871 5.35483871 15.48672566 +5.35483871 5.64516129 15.74519231 +5.35483871 5.93548387 16.05263158 +5.35483871 6.22580645 16.42441860 +5.35483871 6.51612903 16.88311688 +5.35483871 6.80645161 17.46323529 +5.35483871 7.09677419 17.94354839 +5.35483871 7.38709677 17.94354839 +5.35483871 7.67741935 17.94354839 +5.35483871 7.96774194 17.94354839 +5.35483871 8.25806452 17.94354839 +5.35483871 8.54838710 17.94354839 +5.35483871 8.83870968 17.94354839 +5.35483871 9.12903226 17.94354839 +5.35483871 9.41935484 17.94354839 +5.35483871 9.70967742 17.94354839 +5.35483871 10.00000000 17.94354839 +5.64516129 1.00000000 13.30645161 +5.64516129 1.29032258 13.30645161 +5.64516129 1.58064516 13.30645161 +5.64516129 1.87096774 13.30645161 +5.64516129 2.16129032 13.30645161 +5.64516129 2.45161290 13.30645161 +5.64516129 2.74193548 13.30645161 +5.64516129 3.03225806 13.37301587 +5.64516129 3.32258065 13.88888889 +5.64516129 3.61290323 14.29012346 +5.64516129 3.90322581 14.61111111 +5.64516129 4.19354839 14.87373737 +5.64516129 4.48387097 15.09615385 +5.64516129 4.77419355 15.31250000 +5.64516129 5.06451613 15.52884615 +5.64516129 5.35483871 15.74519231 +5.64516129 5.64516129 15.96153846 +5.64516129 5.93548387 16.28947368 +5.64516129 6.22580645 16.68604651 +5.64516129 6.51612903 17.17532468 +5.64516129 6.80645161 17.79411765 +5.64516129 7.09677419 18.30645161 +5.64516129 7.38709677 18.30645161 +5.64516129 7.67741935 18.30645161 +5.64516129 7.96774194 18.30645161 +5.64516129 8.25806452 18.30645161 +5.64516129 8.54838710 18.30645161 +5.64516129 8.83870968 18.30645161 +5.64516129 9.12903226 18.30645161 +5.64516129 9.41935484 18.30645161 +5.64516129 9.70967742 18.30645161 +5.64516129 10.00000000 18.30645161 +5.93548387 1.00000000 13.66935484 +5.93548387 1.29032258 13.66935484 +5.93548387 1.58064516 13.66935484 +5.93548387 1.87096774 13.66935484 +5.93548387 2.16129032 13.66935484 +5.93548387 2.45161290 13.66935484 +5.93548387 2.74193548 13.66935484 +5.93548387 3.03225806 13.73015873 +5.93548387 3.32258065 14.20138889 +5.93548387 3.61290323 14.56790123 +5.93548387 3.90322581 14.86111111 +5.93548387 4.19354839 15.10526316 +5.93548387 4.48387097 15.34210526 +5.93548387 4.77419355 15.57894737 +5.93548387 5.06451613 15.81578947 +5.93548387 5.35483871 16.05263158 +5.93548387 5.64516129 16.28947368 +5.93548387 5.93548387 16.52631579 +5.93548387 6.22580645 16.94767442 +5.93548387 6.51612903 17.46753247 +5.93548387 6.80645161 18.12500000 +5.93548387 7.09677419 18.66935484 +5.93548387 7.38709677 18.66935484 +5.93548387 7.67741935 18.66935484 +5.93548387 7.96774194 18.66935484 +5.93548387 8.25806452 18.66935484 +5.93548387 8.54838710 18.66935484 +5.93548387 8.83870968 18.66935484 +5.93548387 9.12903226 18.66935484 +5.93548387 9.41935484 18.66935484 +5.93548387 9.70967742 18.66935484 +5.93548387 10.00000000 18.66935484 +6.22580645 1.00000000 14.03225806 +6.22580645 1.29032258 14.03225806 +6.22580645 1.58064516 14.03225806 +6.22580645 1.87096774 14.03225806 +6.22580645 2.16129032 14.03225806 +6.22580645 2.45161290 14.03225806 +6.22580645 2.74193548 14.03225806 +6.22580645 3.03225806 14.08730159 +6.22580645 3.32258065 14.51388889 +6.22580645 3.61290323 14.84567901 +6.22580645 3.90322581 15.11627907 +6.22580645 4.19354839 15.37790698 +6.22580645 4.48387097 15.63953488 +6.22580645 4.77419355 15.90116279 +6.22580645 5.06451613 16.16279070 +6.22580645 5.35483871 16.42441860 +6.22580645 5.64516129 16.68604651 +6.22580645 5.93548387 16.94767442 +6.22580645 6.22580645 17.20930233 +6.22580645 6.51612903 17.75974026 +6.22580645 6.80645161 18.45588235 +6.22580645 7.09677419 19.03225806 +6.22580645 7.38709677 19.03225806 +6.22580645 7.67741935 19.03225806 +6.22580645 7.96774194 19.03225806 +6.22580645 8.25806452 19.03225806 +6.22580645 8.54838710 19.03225806 +6.22580645 8.83870968 19.03225806 +6.22580645 9.12903226 19.03225806 +6.22580645 9.41935484 19.03225806 +6.22580645 9.70967742 19.03225806 +6.22580645 10.00000000 19.03225806 +6.51612903 1.00000000 14.39516129 +6.51612903 1.29032258 14.39516129 +6.51612903 1.58064516 14.39516129 +6.51612903 1.87096774 14.39516129 +6.51612903 2.16129032 14.39516129 +6.51612903 2.45161290 14.39516129 +6.51612903 2.74193548 14.39516129 +6.51612903 3.03225806 14.44444444 +6.51612903 3.32258065 14.82638889 +6.51612903 3.61290323 15.12987013 +6.51612903 3.90322581 15.42207792 +6.51612903 4.19354839 15.71428571 +6.51612903 4.48387097 16.00649351 +6.51612903 4.77419355 16.29870130 +6.51612903 5.06451613 16.59090909 +6.51612903 5.35483871 16.88311688 +6.51612903 5.64516129 17.17532468 +6.51612903 5.93548387 17.46753247 +6.51612903 6.22580645 17.75974026 +6.51612903 6.51612903 18.05194805 +6.51612903 6.80645161 18.78676471 +6.51612903 7.09677419 19.39516129 +6.51612903 7.38709677 19.39516129 +6.51612903 7.67741935 19.39516129 +6.51612903 7.96774194 19.39516129 +6.51612903 8.25806452 19.39516129 +6.51612903 8.54838710 19.39516129 +6.51612903 8.83870968 19.39516129 +6.51612903 9.12903226 19.39516129 +6.51612903 9.41935484 19.39516129 +6.51612903 9.70967742 19.39516129 +6.51612903 10.00000000 19.39516129 +6.80645161 1.00000000 14.75806452 +6.80645161 1.29032258 14.75806452 +6.80645161 1.58064516 14.75806452 +6.80645161 1.87096774 14.75806452 +6.80645161 2.16129032 14.75806452 +6.80645161 2.45161290 14.75806452 +6.80645161 2.74193548 14.75806452 +6.80645161 3.03225806 14.80158730 +6.80645161 3.32258065 15.14705882 +6.80645161 3.61290323 15.47794118 +6.80645161 3.90322581 15.80882353 +6.80645161 4.19354839 16.13970588 +6.80645161 4.48387097 16.47058824 +6.80645161 4.77419355 16.80147059 +6.80645161 5.06451613 17.13235294 +6.80645161 5.35483871 17.46323529 +6.80645161 5.64516129 17.79411765 +6.80645161 5.93548387 18.12500000 +6.80645161 6.22580645 18.45588235 +6.80645161 6.51612903 18.78676471 +6.80645161 6.80645161 19.11764706 +6.80645161 7.09677419 19.75806452 +6.80645161 7.38709677 19.75806452 +6.80645161 7.67741935 19.75806452 +6.80645161 7.96774194 19.75806452 +6.80645161 8.25806452 19.75806452 +6.80645161 8.54838710 19.75806452 +6.80645161 8.83870968 19.75806452 +6.80645161 9.12903226 19.75806452 +6.80645161 9.41935484 19.75806452 +6.80645161 9.70967742 19.75806452 +6.80645161 10.00000000 19.75806452 +7.09677419 1.00000000 15.00000000 +7.09677419 1.29032258 15.00000000 +7.09677419 1.58064516 15.00000000 +7.09677419 1.87096774 15.00000000 +7.09677419 2.16129032 15.00000000 +7.09677419 2.45161290 15.00000000 +7.09677419 2.74193548 15.00000000 +7.09677419 3.03225806 15.04032258 +7.09677419 3.32258065 15.40322581 +7.09677419 3.61290323 15.76612903 +7.09677419 3.90322581 16.12903226 +7.09677419 4.19354839 16.49193548 +7.09677419 4.48387097 16.85483871 +7.09677419 4.77419355 17.21774194 +7.09677419 5.06451613 17.58064516 +7.09677419 5.35483871 17.94354839 +7.09677419 5.64516129 18.30645161 +7.09677419 5.93548387 18.66935484 +7.09677419 6.22580645 19.03225806 +7.09677419 6.51612903 19.39516129 +7.09677419 6.80645161 19.75806452 +7.09677419 7.09677419 20.00000000 +7.09677419 7.38709677 20.00000000 +7.09677419 7.67741935 20.00000000 +7.09677419 7.96774194 20.00000000 +7.09677419 8.25806452 20.00000000 +7.09677419 8.54838710 20.00000000 +7.09677419 8.83870968 20.00000000 +7.09677419 9.12903226 20.00000000 +7.09677419 9.41935484 20.00000000 +7.09677419 9.70967742 20.00000000 +7.09677419 10.00000000 20.00000000 +7.38709677 1.00000000 15.00000000 +7.38709677 1.29032258 15.00000000 +7.38709677 1.58064516 15.00000000 +7.38709677 1.87096774 15.00000000 +7.38709677 2.16129032 15.00000000 +7.38709677 2.45161290 15.00000000 +7.38709677 2.74193548 15.00000000 +7.38709677 3.03225806 15.04032258 +7.38709677 3.32258065 15.40322581 +7.38709677 3.61290323 15.76612903 +7.38709677 3.90322581 16.12903226 +7.38709677 4.19354839 16.49193548 +7.38709677 4.48387097 16.85483871 +7.38709677 4.77419355 17.21774194 +7.38709677 5.06451613 17.58064516 +7.38709677 5.35483871 17.94354839 +7.38709677 5.64516129 18.30645161 +7.38709677 5.93548387 18.66935484 +7.38709677 6.22580645 19.03225806 +7.38709677 6.51612903 19.39516129 +7.38709677 6.80645161 19.75806452 +7.38709677 7.09677419 20.00000000 +7.38709677 7.38709677 20.00000000 +7.38709677 7.67741935 20.00000000 +7.38709677 7.96774194 20.00000000 +7.38709677 8.25806452 20.00000000 +7.38709677 8.54838710 20.00000000 +7.38709677 8.83870968 20.00000000 +7.38709677 9.12903226 20.00000000 +7.38709677 9.41935484 20.00000000 +7.38709677 9.70967742 20.00000000 +7.38709677 10.00000000 20.00000000 +7.67741935 1.00000000 15.00000000 +7.67741935 1.29032258 15.00000000 +7.67741935 1.58064516 15.00000000 +7.67741935 1.87096774 15.00000000 +7.67741935 2.16129032 15.00000000 +7.67741935 2.45161290 15.00000000 +7.67741935 2.74193548 15.00000000 +7.67741935 3.03225806 15.04032258 +7.67741935 3.32258065 15.40322581 +7.67741935 3.61290323 15.76612903 +7.67741935 3.90322581 16.12903226 +7.67741935 4.19354839 16.49193548 +7.67741935 4.48387097 16.85483871 +7.67741935 4.77419355 17.21774194 +7.67741935 5.06451613 17.58064516 +7.67741935 5.35483871 17.94354839 +7.67741935 5.64516129 18.30645161 +7.67741935 5.93548387 18.66935484 +7.67741935 6.22580645 19.03225806 +7.67741935 6.51612903 19.39516129 +7.67741935 6.80645161 19.75806452 +7.67741935 7.09677419 20.00000000 +7.67741935 7.38709677 20.00000000 +7.67741935 7.67741935 20.00000000 +7.67741935 7.96774194 20.00000000 +7.67741935 8.25806452 20.00000000 +7.67741935 8.54838710 20.00000000 +7.67741935 8.83870968 20.00000000 +7.67741935 9.12903226 20.00000000 +7.67741935 9.41935484 20.00000000 +7.67741935 9.70967742 20.00000000 +7.67741935 10.00000000 20.00000000 +7.96774194 1.00000000 15.00000000 +7.96774194 1.29032258 15.00000000 +7.96774194 1.58064516 15.00000000 +7.96774194 1.87096774 15.00000000 +7.96774194 2.16129032 15.00000000 +7.96774194 2.45161290 15.00000000 +7.96774194 2.74193548 15.00000000 +7.96774194 3.03225806 15.04032258 +7.96774194 3.32258065 15.40322581 +7.96774194 3.61290323 15.76612903 +7.96774194 3.90322581 16.12903226 +7.96774194 4.19354839 16.49193548 +7.96774194 4.48387097 16.85483871 +7.96774194 4.77419355 17.21774194 +7.96774194 5.06451613 17.58064516 +7.96774194 5.35483871 17.94354839 +7.96774194 5.64516129 18.30645161 +7.96774194 5.93548387 18.66935484 +7.96774194 6.22580645 19.03225806 +7.96774194 6.51612903 19.39516129 +7.96774194 6.80645161 19.75806452 +7.96774194 7.09677419 20.00000000 +7.96774194 7.38709677 20.00000000 +7.96774194 7.67741935 20.00000000 +7.96774194 7.96774194 20.00000000 +7.96774194 8.25806452 20.00000000 +7.96774194 8.54838710 20.00000000 +7.96774194 8.83870968 20.00000000 +7.96774194 9.12903226 20.00000000 +7.96774194 9.41935484 20.00000000 +7.96774194 9.70967742 20.00000000 +7.96774194 10.00000000 20.00000000 +8.25806452 1.00000000 15.00000000 +8.25806452 1.29032258 15.00000000 +8.25806452 1.58064516 15.00000000 +8.25806452 1.87096774 15.00000000 +8.25806452 2.16129032 15.00000000 +8.25806452 2.45161290 15.00000000 +8.25806452 2.74193548 15.00000000 +8.25806452 3.03225806 15.04032258 +8.25806452 3.32258065 15.40322581 +8.25806452 3.61290323 15.76612903 +8.25806452 3.90322581 16.12903226 +8.25806452 4.19354839 16.49193548 +8.25806452 4.48387097 16.85483871 +8.25806452 4.77419355 17.21774194 +8.25806452 5.06451613 17.58064516 +8.25806452 5.35483871 17.94354839 +8.25806452 5.64516129 18.30645161 +8.25806452 5.93548387 18.66935484 +8.25806452 6.22580645 19.03225806 +8.25806452 6.51612903 19.39516129 +8.25806452 6.80645161 19.75806452 +8.25806452 7.09677419 20.00000000 +8.25806452 7.38709677 20.00000000 +8.25806452 7.67741935 20.00000000 +8.25806452 7.96774194 20.00000000 +8.25806452 8.25806452 20.00000000 +8.25806452 8.54838710 20.00000000 +8.25806452 8.83870968 20.00000000 +8.25806452 9.12903226 20.00000000 +8.25806452 9.41935484 20.00000000 +8.25806452 9.70967742 20.00000000 +8.25806452 10.00000000 20.00000000 +8.54838710 1.00000000 15.00000000 +8.54838710 1.29032258 15.00000000 +8.54838710 1.58064516 15.00000000 +8.54838710 1.87096774 15.00000000 +8.54838710 2.16129032 15.00000000 +8.54838710 2.45161290 15.00000000 +8.54838710 2.74193548 15.00000000 +8.54838710 3.03225806 15.04032258 +8.54838710 3.32258065 15.40322581 +8.54838710 3.61290323 15.76612903 +8.54838710 3.90322581 16.12903226 +8.54838710 4.19354839 16.49193548 +8.54838710 4.48387097 16.85483871 +8.54838710 4.77419355 17.21774194 +8.54838710 5.06451613 17.58064516 +8.54838710 5.35483871 17.94354839 +8.54838710 5.64516129 18.30645161 +8.54838710 5.93548387 18.66935484 +8.54838710 6.22580645 19.03225806 +8.54838710 6.51612903 19.39516129 +8.54838710 6.80645161 19.75806452 +8.54838710 7.09677419 20.00000000 +8.54838710 7.38709677 20.00000000 +8.54838710 7.67741935 20.00000000 +8.54838710 7.96774194 20.00000000 +8.54838710 8.25806452 20.00000000 +8.54838710 8.54838710 20.00000000 +8.54838710 8.83870968 20.00000000 +8.54838710 9.12903226 20.00000000 +8.54838710 9.41935484 20.00000000 +8.54838710 9.70967742 20.00000000 +8.54838710 10.00000000 20.00000000 +8.83870968 1.00000000 15.00000000 +8.83870968 1.29032258 15.00000000 +8.83870968 1.58064516 15.00000000 +8.83870968 1.87096774 15.00000000 +8.83870968 2.16129032 15.00000000 +8.83870968 2.45161290 15.00000000 +8.83870968 2.74193548 15.00000000 +8.83870968 3.03225806 15.04032258 +8.83870968 3.32258065 15.40322581 +8.83870968 3.61290323 15.76612903 +8.83870968 3.90322581 16.12903226 +8.83870968 4.19354839 16.49193548 +8.83870968 4.48387097 16.85483871 +8.83870968 4.77419355 17.21774194 +8.83870968 5.06451613 17.58064516 +8.83870968 5.35483871 17.94354839 +8.83870968 5.64516129 18.30645161 +8.83870968 5.93548387 18.66935484 +8.83870968 6.22580645 19.03225806 +8.83870968 6.51612903 19.39516129 +8.83870968 6.80645161 19.75806452 +8.83870968 7.09677419 20.00000000 +8.83870968 7.38709677 20.00000000 +8.83870968 7.67741935 20.00000000 +8.83870968 7.96774194 20.00000000 +8.83870968 8.25806452 20.00000000 +8.83870968 8.54838710 20.00000000 +8.83870968 8.83870968 20.00000000 +8.83870968 9.12903226 20.00000000 +8.83870968 9.41935484 20.00000000 +8.83870968 9.70967742 20.00000000 +8.83870968 10.00000000 20.00000000 +9.12903226 1.00000000 15.00000000 +9.12903226 1.29032258 15.00000000 +9.12903226 1.58064516 15.00000000 +9.12903226 1.87096774 15.00000000 +9.12903226 2.16129032 15.00000000 +9.12903226 2.45161290 15.00000000 +9.12903226 2.74193548 15.00000000 +9.12903226 3.03225806 15.04032258 +9.12903226 3.32258065 15.40322581 +9.12903226 3.61290323 15.76612903 +9.12903226 3.90322581 16.12903226 +9.12903226 4.19354839 16.49193548 +9.12903226 4.48387097 16.85483871 +9.12903226 4.77419355 17.21774194 +9.12903226 5.06451613 17.58064516 +9.12903226 5.35483871 17.94354839 +9.12903226 5.64516129 18.30645161 +9.12903226 5.93548387 18.66935484 +9.12903226 6.22580645 19.03225806 +9.12903226 6.51612903 19.39516129 +9.12903226 6.80645161 19.75806452 +9.12903226 7.09677419 20.00000000 +9.12903226 7.38709677 20.00000000 +9.12903226 7.67741935 20.00000000 +9.12903226 7.96774194 20.00000000 +9.12903226 8.25806452 20.00000000 +9.12903226 8.54838710 20.00000000 +9.12903226 8.83870968 20.00000000 +9.12903226 9.12903226 20.00000000 +9.12903226 9.41935484 20.00000000 +9.12903226 9.70967742 20.00000000 +9.12903226 10.00000000 20.00000000 +9.41935484 1.00000000 15.00000000 +9.41935484 1.29032258 15.00000000 +9.41935484 1.58064516 15.00000000 +9.41935484 1.87096774 15.00000000 +9.41935484 2.16129032 15.00000000 +9.41935484 2.45161290 15.00000000 +9.41935484 2.74193548 15.00000000 +9.41935484 3.03225806 15.04032258 +9.41935484 3.32258065 15.40322581 +9.41935484 3.61290323 15.76612903 +9.41935484 3.90322581 16.12903226 +9.41935484 4.19354839 16.49193548 +9.41935484 4.48387097 16.85483871 +9.41935484 4.77419355 17.21774194 +9.41935484 5.06451613 17.58064516 +9.41935484 5.35483871 17.94354839 +9.41935484 5.64516129 18.30645161 +9.41935484 5.93548387 18.66935484 +9.41935484 6.22580645 19.03225806 +9.41935484 6.51612903 19.39516129 +9.41935484 6.80645161 19.75806452 +9.41935484 7.09677419 20.00000000 +9.41935484 7.38709677 20.00000000 +9.41935484 7.67741935 20.00000000 +9.41935484 7.96774194 20.00000000 +9.41935484 8.25806452 20.00000000 +9.41935484 8.54838710 20.00000000 +9.41935484 8.83870968 20.00000000 +9.41935484 9.12903226 20.00000000 +9.41935484 9.41935484 20.00000000 +9.41935484 9.70967742 20.00000000 +9.41935484 10.00000000 20.00000000 +9.70967742 1.00000000 15.00000000 +9.70967742 1.29032258 15.00000000 +9.70967742 1.58064516 15.00000000 +9.70967742 1.87096774 15.00000000 +9.70967742 2.16129032 15.00000000 +9.70967742 2.45161290 15.00000000 +9.70967742 2.74193548 15.00000000 +9.70967742 3.03225806 15.04032258 +9.70967742 3.32258065 15.40322581 +9.70967742 3.61290323 15.76612903 +9.70967742 3.90322581 16.12903226 +9.70967742 4.19354839 16.49193548 +9.70967742 4.48387097 16.85483871 +9.70967742 4.77419355 17.21774194 +9.70967742 5.06451613 17.58064516 +9.70967742 5.35483871 17.94354839 +9.70967742 5.64516129 18.30645161 +9.70967742 5.93548387 18.66935484 +9.70967742 6.22580645 19.03225806 +9.70967742 6.51612903 19.39516129 +9.70967742 6.80645161 19.75806452 +9.70967742 7.09677419 20.00000000 +9.70967742 7.38709677 20.00000000 +9.70967742 7.67741935 20.00000000 +9.70967742 7.96774194 20.00000000 +9.70967742 8.25806452 20.00000000 +9.70967742 8.54838710 20.00000000 +9.70967742 8.83870968 20.00000000 +9.70967742 9.12903226 20.00000000 +9.70967742 9.41935484 20.00000000 +9.70967742 9.70967742 20.00000000 +9.70967742 10.00000000 20.00000000 +10.00000000 1.00000000 15.00000000 +10.00000000 1.29032258 15.00000000 +10.00000000 1.58064516 15.00000000 +10.00000000 1.87096774 15.00000000 +10.00000000 2.16129032 15.00000000 +10.00000000 2.45161290 15.00000000 +10.00000000 2.74193548 15.00000000 +10.00000000 3.03225806 15.04032258 +10.00000000 3.32258065 15.40322581 +10.00000000 3.61290323 15.76612903 +10.00000000 3.90322581 16.12903226 +10.00000000 4.19354839 16.49193548 +10.00000000 4.48387097 16.85483871 +10.00000000 4.77419355 17.21774194 +10.00000000 5.06451613 17.58064516 +10.00000000 5.35483871 17.94354839 +10.00000000 5.64516129 18.30645161 +10.00000000 5.93548387 18.66935484 +10.00000000 6.22580645 19.03225806 +10.00000000 6.51612903 19.39516129 +10.00000000 6.80645161 19.75806452 +10.00000000 7.09677419 20.00000000 +10.00000000 7.38709677 20.00000000 +10.00000000 7.67741935 20.00000000 +10.00000000 7.96774194 20.00000000 +10.00000000 8.25806452 20.00000000 +10.00000000 8.54838710 20.00000000 +10.00000000 8.83870968 20.00000000 +10.00000000 9.12903226 20.00000000 +10.00000000 9.41935484 20.00000000 +10.00000000 9.70967742 20.00000000 +10.00000000 10.00000000 20.00000000 diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.fll b/examples/takagi-sugeno/octave/linear_tip_calculator.fll new file mode 100644 index 0000000..8c1f597 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.fll @@ -0,0 +1,31 @@ +Engine: Linear-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: 10.000 20.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: TenPercent Linear 0.000 0.000 10.000 + term: FifteenPercent Linear 0.000 0.000 15.000 + term: TwentyPercent Linear 0.000 0.000 20.000 +RuleBlock: + enabled: true + conjunction: Minimum + disjunction: none + activation: none + rule: if FoodQuality is Bad and Service is Bad then Tip is TenPercent + rule: if FoodQuality is Bad and Service is Good then Tip is FifteenPercent + rule: if FoodQuality is Good and Service is Bad then Tip is FifteenPercent + rule: if FoodQuality is Good and Service is Good then Tip is TwentyPercent
\ No newline at end of file diff --git a/examples/takagi-sugeno/octave/linear_tip_calculator.java b/examples/takagi-sugeno/octave/linear_tip_calculator.java new file mode 100644 index 0000000..0600638 --- /dev/null +++ b/examples/takagi-sugeno/octave/linear_tip_calculator.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 linear_tip_calculator{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Linear-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 outputVariable = new OutputVariable(); +outputVariable.setEnabled(true); +outputVariable.setName("Tip"); +outputVariable.setRange(10.000, 20.000); +outputVariable.fuzzyOutput().setAccumulation(null); +outputVariable.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable.setDefaultValue(Double.NaN); +outputVariable.setLockPreviousOutputValue(false); +outputVariable.setLockOutputValueInRange(false); +outputVariable.addTerm(Linear.create("TenPercent", engine, 0.000, 0.000, 10.000)); +outputVariable.addTerm(Linear.create("FifteenPercent", engine, 0.000, 0.000, 15.000)); +outputVariable.addTerm(Linear.create("TwentyPercent", engine, 0.000, 0.000, 20.000)); +engine.addOutputVariable(outputVariable); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new Minimum()); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Bad then Tip is TenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Good then Tip is FifteenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Bad then Tip is FifteenPercent", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Good then Tip is TwentyPercent", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.cpp b/examples/takagi-sugeno/octave/sugeno_tip_calculator.cpp new file mode 100644 index 0000000..d92de0a --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.cpp @@ -0,0 +1,86 @@ +#include <fl/Headers.h> + +int main(int argc, char** argv){ +using namespace fl; + +Engine* engine = new Engine; +engine->setName("Sugeno-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("CheapTip"); +outputVariable1->setRange(5.000, 25.000); +outputVariable1->fuzzyOutput()->setAccumulation(fl::null); +outputVariable1->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable1->setDefaultValue(fl::nan); +outputVariable1->setLockPreviousOutputValue(false); +outputVariable1->setLockOutputValueInRange(false); +outputVariable1->addTerm(new Constant("Low", 10.000)); +outputVariable1->addTerm(new Constant("Medium", 15.000)); +outputVariable1->addTerm(new Constant("High", 20.000)); +engine->addOutputVariable(outputVariable1); + +OutputVariable* outputVariable2 = new OutputVariable; +outputVariable2->setEnabled(true); +outputVariable2->setName("AverageTip"); +outputVariable2->setRange(5.000, 25.000); +outputVariable2->fuzzyOutput()->setAccumulation(fl::null); +outputVariable2->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable2->setDefaultValue(fl::nan); +outputVariable2->setLockPreviousOutputValue(false); +outputVariable2->setLockOutputValueInRange(false); +outputVariable2->addTerm(new Constant("Low", 10.000)); +outputVariable2->addTerm(new Constant("Medium", 15.000)); +outputVariable2->addTerm(new Constant("High", 20.000)); +engine->addOutputVariable(outputVariable2); + +OutputVariable* outputVariable3 = new OutputVariable; +outputVariable3->setEnabled(true); +outputVariable3->setName("GenerousTip"); +outputVariable3->setRange(5.000, 25.000); +outputVariable3->fuzzyOutput()->setAccumulation(fl::null); +outputVariable3->setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable3->setDefaultValue(fl::nan); +outputVariable3->setLockPreviousOutputValue(false); +outputVariable3->setLockOutputValueInRange(false); +outputVariable3->addTerm(new Constant("Low", 10.000)); +outputVariable3->addTerm(new Constant("Medium", 15.000)); +outputVariable3->addTerm(new Constant("High", 20.000)); +engine->addOutputVariable(outputVariable3); + +RuleBlock* ruleBlock = new RuleBlock; +ruleBlock->setEnabled(true); +ruleBlock->setName(""); +ruleBlock->setConjunction(new EinsteinProduct); +ruleBlock->setDisjunction(fl::null); +ruleBlock->setActivation(fl::null); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is extremely Bad and Service is extremely Bad then CheapTip is extremely Low and AverageTip is very Low and GenerousTip is Low", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is extremely Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is very Good and Service is very Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is extremely Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is very High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Bad and Service is Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is Good and Service is Good then CheapTip is Medium and AverageTip is Medium and GenerousTip is very High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is very Bad and Service is very Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock->addRule(fl::Rule::parse("if FoodQuality is very very Good and Service is very very Good then CheapTip is High and AverageTip is very High and GenerousTip is extremely High", engine)); +engine->addRuleBlock(ruleBlock); + + +} diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.fcl b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fcl new file mode 100644 index 0000000..ad98f68 --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fcl @@ -0,0 +1,67 @@ +FUNCTION_BLOCK Sugeno-Tip-Calculator + +VAR_INPUT + FoodQuality: REAL; + Service: REAL; +END_VAR + +VAR_OUTPUT + CheapTip: REAL; + AverageTip: REAL; + GenerousTip: 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 CheapTip + RANGE := (5.000 .. 25.000); + TERM Low := 10.000; + TERM Medium := 15.000; + TERM High := 20.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +DEFUZZIFY AverageTip + RANGE := (5.000 .. 25.000); + TERM Low := 10.000; + TERM Medium := 15.000; + TERM High := 20.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +DEFUZZIFY GenerousTip + RANGE := (5.000 .. 25.000); + TERM Low := 10.000; + TERM Medium := 15.000; + TERM High := 20.000; + METHOD : COGS; + DEFAULT := nan; +END_DEFUZZIFY + +RULEBLOCK + AND : EPROD; + RULE 1 : if FoodQuality is extremely Bad and Service is extremely Bad then CheapTip is extremely Low and AverageTip is very Low and GenerousTip is Low + RULE 2 : if FoodQuality is Good and Service is extremely Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium + RULE 3 : if FoodQuality is very Good and Service is very Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High + RULE 4 : if FoodQuality is Bad and Service is Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium + RULE 5 : if FoodQuality is Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High + RULE 6 : if FoodQuality is extremely Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is very High + RULE 7 : if FoodQuality is Bad and Service is Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High + RULE 8 : if FoodQuality is Good and Service is Good then CheapTip is Medium and AverageTip is Medium and GenerousTip is very High + RULE 9 : if FoodQuality is very Bad and Service is very Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High + RULE 10 : if FoodQuality is very very Good and Service is very very Good then CheapTip is High and AverageTip is very High and GenerousTip is extremely High +END_RULEBLOCK + +END_FUNCTION_BLOCK diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.fis b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fis new file mode 100644 index 0000000..4349913 --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fis @@ -0,0 +1,61 @@ +[System] +Name='Sugeno-Tip-Calculator' +Type='sugeno' +NumInputs=2 +NumOutputs=3 +NumRules=10 +AndMethod='einstein_product' +OrMethod='' +ImpMethod='' +AggMethod='' +DefuzzMethod='wtaver' + +[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='CheapTip' +Range=[5.000 25.000] +NumMFs=3 +MF1='Low':'constant',[10.000] +MF2='Medium':'constant',[15.000] +MF3='High':'constant',[20.000] + +[Output2] +Name='AverageTip' +Range=[5.000 25.000] +NumMFs=3 +MF1='Low':'constant',[10.000] +MF2='Medium':'constant',[15.000] +MF3='High':'constant',[20.000] + +[Output3] +Name='GenerousTip' +Range=[5.000 25.000] +NumMFs=3 +MF1='Low':'constant',[10.000] +MF2='Medium':'constant',[15.000] +MF3='High':'constant',[20.000] + +[Rules] +1.300 1.300 , 1.300 1.200 1.000 (1.000) : 1 +2.000 1.300 , 1.000 1.000 2.000 (1.000) : 1 +2.200 1.200 , 1.000 2.000 3.000 (1.000) : 1 +1.000 1.000 , 1.000 1.000 2.000 (1.000) : 1 +2.000 1.000 , 1.000 2.000 3.000 (1.000) : 1 +2.300 1.000 , 1.000 2.000 3.200 (1.000) : 1 +1.000 2.000 , 1.000 2.000 3.000 (1.000) : 1 +2.000 2.000 , 2.000 2.000 3.200 (1.000) : 1 +1.200 2.200 , 1.000 2.000 3.000 (1.000) : 1 +2.400 2.400 , 3.000 3.200 3.300 (1.000) : 1 diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.fld b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fld new file mode 100644 index 0000000..6816af5 --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fld @@ -0,0 +1,1026 @@ +#@Engine: Sugeno-Tip-Calculator; +#@InputVariable: FoodQuality; @InputVariable: Service; @OutputVariable: CheapTip; @OutputVariable: AverageTip; @OutputVariable: GenerousTip; +1.00000000 1.00000000 10.00000000 10.00000000 12.50000000 +1.00000000 1.29032258 10.00000000 10.00000000 12.50000000 +1.00000000 1.58064516 10.00000000 10.00000000 12.50000000 +1.00000000 1.87096774 10.00000000 10.00000000 12.50000000 +1.00000000 2.16129032 10.00000000 10.00000000 12.50000000 +1.00000000 2.45161290 10.00000000 10.00000000 12.50000000 +1.00000000 2.74193548 10.00000000 10.00000000 12.50000000 +1.00000000 3.03225806 10.00000000 10.02032322 12.52040460 +1.00000000 3.32258065 10.00000000 10.21723908 12.72618837 +1.00000000 3.61290323 10.00000000 10.43854143 12.97859532 +1.00000000 3.90322581 10.00000000 10.68860515 13.30323372 +1.00000000 4.19354839 10.00000000 10.98519415 13.75455390 +1.00000000 4.48387097 10.00000000 11.36896201 14.43109544 +1.00000000 4.77419355 10.00000000 11.91319586 15.48909397 +1.00000000 5.06451613 10.00000000 12.68223479 17.02303230 +1.00000000 5.35483871 10.00000000 13.34274407 18.15544945 +1.00000000 5.64516129 10.00000000 13.79246624 18.75419392 +1.00000000 5.93548387 10.00000000 14.13081618 19.12558840 +1.00000000 6.22580645 10.00000000 14.41328213 19.41290031 +1.00000000 6.51612903 10.00000000 14.65879553 19.65878725 +1.00000000 6.80645161 10.00000000 14.87303754 19.87303753 +1.00000000 7.09677419 10.00000000 15.00000000 20.00000000 +1.00000000 7.38709677 10.00000000 15.00000000 20.00000000 +1.00000000 7.67741935 10.00000000 15.00000000 20.00000000 +1.00000000 7.96774194 10.00000000 15.00000000 20.00000000 +1.00000000 8.25806452 10.00000000 15.00000000 20.00000000 +1.00000000 8.54838710 10.00000000 15.00000000 20.00000000 +1.00000000 8.83870968 10.00000000 15.00000000 20.00000000 +1.00000000 9.12903226 10.00000000 15.00000000 20.00000000 +1.00000000 9.41935484 10.00000000 15.00000000 20.00000000 +1.00000000 9.70967742 10.00000000 15.00000000 20.00000000 +1.00000000 10.00000000 10.00000000 15.00000000 20.00000000 +1.29032258 1.00000000 10.00000000 10.00000000 12.50000000 +1.29032258 1.29032258 10.00000000 10.00000000 12.50000000 +1.29032258 1.58064516 10.00000000 10.00000000 12.50000000 +1.29032258 1.87096774 10.00000000 10.00000000 12.50000000 +1.29032258 2.16129032 10.00000000 10.00000000 12.50000000 +1.29032258 2.45161290 10.00000000 10.00000000 12.50000000 +1.29032258 2.74193548 10.00000000 10.00000000 12.50000000 +1.29032258 3.03225806 10.00000000 10.02032322 12.52040460 +1.29032258 3.32258065 10.00000000 10.21723908 12.72618837 +1.29032258 3.61290323 10.00000000 10.43854143 12.97859532 +1.29032258 3.90322581 10.00000000 10.68860515 13.30323372 +1.29032258 4.19354839 10.00000000 10.98519415 13.75455390 +1.29032258 4.48387097 10.00000000 11.36896201 14.43109544 +1.29032258 4.77419355 10.00000000 11.91319586 15.48909397 +1.29032258 5.06451613 10.00000000 12.68223479 17.02303230 +1.29032258 5.35483871 10.00000000 13.34274407 18.15544945 +1.29032258 5.64516129 10.00000000 13.79246624 18.75419392 +1.29032258 5.93548387 10.00000000 14.13081618 19.12558840 +1.29032258 6.22580645 10.00000000 14.41328213 19.41290031 +1.29032258 6.51612903 10.00000000 14.65879553 19.65878725 +1.29032258 6.80645161 10.00000000 14.87303754 19.87303753 +1.29032258 7.09677419 10.00000000 15.00000000 20.00000000 +1.29032258 7.38709677 10.00000000 15.00000000 20.00000000 +1.29032258 7.67741935 10.00000000 15.00000000 20.00000000 +1.29032258 7.96774194 10.00000000 15.00000000 20.00000000 +1.29032258 8.25806452 10.00000000 15.00000000 20.00000000 +1.29032258 8.54838710 10.00000000 15.00000000 20.00000000 +1.29032258 8.83870968 10.00000000 15.00000000 20.00000000 +1.29032258 9.12903226 10.00000000 15.00000000 20.00000000 +1.29032258 9.41935484 10.00000000 15.00000000 20.00000000 +1.29032258 9.70967742 10.00000000 15.00000000 20.00000000 +1.29032258 10.00000000 10.00000000 15.00000000 20.00000000 +1.58064516 1.00000000 10.00000000 10.00000000 12.50000000 +1.58064516 1.29032258 10.00000000 10.00000000 12.50000000 +1.58064516 1.58064516 10.00000000 10.00000000 12.50000000 +1.58064516 1.87096774 10.00000000 10.00000000 12.50000000 +1.58064516 2.16129032 10.00000000 10.00000000 12.50000000 +1.58064516 2.45161290 10.00000000 10.00000000 12.50000000 +1.58064516 2.74193548 10.00000000 10.00000000 12.50000000 +1.58064516 3.03225806 10.00000000 10.02032322 12.52040460 +1.58064516 3.32258065 10.00000000 10.21723908 12.72618837 +1.58064516 3.61290323 10.00000000 10.43854143 12.97859532 +1.58064516 3.90322581 10.00000000 10.68860515 13.30323372 +1.58064516 4.19354839 10.00000000 10.98519415 13.75455390 +1.58064516 4.48387097 10.00000000 11.36896201 14.43109544 +1.58064516 4.77419355 10.00000000 11.91319586 15.48909397 +1.58064516 5.06451613 10.00000000 12.68223479 17.02303230 +1.58064516 5.35483871 10.00000000 13.34274407 18.15544945 +1.58064516 5.64516129 10.00000000 13.79246624 18.75419392 +1.58064516 5.93548387 10.00000000 14.13081618 19.12558840 +1.58064516 6.22580645 10.00000000 14.41328213 19.41290031 +1.58064516 6.51612903 10.00000000 14.65879553 19.65878725 +1.58064516 6.80645161 10.00000000 14.87303754 19.87303753 +1.58064516 7.09677419 10.00000000 15.00000000 20.00000000 +1.58064516 7.38709677 10.00000000 15.00000000 20.00000000 +1.58064516 7.67741935 10.00000000 15.00000000 20.00000000 +1.58064516 7.96774194 10.00000000 15.00000000 20.00000000 +1.58064516 8.25806452 10.00000000 15.00000000 20.00000000 +1.58064516 8.54838710 10.00000000 15.00000000 20.00000000 +1.58064516 8.83870968 10.00000000 15.00000000 20.00000000 +1.58064516 9.12903226 10.00000000 15.00000000 20.00000000 +1.58064516 9.41935484 10.00000000 15.00000000 20.00000000 +1.58064516 9.70967742 10.00000000 15.00000000 20.00000000 +1.58064516 10.00000000 10.00000000 15.00000000 20.00000000 +1.87096774 1.00000000 10.00000000 10.00000000 12.50000000 +1.87096774 1.29032258 10.00000000 10.00000000 12.50000000 +1.87096774 1.58064516 10.00000000 10.00000000 12.50000000 +1.87096774 1.87096774 10.00000000 10.00000000 12.50000000 +1.87096774 2.16129032 10.00000000 10.00000000 12.50000000 +1.87096774 2.45161290 10.00000000 10.00000000 12.50000000 +1.87096774 2.74193548 10.00000000 10.00000000 12.50000000 +1.87096774 3.03225806 10.00000000 10.02032322 12.52040460 +1.87096774 3.32258065 10.00000000 10.21723908 12.72618837 +1.87096774 3.61290323 10.00000000 10.43854143 12.97859532 +1.87096774 3.90322581 10.00000000 10.68860515 13.30323372 +1.87096774 4.19354839 10.00000000 10.98519415 13.75455390 +1.87096774 4.48387097 10.00000000 11.36896201 14.43109544 +1.87096774 4.77419355 10.00000000 11.91319586 15.48909397 +1.87096774 5.06451613 10.00000000 12.68223479 17.02303230 +1.87096774 5.35483871 10.00000000 13.34274407 18.15544945 +1.87096774 5.64516129 10.00000000 13.79246624 18.75419392 +1.87096774 5.93548387 10.00000000 14.13081618 19.12558840 +1.87096774 6.22580645 10.00000000 14.41328213 19.41290031 +1.87096774 6.51612903 10.00000000 14.65879553 19.65878725 +1.87096774 6.80645161 10.00000000 14.87303754 19.87303753 +1.87096774 7.09677419 10.00000000 15.00000000 20.00000000 +1.87096774 7.38709677 10.00000000 15.00000000 20.00000000 +1.87096774 7.67741935 10.00000000 15.00000000 20.00000000 +1.87096774 7.96774194 10.00000000 15.00000000 20.00000000 +1.87096774 8.25806452 10.00000000 15.00000000 20.00000000 +1.87096774 8.54838710 10.00000000 15.00000000 20.00000000 +1.87096774 8.83870968 10.00000000 15.00000000 20.00000000 +1.87096774 9.12903226 10.00000000 15.00000000 20.00000000 +1.87096774 9.41935484 10.00000000 15.00000000 20.00000000 +1.87096774 9.70967742 10.00000000 15.00000000 20.00000000 +1.87096774 10.00000000 10.00000000 15.00000000 20.00000000 +2.16129032 1.00000000 10.00000000 10.00000000 12.50000000 +2.16129032 1.29032258 10.00000000 10.00000000 12.50000000 +2.16129032 1.58064516 10.00000000 10.00000000 12.50000000 +2.16129032 1.87096774 10.00000000 10.00000000 12.50000000 +2.16129032 2.16129032 10.00000000 10.00000000 12.50000000 +2.16129032 2.45161290 10.00000000 10.00000000 12.50000000 +2.16129032 2.74193548 10.00000000 10.00000000 12.50000000 +2.16129032 3.03225806 10.00000000 10.02032322 12.52040460 +2.16129032 3.32258065 10.00000000 10.21723908 12.72618837 +2.16129032 3.61290323 10.00000000 10.43854143 12.97859532 +2.16129032 3.90322581 10.00000000 10.68860515 13.30323372 +2.16129032 4.19354839 10.00000000 10.98519415 13.75455390 +2.16129032 4.48387097 10.00000000 11.36896201 14.43109544 +2.16129032 4.77419355 10.00000000 11.91319586 15.48909397 +2.16129032 5.06451613 10.00000000 12.68223479 17.02303230 +2.16129032 5.35483871 10.00000000 13.34274407 18.15544945 +2.16129032 5.64516129 10.00000000 13.79246624 18.75419392 +2.16129032 5.93548387 10.00000000 14.13081618 19.12558840 +2.16129032 6.22580645 10.00000000 14.41328213 19.41290031 +2.16129032 6.51612903 10.00000000 14.65879553 19.65878725 +2.16129032 6.80645161 10.00000000 14.87303754 19.87303753 +2.16129032 7.09677419 10.00000000 15.00000000 20.00000000 +2.16129032 7.38709677 10.00000000 15.00000000 20.00000000 +2.16129032 7.67741935 10.00000000 15.00000000 20.00000000 +2.16129032 7.96774194 10.00000000 15.00000000 20.00000000 +2.16129032 8.25806452 10.00000000 15.00000000 20.00000000 +2.16129032 8.54838710 10.00000000 15.00000000 20.00000000 +2.16129032 8.83870968 10.00000000 15.00000000 20.00000000 +2.16129032 9.12903226 10.00000000 15.00000000 20.00000000 +2.16129032 9.41935484 10.00000000 15.00000000 20.00000000 +2.16129032 9.70967742 10.00000000 15.00000000 20.00000000 +2.16129032 10.00000000 10.00000000 15.00000000 20.00000000 +2.45161290 1.00000000 10.00000000 10.00000000 12.50000000 +2.45161290 1.29032258 10.00000000 10.00000000 12.50000000 +2.45161290 1.58064516 10.00000000 10.00000000 12.50000000 +2.45161290 1.87096774 10.00000000 10.00000000 12.50000000 +2.45161290 2.16129032 10.00000000 10.00000000 12.50000000 +2.45161290 2.45161290 10.00000000 10.00000000 12.50000000 +2.45161290 2.74193548 10.00000000 10.00000000 12.50000000 +2.45161290 3.03225806 10.00000000 10.02032322 12.52040460 +2.45161290 3.32258065 10.00000000 10.21723908 12.72618837 +2.45161290 3.61290323 10.00000000 10.43854143 12.97859532 +2.45161290 3.90322581 10.00000000 10.68860515 13.30323372 +2.45161290 4.19354839 10.00000000 10.98519415 13.75455390 +2.45161290 4.48387097 10.00000000 11.36896201 14.43109544 +2.45161290 4.77419355 10.00000000 11.91319586 15.48909397 +2.45161290 5.06451613 10.00000000 12.68223479 17.02303230 +2.45161290 5.35483871 10.00000000 13.34274407 18.15544945 +2.45161290 5.64516129 10.00000000 13.79246624 18.75419392 +2.45161290 5.93548387 10.00000000 14.13081618 19.12558840 +2.45161290 6.22580645 10.00000000 14.41328213 19.41290031 +2.45161290 6.51612903 10.00000000 14.65879553 19.65878725 +2.45161290 6.80645161 10.00000000 14.87303754 19.87303753 +2.45161290 7.09677419 10.00000000 15.00000000 20.00000000 +2.45161290 7.38709677 10.00000000 15.00000000 20.00000000 +2.45161290 7.67741935 10.00000000 15.00000000 20.00000000 +2.45161290 7.96774194 10.00000000 15.00000000 20.00000000 +2.45161290 8.25806452 10.00000000 15.00000000 20.00000000 +2.45161290 8.54838710 10.00000000 15.00000000 20.00000000 +2.45161290 8.83870968 10.00000000 15.00000000 20.00000000 +2.45161290 9.12903226 10.00000000 15.00000000 20.00000000 +2.45161290 9.41935484 10.00000000 15.00000000 20.00000000 +2.45161290 9.70967742 10.00000000 15.00000000 20.00000000 +2.45161290 10.00000000 10.00000000 15.00000000 20.00000000 +2.74193548 1.00000000 10.00000000 10.00000000 12.50000000 +2.74193548 1.29032258 10.00000000 10.00000000 12.50000000 +2.74193548 1.58064516 10.00000000 10.00000000 12.50000000 +2.74193548 1.87096774 10.00000000 10.00000000 12.50000000 +2.74193548 2.16129032 10.00000000 10.00000000 12.50000000 +2.74193548 2.45161290 10.00000000 10.00000000 12.50000000 +2.74193548 2.74193548 10.00000000 10.00000000 12.50000000 +2.74193548 3.03225806 10.00000000 10.02032322 12.52040460 +2.74193548 3.32258065 10.00000000 10.21723908 12.72618837 +2.74193548 3.61290323 10.00000000 10.43854143 12.97859532 +2.74193548 3.90322581 10.00000000 10.68860515 13.30323372 +2.74193548 4.19354839 10.00000000 10.98519415 13.75455390 +2.74193548 4.48387097 10.00000000 11.36896201 14.43109544 +2.74193548 4.77419355 10.00000000 11.91319586 15.48909397 +2.74193548 5.06451613 10.00000000 12.68223479 17.02303230 +2.74193548 5.35483871 10.00000000 13.34274407 18.15544945 +2.74193548 5.64516129 10.00000000 13.79246624 18.75419392 +2.74193548 5.93548387 10.00000000 14.13081618 19.12558840 +2.74193548 6.22580645 10.00000000 14.41328213 19.41290031 +2.74193548 6.51612903 10.00000000 14.65879553 19.65878725 +2.74193548 6.80645161 10.00000000 14.87303754 19.87303753 +2.74193548 7.09677419 10.00000000 15.00000000 20.00000000 +2.74193548 7.38709677 10.00000000 15.00000000 20.00000000 +2.74193548 7.67741935 10.00000000 15.00000000 20.00000000 +2.74193548 7.96774194 10.00000000 15.00000000 20.00000000 +2.74193548 8.25806452 10.00000000 15.00000000 20.00000000 +2.74193548 8.54838710 10.00000000 15.00000000 20.00000000 +2.74193548 8.83870968 10.00000000 15.00000000 20.00000000 +2.74193548 9.12903226 10.00000000 15.00000000 20.00000000 +2.74193548 9.41935484 10.00000000 15.00000000 20.00000000 +2.74193548 9.70967742 10.00000000 15.00000000 20.00000000 +2.74193548 10.00000000 10.00000000 15.00000000 20.00000000 +3.03225806 1.00000000 10.00000000 10.02056414 12.53036255 +3.03225806 1.29032258 10.00000000 10.02056414 12.53036255 +3.03225806 1.58064516 10.00000000 10.02056414 12.53036255 +3.03225806 1.87096774 10.00000000 10.02056414 12.53036255 +3.03225806 2.16129032 10.00000000 10.02056414 12.53036255 +3.03225806 2.45161290 10.00000000 10.02056414 12.53036255 +3.03225806 2.74193548 10.00000000 10.02056414 12.53036255 +3.03225806 3.03225806 10.00008162 10.04023401 12.54971361 +3.03225806 3.32258065 10.00084536 10.23133043 12.74581753 +3.03225806 3.61290323 10.00166050 10.44709908 12.98846248 +3.03225806 3.90322581 10.00253632 10.69213103 13.30366093 +3.03225806 4.19354839 10.00350696 10.98431132 13.74623534 +3.03225806 4.48387097 10.00465122 11.36442108 14.41531219 +3.03225806 4.77419355 10.00613539 11.90630175 15.46893972 +3.03225806 5.06451613 10.00830466 12.67597755 17.00612582 +3.03225806 5.35483871 10.01079710 13.33923254 18.14567412 +3.03225806 5.64516129 10.01307288 13.79127531 18.74912170 +3.03225806 5.93548387 10.01499275 14.13114438 19.12316822 +3.03225806 6.22580645 10.01659745 14.41445725 19.41211259 +3.03225806 6.51612903 10.01801781 14.66014744 19.65891493 +3.03225806 6.80645161 10.01938833 14.87383528 19.87334753 +3.03225806 7.09677419 10.02032454 15.00000000 20.00000000 +3.03225806 7.38709677 10.02032454 15.00000000 20.00000000 +3.03225806 7.67741935 10.02032454 15.00000000 20.00000000 +3.03225806 7.96774194 10.02032454 15.00000000 20.00000000 +3.03225806 8.25806452 10.02032454 15.00000000 20.00000000 +3.03225806 8.54838710 10.02032454 15.00000000 20.00000000 +3.03225806 8.83870968 10.02032454 15.00000000 20.00000000 +3.03225806 9.12903226 10.02032454 15.00000000 20.00000000 +3.03225806 9.41935484 10.02032454 15.00000000 20.00000000 +3.03225806 9.70967742 10.02032454 15.00000000 20.00000000 +3.03225806 10.00000000 10.02032454 15.00000000 20.00000000 +3.32258065 1.00000000 10.00000000 10.23852600 12.81465712 +3.32258065 1.29032258 10.00000000 10.23852600 12.81465712 +3.32258065 1.58064516 10.00000000 10.23852600 12.81465712 +3.32258065 1.87096774 10.00000000 10.23852600 12.81465712 +3.32258065 2.16129032 10.00000000 10.23852600 12.81465712 +3.32258065 2.45161290 10.00000000 10.23852600 12.81465712 +3.32258065 2.74193548 10.00000000 10.23852600 12.81465712 +3.32258065 3.03225806 10.00081091 10.25216001 12.82509445 +3.32258065 3.32258065 10.00847573 10.39024810 12.94131554 +3.32258065 3.61290323 10.01682656 10.55678831 13.10652832 +3.32258065 3.90322581 10.02600789 10.75843537 13.34992628 +3.32258065 4.19354839 10.03642525 11.01464869 13.72980008 +3.32258065 4.48387097 10.04898564 11.36779630 14.35055538 +3.32258065 4.77419355 10.06563624 11.89543354 15.38280506 +3.32258065 5.06451613 10.09043159 12.66530578 16.93433074 +3.32258065 5.35483871 10.11905829 13.33050784 18.08725853 +3.32258065 5.64516129 10.14531886 13.79087513 18.71123750 +3.32258065 5.93548387 10.16705394 14.13888710 19.10302935 +3.32258065 6.22580645 10.18433380 14.42710664 19.40531141 +3.32258065 6.51612903 10.19847233 14.67287318 19.66004764 +3.32258065 6.80645161 10.21090121 14.88093570 19.87607311 +3.32258065 7.09677419 10.21874952 15.00000000 20.00000000 +3.32258065 7.38709677 10.21874952 15.00000000 20.00000000 +3.32258065 7.67741935 10.21874952 15.00000000 20.00000000 +3.32258065 7.96774194 10.21874952 15.00000000 20.00000000 +3.32258065 8.25806452 10.21874952 15.00000000 20.00000000 +3.32258065 8.54838710 10.21874952 15.00000000 20.00000000 +3.32258065 8.83870968 10.21874952 15.00000000 20.00000000 +3.32258065 9.12903226 10.21874952 15.00000000 20.00000000 +3.32258065 9.41935484 10.21874952 15.00000000 20.00000000 +3.32258065 9.70967742 10.21874952 15.00000000 20.00000000 +3.32258065 10.00000000 10.21874952 15.00000000 20.00000000 +3.61290323 1.00000000 10.00000000 10.50490830 13.12845546 +3.61290323 1.29032258 10.00000000 10.50490830 13.12845546 +3.61290323 1.58064516 10.00000000 10.50490830 13.12845546 +3.61290323 1.87096774 10.00000000 10.50490830 13.12845546 +3.61290323 2.16129032 10.00000000 10.50490830 13.12845546 +3.61290323 2.45161290 10.00000000 10.50490830 13.12845546 +3.61290323 2.74193548 10.00000000 10.50490830 13.12845546 +3.61290323 3.03225806 10.00151654 10.51262673 13.13088541 +3.61290323 3.32258065 10.01600168 10.59992682 13.17930400 +3.61290323 3.61290323 10.03212956 10.72120213 13.28528620 +3.61290323 3.90322581 10.05031902 10.88533698 13.48054126 +3.61290323 4.19354839 10.07154360 11.11425892 13.82721937 +3.61290323 4.48387097 10.09785029 11.45287584 14.43542451 +3.61290323 4.77419355 10.13366827 11.98002190 15.48143735 +3.61290323 5.06451613 10.18719850 12.73374607 17.00406518 +3.61290323 5.35483871 10.24796420 13.36174755 18.08140820 +3.61290323 5.64516129 10.30403654 13.80875389 18.68736063 +3.61290323 5.93548387 10.35025162 14.15521373 19.08606379 +3.61290323 6.22580645 10.38608863 14.44355382 19.39936608 +3.61290323 6.51612903 10.41383257 14.68673503 19.66149620 +3.61290323 6.80645161 10.43623515 14.88800549 19.87887528 +3.61290323 7.09677419 10.44926133 15.00000088 20.00000000 +3.61290323 7.38709677 10.44926133 15.00000088 20.00000000 +3.61290323 7.67741935 10.44926133 15.00000088 20.00000000 +3.61290323 7.96774194 10.44926133 15.00000088 20.00000000 +3.61290323 8.25806452 10.44926133 15.00000088 20.00000000 +3.61290323 8.54838710 10.44926133 15.00000088 20.00000000 +3.61290323 8.83870968 10.44926133 15.00000088 20.00000000 +3.61290323 9.12903226 10.44926133 15.00000088 20.00000000 +3.61290323 9.41935484 10.44926133 15.00000088 20.00000000 +3.61290323 9.70967742 10.44926133 15.00000088 20.00000000 +3.61290323 10.00000000 10.44926133 15.00000088 20.00000000 +3.90322581 1.00000000 10.00000000 10.81017051 13.50482619 +3.90322581 1.29032258 10.00000000 10.81017051 13.50482619 +3.90322581 1.58064516 10.00000000 10.81017051 13.50482619 +3.90322581 1.87096774 10.00000000 10.81017051 13.50482619 +3.90322581 2.16129032 10.00000000 10.81017051 13.50482619 +3.90322581 2.45161290 10.00000000 10.81017051 13.50482619 +3.90322581 2.74193548 10.00000000 10.81017051 13.50482619 +3.90322581 3.03225806 10.00219148 10.81256800 13.49994499 +3.90322581 3.32258065 10.02334161 10.85552124 13.49103677 +3.90322581 3.61290323 10.04741939 10.93971057 13.55528460 +3.90322581 3.90322581 10.07534164 11.07630295 13.72649949 +3.90322581 4.19354839 10.10893601 11.29025424 14.07090979 +3.90322581 4.48387097 10.15193928 11.62903831 14.70330070 +3.90322581 4.77419355 10.21233649 12.16677306 15.79128080 +3.90322581 5.06451613 10.30009318 12.86586763 17.18478750 +3.90322581 5.35483871 10.39754980 13.42561609 18.11553344 +3.90322581 5.64516129 10.48826068 13.84290562 18.67501261 +3.90322581 5.93548387 10.56389908 14.17975972 19.07251531 +3.90322581 6.22580645 10.62276486 14.46381877 19.39494339 +3.90322581 6.51612903 10.66748610 14.70188269 19.66385099 +3.90322581 6.80645161 10.70191101 14.89518965 19.88205071 +3.90322581 7.09677419 10.72100391 15.00002113 20.00000000 +3.90322581 7.38709677 10.72100391 15.00002113 20.00000000 +3.90322581 7.67741935 10.72100391 15.00002113 20.00000000 +3.90322581 7.96774194 10.72100391 15.00002113 20.00000000 +3.90322581 8.25806452 10.72100391 15.00002113 20.00000000 +3.90322581 8.54838710 10.72100391 15.00002113 20.00000000 +3.90322581 8.83870968 10.72100391 15.00002113 20.00000000 +3.90322581 9.12903226 10.72100391 15.00002113 20.00000000 +3.90322581 9.41935484 10.72100391 15.00002113 20.00000000 +3.90322581 9.70967742 10.72100391 15.00002113 20.00000000 +3.90322581 10.00000000 10.72100391 15.00002113 20.00000000 +4.19354839 1.00000000 10.00000000 11.15752390 14.00262973 +4.19354839 1.29032258 10.00000000 11.15752390 14.00262973 +4.19354839 1.58064516 10.00000000 11.15752390 14.00262973 +4.19354839 1.87096774 10.00000000 11.15752390 14.00262973 +4.19354839 2.16129032 10.00000000 11.15752390 14.00262973 +4.19354839 2.45161290 10.00000000 11.15752390 14.00262973 +4.19354839 2.74193548 10.00000000 11.15752390 14.00262973 +4.19354839 3.03225806 10.00284797 11.15550089 13.99105017 +4.19354839 3.32258065 10.03061130 11.16343190 13.93454481 +4.19354839 3.61290323 10.06293737 11.22200777 13.97446418 +4.19354839 3.90322581 10.10150367 11.34453978 14.14653042 +4.19354839 4.19354839 10.14947661 11.55849242 14.51982064 +4.19354839 4.48387097 10.21306769 11.91049442 15.20610247 +4.19354839 4.77419355 10.30455207 12.44702544 16.30551023 +4.19354839 5.06451613 10.42825336 13.03462310 17.41989968 +4.19354839 5.35483871 10.56483051 13.51054329 18.16893632 +4.19354839 5.64516129 10.69399611 13.89010562 18.67059669 +4.19354839 5.93548387 10.80488969 14.21182688 19.06294905 +4.19354839 6.22580645 10.89398583 14.48780444 19.39301254 +4.19354839 6.51612903 10.96315550 14.71842615 19.66783672 +4.19354839 6.80645161 11.01688740 14.90267275 19.88592684 +4.19354839 7.09677419 11.04734052 15.00021055 20.00000000 +4.19354839 7.38709677 11.04734052 15.00021055 20.00000000 +4.19354839 7.67741935 11.04734052 15.00021055 20.00000000 +4.19354839 7.96774194 11.04734052 15.00021055 20.00000000 +4.19354839 8.25806452 11.04734052 15.00021055 20.00000000 +4.19354839 8.54838710 11.04734052 15.00021055 20.00000000 +4.19354839 8.83870968 11.04734052 15.00021055 20.00000000 +4.19354839 9.12903226 11.04734052 15.00021055 20.00000000 +4.19354839 9.41935484 11.04734052 15.00021055 20.00000000 +4.19354839 9.70967742 11.04734052 15.00021055 20.00000000 +4.19354839 10.00000000 11.04734052 15.00021055 20.00000000 +4.48387097 1.00000000 10.00000000 11.56528482 14.70576330 +4.48387097 1.29032258 10.00000000 11.56528482 14.70576330 +4.48387097 1.58064516 10.00000000 11.56528482 14.70576330 +4.48387097 1.87096774 10.00000000 11.56528482 14.70576330 +4.48387097 2.16129032 10.00000000 11.56528482 14.70576330 +4.48387097 2.45161290 10.00000000 11.56528482 14.70576330 +4.48387097 2.74193548 10.00000000 11.56528482 14.70576330 +4.48387097 3.03225806 10.00351833 11.55997110 14.68853149 +4.48387097 3.32258065 10.03814879 11.54406758 14.59669714 +4.48387097 3.61290323 10.07937305 11.59012375 14.63057323 +4.48387097 3.90322581 10.12999914 11.71265167 14.82664243 +4.48387097 4.19354839 10.19514264 11.93798653 15.24939300 +4.48387097 4.48387097 10.28453809 12.29965873 15.97812311 +4.48387097 4.77419355 10.40728869 12.75130857 16.85678574 +4.48387097 5.06451613 10.56626545 13.21039199 17.64813719 +4.48387097 5.35483871 10.74201361 13.60560816 18.22456849 +4.48387097 5.64516129 10.91294483 13.94712330 18.67257728 +4.48387097 5.93548387 11.06666959 14.25051940 19.05879821 +4.48387097 6.22580645 11.19709582 14.51530775 19.39489256 +4.48387097 6.51612903 11.30393014 14.73651306 19.67429340 +4.48387097 6.80645161 11.39171986 14.91090478 19.89084781 +4.48387097 7.09677419 11.44506880 15.00128458 20.00000000 +4.48387097 7.38709677 11.44506880 15.00128458 20.00000000 +4.48387097 7.67741935 11.44506880 15.00128458 20.00000000 +4.48387097 7.96774194 11.44506880 15.00128458 20.00000000 +4.48387097 8.25806452 11.44506880 15.00128458 20.00000000 +4.48387097 8.54838710 11.44506880 15.00128458 20.00000000 +4.48387097 8.83870968 11.44506880 15.00128458 20.00000000 +4.48387097 9.12903226 11.44506880 15.00128458 20.00000000 +4.48387097 9.41935484 11.44506880 15.00128458 20.00000000 +4.48387097 9.70967742 11.44506880 15.00128458 20.00000000 +4.48387097 10.00000000 11.44506880 15.00128458 20.00000000 +4.77419355 1.00000000 10.00000000 12.05898046 15.70102169 +4.77419355 1.29032258 10.00000000 12.05898046 15.70102169 +4.77419355 1.58064516 10.00000000 12.05898046 15.70102169 +4.77419355 1.87096774 10.00000000 12.05898046 15.70102169 +4.77419355 2.16129032 10.00000000 12.05898046 15.70102169 +4.77419355 2.45161290 10.00000000 12.05898046 15.70102169 +4.77419355 2.74193548 10.00000000 12.05898046 15.70102169 +4.77419355 3.03225806 10.00425780 12.05183116 15.68076127 +4.77419355 3.32258065 10.04656050 12.02438408 15.57411145 +4.77419355 3.61290323 10.09802059 12.06833124 15.61725364 +4.77419355 3.90322581 10.16302652 12.19562117 15.84003779 +4.77419355 4.19354839 10.24884203 12.41521338 16.25899815 +4.77419355 4.48387097 10.36281190 12.69904450 16.77664315 +4.77419355 4.77419355 10.51269012 13.02442268 17.31761601 +4.77419355 5.06451613 10.70326374 13.37314904 17.83311892 +4.77419355 5.35483871 10.91644419 13.70398283 18.27798568 +4.77419355 5.64516129 11.13258860 14.01140956 18.68338981 +4.77419355 5.93548387 11.33885271 14.29485387 19.06262803 +4.77419355 6.22580645 11.52611738 14.54611158 19.40221067 +4.77419355 6.51612903 11.69068129 14.75656882 19.68409833 +4.77419355 6.80645161 11.83652379 14.92121904 19.89713492 +4.77419355 7.09677419 11.93184447 15.00571281 20.00000000 +4.77419355 7.38709677 11.93184447 15.00571281 20.00000000 +4.77419355 7.67741935 11.93184447 15.00571281 20.00000000 +4.77419355 7.96774194 11.93184447 15.00571281 20.00000000 +4.77419355 8.25806452 11.93184447 15.00571281 20.00000000 +4.77419355 8.54838710 11.93184447 15.00571281 20.00000000 +4.77419355 8.83870968 11.93184447 15.00571281 20.00000000 +4.77419355 9.12903226 11.93184447 15.00571281 20.00000000 +4.77419355 9.41935484 11.93184447 15.00571281 20.00000000 +4.77419355 9.70967742 11.93184447 15.00571281 20.00000000 +4.77419355 10.00000000 11.93184447 15.00571281 20.00000000 +5.06451613 1.00000000 10.00000000 12.62161977 16.93336867 +5.06451613 1.29032258 10.00000000 12.62161977 16.93336867 +5.06451613 1.58064516 10.00000000 12.62161977 16.93336867 +5.06451613 1.87096774 10.00000000 12.62161977 16.93336867 +5.06451613 2.16129032 10.00000000 12.62161977 16.93336867 +5.06451613 2.45161290 10.00000000 12.62161977 16.93336867 +5.06451613 2.74193548 10.00000000 12.62161977 16.93336867 +5.06451613 3.03225806 10.00514671 12.61436601 16.91498077 +5.06451613 3.32258065 10.05669829 12.58189344 16.81059366 +5.06451613 3.61290323 10.12016954 12.60900573 16.81743639 +5.06451613 3.90322581 10.20030048 12.69329287 16.92465057 +5.06451613 4.19354839 10.30333031 12.82979245 17.11064279 +5.06451613 4.48387097 10.43676106 13.01355965 17.35314038 +5.06451613 4.77419355 10.60858414 13.24246568 17.64074677 +5.06451613 5.06451613 10.82506593 13.51723830 17.97839577 +5.06451613 5.35483871 11.07335436 13.80267877 18.33779748 +5.06451613 5.64516129 11.33833932 14.08082078 18.70901812 +5.06451613 5.93548387 11.60813624 14.34372309 19.07791541 +5.06451613 6.22580645 11.87123458 14.58015261 19.41671660 +5.06451613 6.51612903 12.12014276 14.77981816 19.69800848 +5.06451613 6.80645161 12.35752048 14.93719431 19.90501710 +5.06451613 7.09677419 12.52110295 15.02031920 20.00000000 +5.06451613 7.38709677 12.52110295 15.02031920 20.00000000 +5.06451613 7.67741935 12.52110295 15.02031920 20.00000000 +5.06451613 7.96774194 12.52110295 15.02031920 20.00000000 +5.06451613 8.25806452 12.52110295 15.02031920 20.00000000 +5.06451613 8.54838710 12.52110295 15.02031920 20.00000000 +5.06451613 8.83870968 12.52110295 15.02031920 20.00000000 +5.06451613 9.12903226 12.52110295 15.02031920 20.00000000 +5.06451613 9.41935484 12.52110295 15.02031920 20.00000000 +5.06451613 9.70967742 12.52110295 15.02031920 20.00000000 +5.06451613 10.00000000 12.52110295 15.02031920 20.00000000 +5.35483871 1.00000000 10.00000000 13.01386190 17.72252667 +5.35483871 1.29032258 10.00000000 13.01386190 17.72252667 +5.35483871 1.58064516 10.00000000 13.01386190 17.72252667 +5.35483871 1.87096774 10.00000000 13.01386190 17.72252667 +5.35483871 2.16129032 10.00000000 13.01386190 17.72252667 +5.35483871 2.45161290 10.00000000 13.01386190 17.72252667 +5.35483871 2.74193548 10.00000000 13.01386190 17.72252667 +5.35483871 3.03225806 10.00601495 13.00686969 17.70685129 +5.35483871 3.32258065 10.06634293 12.96547134 17.59385080 +5.35483871 3.61290323 10.14023145 12.96440313 17.53452108 +5.35483871 3.90322581 10.23227056 13.00488842 17.52903392 +5.35483871 4.19354839 10.34858062 13.08810799 17.57595632 +5.35483871 4.48387097 10.49681892 13.21678700 17.67789446 +5.35483871 4.77419355 10.68605152 13.39618613 17.84588275 +5.35483871 5.06451613 10.92582927 13.63255921 18.09900113 +5.35483871 5.35483871 11.20991976 13.89010102 18.40855831 +5.35483871 5.64516129 11.52857074 14.14622502 18.75108786 +5.35483871 5.93548387 11.87259469 14.39188070 19.10579009 +5.35483871 6.22580645 12.23015522 14.61596607 19.43909490 +5.35483871 6.51612903 12.59107968 14.80868432 19.71627593 +5.35483871 6.80645161 12.95594174 14.96716502 19.91453659 +5.35483871 7.09677419 13.21476275 15.06095073 20.00000000 +5.35483871 7.38709677 13.21476275 15.06095073 20.00000000 +5.35483871 7.67741935 13.21476275 15.06095073 20.00000000 +5.35483871 7.96774194 13.21476275 15.06095073 20.00000000 +5.35483871 8.25806452 13.21476275 15.06095073 20.00000000 +5.35483871 8.54838710 13.21476275 15.06095073 20.00000000 +5.35483871 8.83870968 13.21476275 15.06095073 20.00000000 +5.35483871 9.12903226 13.21476275 15.06095073 20.00000000 +5.35483871 9.41935484 13.21476275 15.06095073 20.00000000 +5.35483871 9.70967742 13.21476275 15.06095073 20.00000000 +5.35483871 10.00000000 13.21476275 15.06095073 20.00000000 +5.64516129 1.00000000 10.00000000 13.24478345 18.10948914 +5.64516129 1.29032258 10.00000000 13.24478345 18.10948914 +5.64516129 1.58064516 10.00000000 13.24478345 18.10948914 +5.64516129 1.87096774 10.00000000 13.24478345 18.10948914 +5.64516129 2.16129032 10.00000000 13.24478345 18.10948914 +5.64516129 2.45161290 10.00000000 13.24478345 18.10948914 +5.64516129 2.74193548 10.00000000 13.24478345 18.10948914 +5.64516129 3.03225806 10.00676630 13.23777415 18.09507267 +5.64516129 3.32258065 10.07445919 13.19087287 17.97991142 +5.64516129 3.61290323 10.15668214 13.17534466 17.89493493 +5.64516129 3.90322581 10.25790645 13.19448141 17.84556990 +5.64516129 4.19354839 10.38436340 13.25231438 17.83870593 +5.64516129 4.48387097 10.54440886 13.35439086 17.88514140 +5.64516129 4.77419355 10.74903309 13.50842487 18.00199210 +5.64516129 5.06451613 11.01198391 13.72314620 18.21285792 +5.64516129 5.35483871 11.33358994 13.96248512 18.48921917 +5.64516129 5.64516129 11.71006848 14.20295570 18.80628061 +5.64516129 5.93548387 12.13699441 14.43664044 19.14441571 +5.64516129 6.22580645 12.60472073 14.65433972 19.46851033 +5.64516129 6.51612903 13.10163256 14.84960699 19.73841715 +5.64516129 6.80645161 13.62372773 15.02857701 19.92548914 +5.64516129 7.09677419 13.99614692 15.15882564 20.00000000 +5.64516129 7.38709677 13.99614692 15.15882564 20.00000000 +5.64516129 7.67741935 13.99614692 15.15882564 20.00000000 +5.64516129 7.96774194 13.99614692 15.15882564 20.00000000 +5.64516129 8.25806452 13.99614692 15.15882564 20.00000000 +5.64516129 8.54838710 13.99614692 15.15882564 20.00000000 +5.64516129 8.83870968 13.99614692 15.15882564 20.00000000 +5.64516129 9.12903226 13.99614692 15.15882564 20.00000000 +5.64516129 9.41935484 13.99614692 15.15882564 20.00000000 +5.64516129 9.70967742 13.99614692 15.15882564 20.00000000 +5.64516129 10.00000000 13.99614692 15.15882564 20.00000000 +5.93548387 1.00000000 10.00000000 13.40120867 18.33397089 +5.93548387 1.29032258 10.00000000 13.40120867 18.33397089 +5.93548387 1.58064516 10.00000000 13.40120867 18.33397089 +5.93548387 1.87096774 10.00000000 13.40120867 18.33397089 +5.93548387 2.16129032 10.00000000 13.40120867 18.33397089 +5.93548387 2.45161290 10.00000000 13.40120867 18.33397089 +5.93548387 2.74193548 10.00000000 13.40120867 18.33397089 +5.93548387 3.03225806 10.00744380 13.39407329 18.32019470 +5.93548387 3.32258065 10.08152139 13.34352984 18.20598565 +5.93548387 3.61290323 10.17060647 13.32009277 18.11340822 +5.93548387 3.90322581 10.27923715 13.32771096 18.04912878 +5.93548387 4.19354839 10.41406163 13.37128448 18.02197505 +5.93548387 4.48387097 10.58455108 13.45730945 18.04456687 +5.93548387 4.77419355 10.80408104 13.59471590 18.13562017 +5.93548387 5.06451613 11.09099369 13.79430829 18.32113067 +5.93548387 5.35483871 11.45208902 14.02065538 18.57338072 +5.93548387 5.64516129 11.89026400 14.25075408 18.86869733 +5.93548387 5.93548387 12.40745964 14.47898935 19.19011429 +5.93548387 6.22580645 12.99767141 14.70031056 19.50287840 +5.93548387 6.51612903 13.64712779 14.91660867 19.76327022 +5.93548387 6.80645161 14.34097951 15.15349351 19.93748440 +5.93548387 7.09677419 14.82768590 15.36421869 20.00000000 +5.93548387 7.38709677 14.82768590 15.36421869 20.00000000 +5.93548387 7.67741935 14.82768590 15.36421869 20.00000000 +5.93548387 7.96774194 14.82768590 15.36421869 20.00000000 +5.93548387 8.25806452 14.82768590 15.36421869 20.00000000 +5.93548387 8.54838710 14.82768590 15.36421869 20.00000000 +5.93548387 8.83870968 14.82768590 15.36421869 20.00000000 +5.93548387 9.12903226 14.82768590 15.36421869 20.00000000 +5.93548387 9.41935484 14.82768590 15.36421869 20.00000000 +5.93548387 9.70967742 14.82768590 15.36421869 20.00000000 +5.93548387 10.00000000 14.82768590 15.36421869 20.00000000 +6.22580645 1.00000000 10.00000000 13.52140723 18.49028183 +6.22580645 1.29032258 10.00000000 13.52140723 18.49028183 +6.22580645 1.58064516 10.00000000 13.52140723 18.49028183 +6.22580645 1.87096774 10.00000000 13.52140723 18.49028183 +6.22580645 2.16129032 10.00000000 13.52140723 18.49028183 +6.22580645 2.45161290 10.00000000 13.52140723 18.49028183 +6.22580645 2.74193548 10.00000000 13.52140723 18.49028183 +6.22580645 3.03225806 10.00810302 13.51414064 18.47696951 +6.22580645 3.32258065 10.08815300 13.46083531 18.36487771 +6.22580645 3.61290323 10.18335204 13.43182492 18.27056725 +6.22580645 3.90322581 10.29853084 13.43120310 18.20072122 +6.22580645 4.19354839 10.44105662 13.46414597 18.16435180 +6.22580645 4.48387097 10.62187043 13.53764372 18.17434053 +6.22580645 4.77419355 10.85711240 13.66162818 18.24992950 +6.22580645 5.06451613 11.17010593 13.84903800 18.41864073 +6.22580645 5.35483871 11.57429140 14.06601569 18.65350731 +6.22580645 5.64516129 12.07969940 14.29125163 18.93164466 +6.22580645 5.93548387 12.69488978 14.52340191 19.23816286 +6.22580645 6.22580645 13.41621771 14.76582129 19.53932638 +6.22580645 6.51612903 14.22291873 15.03682794 19.78943564 +6.22580645 6.80645161 15.07877121 15.39191301 19.95021830 +6.22580645 7.09677419 15.65721613 15.73541361 20.00000000 +6.22580645 7.38709677 15.65721613 15.73541361 20.00000000 +6.22580645 7.67741935 15.65721613 15.73541361 20.00000000 +6.22580645 7.96774194 15.65721613 15.73541361 20.00000000 +6.22580645 8.25806452 15.65721613 15.73541361 20.00000000 +6.22580645 8.54838710 15.65721613 15.73541361 20.00000000 +6.22580645 8.83870968 15.65721613 15.73541361 20.00000000 +6.22580645 9.12903226 15.65721613 15.73541361 20.00000000 +6.22580645 9.41935484 15.65721613 15.73541361 20.00000000 +6.22580645 9.70967742 15.65721613 15.73541361 20.00000000 +6.22580645 10.00000000 15.65721613 15.73541361 20.00000000 +6.51612903 1.00000000 10.00000000 13.61972094 18.60880619 +6.51612903 1.29032258 10.00000000 13.61972094 18.60880619 +6.51612903 1.58064516 10.00000000 13.61972094 18.60880619 +6.51612903 1.87096774 10.00000000 13.61972094 18.60880619 +6.51612903 2.16129032 10.00000000 13.61972094 18.60880619 +6.51612903 2.45161290 10.00000000 13.61972094 18.60880619 +6.51612903 2.74193548 10.00000000 13.61972094 18.60880619 +6.51612903 3.03225806 10.00879607 13.61234668 18.59585828 +6.51612903 3.32258065 10.09491449 13.55680524 18.48591333 +6.51612903 3.61290323 10.19606794 13.52317278 18.39148132 +6.51612903 3.90322581 10.31763361 13.51550375 18.31902161 +6.51612903 4.19354839 10.46805711 13.53910437 18.27742836 +6.51612903 4.48387097 10.66021718 13.60138870 18.27957680 +6.51612903 4.77419355 10.91360186 13.71334196 18.34495215 +6.51612903 5.06451613 11.25720210 13.89035326 18.50206810 +6.51612903 5.35483871 11.71156099 14.10154931 18.72464991 +6.51612903 5.64516129 12.29365018 14.32963573 18.99000850 +6.51612903 5.93548387 13.01651193 14.58179014 19.28447671 +6.51612903 6.22580645 13.87303537 14.87722915 19.57556793 +6.51612903 6.51612903 14.82531306 15.25898022 19.81660791 +6.51612903 6.80645161 15.80446772 15.80314051 19.96387362 +6.51612903 7.09677419 16.43160099 16.29997299 20.00000000 +6.51612903 7.38709677 16.43160099 16.29997299 20.00000000 +6.51612903 7.67741935 16.43160099 16.29997299 20.00000000 +6.51612903 7.96774194 16.43160099 16.29997299 20.00000000 +6.51612903 8.25806452 16.43160099 16.29997299 20.00000000 +6.51612903 8.54838710 16.43160099 16.29997299 20.00000000 +6.51612903 8.83870968 16.43160099 16.29997299 20.00000000 +6.51612903 9.12903226 16.43160099 16.29997299 20.00000000 +6.51612903 9.41935484 16.43160099 16.29997299 20.00000000 +6.51612903 9.70967742 16.43160099 16.29997299 20.00000000 +6.51612903 10.00000000 16.43160099 16.29997299 20.00000000 +6.80645161 1.00000000 10.00000000 13.70214059 18.70056855 +6.80645161 1.29032258 10.00000000 13.70214059 18.70056855 +6.80645161 1.58064516 10.00000000 13.70214059 18.70056855 +6.80645161 1.87096774 10.00000000 13.70214059 18.70056855 +6.80645161 2.16129032 10.00000000 13.70214059 18.70056855 +6.80645161 2.45161290 10.00000000 13.70214059 18.70056855 +6.80645161 2.74193548 10.00000000 13.70214059 18.70056855 +6.80645161 3.03225806 10.00956688 13.69469565 18.68788903 +6.80645161 3.32258065 10.10223923 13.63745767 18.57975796 +6.80645161 3.61290323 10.20959709 13.59997149 18.48577395 +6.80645161 3.90322581 10.33793179 13.58608880 18.41208791 +6.80645161 4.19354839 10.49735957 13.60114711 18.36739388 +6.80645161 4.48387097 10.70355023 13.65298813 18.36446614 +6.80645161 4.77419355 10.98045881 13.75389532 18.42285704 +6.80645161 5.06451613 11.36399277 13.92258835 18.57166481 +6.80645161 5.35483871 11.88233270 14.13399003 18.78543130 +6.80645161 5.64516129 12.55749197 14.38001472 19.04156376 +6.80645161 5.93548387 13.40037073 14.68481595 19.32760098 +6.80645161 6.22580645 14.38806526 15.09217911 19.61310066 +6.80645161 6.51612903 15.45207816 15.66063766 19.84876184 +6.80645161 6.80645161 16.48822744 16.42159603 19.97852673 +6.80645161 7.09677419 17.11075039 17.00762602 20.00000000 +6.80645161 7.38709677 17.11075039 17.00762602 20.00000000 +6.80645161 7.67741935 17.11075039 17.00762602 20.00000000 +6.80645161 7.96774194 17.11075039 17.00762602 20.00000000 +6.80645161 8.25806452 17.11075039 17.00762602 20.00000000 +6.80645161 8.54838710 17.11075039 17.00762602 20.00000000 +6.80645161 8.83870968 17.11075039 17.00762602 20.00000000 +6.80645161 9.12903226 17.11075039 17.00762602 20.00000000 +6.80645161 9.41935484 17.11075039 17.00762602 20.00000000 +6.80645161 9.70967742 17.11075039 17.00762602 20.00000000 +6.80645161 10.00000000 17.11075039 17.00762602 20.00000000 +7.09677419 1.00000000 10.00000000 13.75000000 18.75000000 +7.09677419 1.29032258 10.00000000 13.75000000 18.75000000 +7.09677419 1.58064516 10.00000000 13.75000000 18.75000000 +7.09677419 1.87096774 10.00000000 13.75000000 18.75000000 +7.09677419 2.16129032 10.00000000 13.75000000 18.75000000 +7.09677419 2.45161290 10.00000000 13.75000000 18.75000000 +7.09677419 2.74193548 10.00000000 13.75000000 18.75000000 +7.09677419 3.03225806 10.01014215 13.74253652 18.73745586 +7.09677419 3.32258065 10.10759368 13.68455725 18.63042380 +7.09677419 3.61290323 10.21937858 13.64503060 18.53708695 +7.09677419 3.90322581 10.35276814 13.62755769 18.46331909 +7.09677419 4.19354839 10.51962543 13.63742744 18.41759948 +7.09677419 4.48387097 10.73840842 13.68281858 18.41253579 +7.09677419 4.77419355 11.03721734 13.77727807 18.46758374 +7.09677419 5.06451613 11.45766304 13.94303282 18.61200965 +7.09677419 5.35483871 12.03283452 14.16229115 18.82112467 +7.09677419 5.64516129 12.78467382 14.43913152 19.07300014 +7.09677419 5.93548387 13.71462338 14.81596996 19.35739569 +7.09677419 6.22580645 14.77874402 15.35015506 19.64585006 +7.09677419 6.51612903 15.88319867 16.07541438 19.87869941 +7.09677419 6.80645161 16.90953845 16.93241475 19.98661180 +7.09677419 7.09677419 17.50000000 17.50000000 20.00000000 +7.09677419 7.38709677 17.50000000 17.50000000 20.00000000 +7.09677419 7.67741935 17.50000000 17.50000000 20.00000000 +7.09677419 7.96774194 17.50000000 17.50000000 20.00000000 +7.09677419 8.25806452 17.50000000 17.50000000 20.00000000 +7.09677419 8.54838710 17.50000000 17.50000000 20.00000000 +7.09677419 8.83870968 17.50000000 17.50000000 20.00000000 +7.09677419 9.12903226 17.50000000 17.50000000 20.00000000 +7.09677419 9.41935484 17.50000000 17.50000000 20.00000000 +7.09677419 9.70967742 17.50000000 17.50000000 20.00000000 +7.09677419 10.00000000 17.50000000 17.50000000 20.00000000 +7.38709677 1.00000000 10.00000000 13.75000000 18.75000000 +7.38709677 1.29032258 10.00000000 13.75000000 18.75000000 +7.38709677 1.58064516 10.00000000 13.75000000 18.75000000 +7.38709677 1.87096774 10.00000000 13.75000000 18.75000000 +7.38709677 2.16129032 10.00000000 13.75000000 18.75000000 +7.38709677 2.45161290 10.00000000 13.75000000 18.75000000 +7.38709677 2.74193548 10.00000000 13.75000000 18.75000000 +7.38709677 3.03225806 10.01014215 13.74253652 18.73745586 +7.38709677 3.32258065 10.10759368 13.68455725 18.63042380 +7.38709677 3.61290323 10.21937858 13.64503060 18.53708695 +7.38709677 3.90322581 10.35276814 13.62755769 18.46331909 +7.38709677 4.19354839 10.51962543 13.63742744 18.41759948 +7.38709677 4.48387097 10.73840842 13.68281858 18.41253579 +7.38709677 4.77419355 11.03721734 13.77727807 18.46758374 +7.38709677 5.06451613 11.45766304 13.94303282 18.61200965 +7.38709677 5.35483871 12.03283452 14.16229115 18.82112467 +7.38709677 5.64516129 12.78467382 14.43913152 19.07300014 +7.38709677 5.93548387 13.71462338 14.81596996 19.35739569 +7.38709677 6.22580645 14.77874402 15.35015506 19.64585006 +7.38709677 6.51612903 15.88319867 16.07541438 19.87869941 +7.38709677 6.80645161 16.90953845 16.93241475 19.98661180 +7.38709677 7.09677419 17.50000000 17.50000000 20.00000000 +7.38709677 7.38709677 17.50000000 17.50000000 20.00000000 +7.38709677 7.67741935 17.50000000 17.50000000 20.00000000 +7.38709677 7.96774194 17.50000000 17.50000000 20.00000000 +7.38709677 8.25806452 17.50000000 17.50000000 20.00000000 +7.38709677 8.54838710 17.50000000 17.50000000 20.00000000 +7.38709677 8.83870968 17.50000000 17.50000000 20.00000000 +7.38709677 9.12903226 17.50000000 17.50000000 20.00000000 +7.38709677 9.41935484 17.50000000 17.50000000 20.00000000 +7.38709677 9.70967742 17.50000000 17.50000000 20.00000000 +7.38709677 10.00000000 17.50000000 17.50000000 20.00000000 +7.67741935 1.00000000 10.00000000 13.75000000 18.75000000 +7.67741935 1.29032258 10.00000000 13.75000000 18.75000000 +7.67741935 1.58064516 10.00000000 13.75000000 18.75000000 +7.67741935 1.87096774 10.00000000 13.75000000 18.75000000 +7.67741935 2.16129032 10.00000000 13.75000000 18.75000000 +7.67741935 2.45161290 10.00000000 13.75000000 18.75000000 +7.67741935 2.74193548 10.00000000 13.75000000 18.75000000 +7.67741935 3.03225806 10.01014215 13.74253652 18.73745586 +7.67741935 3.32258065 10.10759368 13.68455725 18.63042380 +7.67741935 3.61290323 10.21937858 13.64503060 18.53708695 +7.67741935 3.90322581 10.35276814 13.62755769 18.46331909 +7.67741935 4.19354839 10.51962543 13.63742744 18.41759948 +7.67741935 4.48387097 10.73840842 13.68281858 18.41253579 +7.67741935 4.77419355 11.03721734 13.77727807 18.46758374 +7.67741935 5.06451613 11.45766304 13.94303282 18.61200965 +7.67741935 5.35483871 12.03283452 14.16229115 18.82112467 +7.67741935 5.64516129 12.78467382 14.43913152 19.07300014 +7.67741935 5.93548387 13.71462338 14.81596996 19.35739569 +7.67741935 6.22580645 14.77874402 15.35015506 19.64585006 +7.67741935 6.51612903 15.88319867 16.07541438 19.87869941 +7.67741935 6.80645161 16.90953845 16.93241475 19.98661180 +7.67741935 7.09677419 17.50000000 17.50000000 20.00000000 +7.67741935 7.38709677 17.50000000 17.50000000 20.00000000 +7.67741935 7.67741935 17.50000000 17.50000000 20.00000000 +7.67741935 7.96774194 17.50000000 17.50000000 20.00000000 +7.67741935 8.25806452 17.50000000 17.50000000 20.00000000 +7.67741935 8.54838710 17.50000000 17.50000000 20.00000000 +7.67741935 8.83870968 17.50000000 17.50000000 20.00000000 +7.67741935 9.12903226 17.50000000 17.50000000 20.00000000 +7.67741935 9.41935484 17.50000000 17.50000000 20.00000000 +7.67741935 9.70967742 17.50000000 17.50000000 20.00000000 +7.67741935 10.00000000 17.50000000 17.50000000 20.00000000 +7.96774194 1.00000000 10.00000000 13.75000000 18.75000000 +7.96774194 1.29032258 10.00000000 13.75000000 18.75000000 +7.96774194 1.58064516 10.00000000 13.75000000 18.75000000 +7.96774194 1.87096774 10.00000000 13.75000000 18.75000000 +7.96774194 2.16129032 10.00000000 13.75000000 18.75000000 +7.96774194 2.45161290 10.00000000 13.75000000 18.75000000 +7.96774194 2.74193548 10.00000000 13.75000000 18.75000000 +7.96774194 3.03225806 10.01014215 13.74253652 18.73745586 +7.96774194 3.32258065 10.10759368 13.68455725 18.63042380 +7.96774194 3.61290323 10.21937858 13.64503060 18.53708695 +7.96774194 3.90322581 10.35276814 13.62755769 18.46331909 +7.96774194 4.19354839 10.51962543 13.63742744 18.41759948 +7.96774194 4.48387097 10.73840842 13.68281858 18.41253579 +7.96774194 4.77419355 11.03721734 13.77727807 18.46758374 +7.96774194 5.06451613 11.45766304 13.94303282 18.61200965 +7.96774194 5.35483871 12.03283452 14.16229115 18.82112467 +7.96774194 5.64516129 12.78467382 14.43913152 19.07300014 +7.96774194 5.93548387 13.71462338 14.81596996 19.35739569 +7.96774194 6.22580645 14.77874402 15.35015506 19.64585006 +7.96774194 6.51612903 15.88319867 16.07541438 19.87869941 +7.96774194 6.80645161 16.90953845 16.93241475 19.98661180 +7.96774194 7.09677419 17.50000000 17.50000000 20.00000000 +7.96774194 7.38709677 17.50000000 17.50000000 20.00000000 +7.96774194 7.67741935 17.50000000 17.50000000 20.00000000 +7.96774194 7.96774194 17.50000000 17.50000000 20.00000000 +7.96774194 8.25806452 17.50000000 17.50000000 20.00000000 +7.96774194 8.54838710 17.50000000 17.50000000 20.00000000 +7.96774194 8.83870968 17.50000000 17.50000000 20.00000000 +7.96774194 9.12903226 17.50000000 17.50000000 20.00000000 +7.96774194 9.41935484 17.50000000 17.50000000 20.00000000 +7.96774194 9.70967742 17.50000000 17.50000000 20.00000000 +7.96774194 10.00000000 17.50000000 17.50000000 20.00000000 +8.25806452 1.00000000 10.00000000 13.75000000 18.75000000 +8.25806452 1.29032258 10.00000000 13.75000000 18.75000000 +8.25806452 1.58064516 10.00000000 13.75000000 18.75000000 +8.25806452 1.87096774 10.00000000 13.75000000 18.75000000 +8.25806452 2.16129032 10.00000000 13.75000000 18.75000000 +8.25806452 2.45161290 10.00000000 13.75000000 18.75000000 +8.25806452 2.74193548 10.00000000 13.75000000 18.75000000 +8.25806452 3.03225806 10.01014215 13.74253652 18.73745586 +8.25806452 3.32258065 10.10759368 13.68455725 18.63042380 +8.25806452 3.61290323 10.21937858 13.64503060 18.53708695 +8.25806452 3.90322581 10.35276814 13.62755769 18.46331909 +8.25806452 4.19354839 10.51962543 13.63742744 18.41759948 +8.25806452 4.48387097 10.73840842 13.68281858 18.41253579 +8.25806452 4.77419355 11.03721734 13.77727807 18.46758374 +8.25806452 5.06451613 11.45766304 13.94303282 18.61200965 +8.25806452 5.35483871 12.03283452 14.16229115 18.82112467 +8.25806452 5.64516129 12.78467382 14.43913152 19.07300014 +8.25806452 5.93548387 13.71462338 14.81596996 19.35739569 +8.25806452 6.22580645 14.77874402 15.35015506 19.64585006 +8.25806452 6.51612903 15.88319867 16.07541438 19.87869941 +8.25806452 6.80645161 16.90953845 16.93241475 19.98661180 +8.25806452 7.09677419 17.50000000 17.50000000 20.00000000 +8.25806452 7.38709677 17.50000000 17.50000000 20.00000000 +8.25806452 7.67741935 17.50000000 17.50000000 20.00000000 +8.25806452 7.96774194 17.50000000 17.50000000 20.00000000 +8.25806452 8.25806452 17.50000000 17.50000000 20.00000000 +8.25806452 8.54838710 17.50000000 17.50000000 20.00000000 +8.25806452 8.83870968 17.50000000 17.50000000 20.00000000 +8.25806452 9.12903226 17.50000000 17.50000000 20.00000000 +8.25806452 9.41935484 17.50000000 17.50000000 20.00000000 +8.25806452 9.70967742 17.50000000 17.50000000 20.00000000 +8.25806452 10.00000000 17.50000000 17.50000000 20.00000000 +8.54838710 1.00000000 10.00000000 13.75000000 18.75000000 +8.54838710 1.29032258 10.00000000 13.75000000 18.75000000 +8.54838710 1.58064516 10.00000000 13.75000000 18.75000000 +8.54838710 1.87096774 10.00000000 13.75000000 18.75000000 +8.54838710 2.16129032 10.00000000 13.75000000 18.75000000 +8.54838710 2.45161290 10.00000000 13.75000000 18.75000000 +8.54838710 2.74193548 10.00000000 13.75000000 18.75000000 +8.54838710 3.03225806 10.01014215 13.74253652 18.73745586 +8.54838710 3.32258065 10.10759368 13.68455725 18.63042380 +8.54838710 3.61290323 10.21937858 13.64503060 18.53708695 +8.54838710 3.90322581 10.35276814 13.62755769 18.46331909 +8.54838710 4.19354839 10.51962543 13.63742744 18.41759948 +8.54838710 4.48387097 10.73840842 13.68281858 18.41253579 +8.54838710 4.77419355 11.03721734 13.77727807 18.46758374 +8.54838710 5.06451613 11.45766304 13.94303282 18.61200965 +8.54838710 5.35483871 12.03283452 14.16229115 18.82112467 +8.54838710 5.64516129 12.78467382 14.43913152 19.07300014 +8.54838710 5.93548387 13.71462338 14.81596996 19.35739569 +8.54838710 6.22580645 14.77874402 15.35015506 19.64585006 +8.54838710 6.51612903 15.88319867 16.07541438 19.87869941 +8.54838710 6.80645161 16.90953845 16.93241475 19.98661180 +8.54838710 7.09677419 17.50000000 17.50000000 20.00000000 +8.54838710 7.38709677 17.50000000 17.50000000 20.00000000 +8.54838710 7.67741935 17.50000000 17.50000000 20.00000000 +8.54838710 7.96774194 17.50000000 17.50000000 20.00000000 +8.54838710 8.25806452 17.50000000 17.50000000 20.00000000 +8.54838710 8.54838710 17.50000000 17.50000000 20.00000000 +8.54838710 8.83870968 17.50000000 17.50000000 20.00000000 +8.54838710 9.12903226 17.50000000 17.50000000 20.00000000 +8.54838710 9.41935484 17.50000000 17.50000000 20.00000000 +8.54838710 9.70967742 17.50000000 17.50000000 20.00000000 +8.54838710 10.00000000 17.50000000 17.50000000 20.00000000 +8.83870968 1.00000000 10.00000000 13.75000000 18.75000000 +8.83870968 1.29032258 10.00000000 13.75000000 18.75000000 +8.83870968 1.58064516 10.00000000 13.75000000 18.75000000 +8.83870968 1.87096774 10.00000000 13.75000000 18.75000000 +8.83870968 2.16129032 10.00000000 13.75000000 18.75000000 +8.83870968 2.45161290 10.00000000 13.75000000 18.75000000 +8.83870968 2.74193548 10.00000000 13.75000000 18.75000000 +8.83870968 3.03225806 10.01014215 13.74253652 18.73745586 +8.83870968 3.32258065 10.10759368 13.68455725 18.63042380 +8.83870968 3.61290323 10.21937858 13.64503060 18.53708695 +8.83870968 3.90322581 10.35276814 13.62755769 18.46331909 +8.83870968 4.19354839 10.51962543 13.63742744 18.41759948 +8.83870968 4.48387097 10.73840842 13.68281858 18.41253579 +8.83870968 4.77419355 11.03721734 13.77727807 18.46758374 +8.83870968 5.06451613 11.45766304 13.94303282 18.61200965 +8.83870968 5.35483871 12.03283452 14.16229115 18.82112467 +8.83870968 5.64516129 12.78467382 14.43913152 19.07300014 +8.83870968 5.93548387 13.71462338 14.81596996 19.35739569 +8.83870968 6.22580645 14.77874402 15.35015506 19.64585006 +8.83870968 6.51612903 15.88319867 16.07541438 19.87869941 +8.83870968 6.80645161 16.90953845 16.93241475 19.98661180 +8.83870968 7.09677419 17.50000000 17.50000000 20.00000000 +8.83870968 7.38709677 17.50000000 17.50000000 20.00000000 +8.83870968 7.67741935 17.50000000 17.50000000 20.00000000 +8.83870968 7.96774194 17.50000000 17.50000000 20.00000000 +8.83870968 8.25806452 17.50000000 17.50000000 20.00000000 +8.83870968 8.54838710 17.50000000 17.50000000 20.00000000 +8.83870968 8.83870968 17.50000000 17.50000000 20.00000000 +8.83870968 9.12903226 17.50000000 17.50000000 20.00000000 +8.83870968 9.41935484 17.50000000 17.50000000 20.00000000 +8.83870968 9.70967742 17.50000000 17.50000000 20.00000000 +8.83870968 10.00000000 17.50000000 17.50000000 20.00000000 +9.12903226 1.00000000 10.00000000 13.75000000 18.75000000 +9.12903226 1.29032258 10.00000000 13.75000000 18.75000000 +9.12903226 1.58064516 10.00000000 13.75000000 18.75000000 +9.12903226 1.87096774 10.00000000 13.75000000 18.75000000 +9.12903226 2.16129032 10.00000000 13.75000000 18.75000000 +9.12903226 2.45161290 10.00000000 13.75000000 18.75000000 +9.12903226 2.74193548 10.00000000 13.75000000 18.75000000 +9.12903226 3.03225806 10.01014215 13.74253652 18.73745586 +9.12903226 3.32258065 10.10759368 13.68455725 18.63042380 +9.12903226 3.61290323 10.21937858 13.64503060 18.53708695 +9.12903226 3.90322581 10.35276814 13.62755769 18.46331909 +9.12903226 4.19354839 10.51962543 13.63742744 18.41759948 +9.12903226 4.48387097 10.73840842 13.68281858 18.41253579 +9.12903226 4.77419355 11.03721734 13.77727807 18.46758374 +9.12903226 5.06451613 11.45766304 13.94303282 18.61200965 +9.12903226 5.35483871 12.03283452 14.16229115 18.82112467 +9.12903226 5.64516129 12.78467382 14.43913152 19.07300014 +9.12903226 5.93548387 13.71462338 14.81596996 19.35739569 +9.12903226 6.22580645 14.77874402 15.35015506 19.64585006 +9.12903226 6.51612903 15.88319867 16.07541438 19.87869941 +9.12903226 6.80645161 16.90953845 16.93241475 19.98661180 +9.12903226 7.09677419 17.50000000 17.50000000 20.00000000 +9.12903226 7.38709677 17.50000000 17.50000000 20.00000000 +9.12903226 7.67741935 17.50000000 17.50000000 20.00000000 +9.12903226 7.96774194 17.50000000 17.50000000 20.00000000 +9.12903226 8.25806452 17.50000000 17.50000000 20.00000000 +9.12903226 8.54838710 17.50000000 17.50000000 20.00000000 +9.12903226 8.83870968 17.50000000 17.50000000 20.00000000 +9.12903226 9.12903226 17.50000000 17.50000000 20.00000000 +9.12903226 9.41935484 17.50000000 17.50000000 20.00000000 +9.12903226 9.70967742 17.50000000 17.50000000 20.00000000 +9.12903226 10.00000000 17.50000000 17.50000000 20.00000000 +9.41935484 1.00000000 10.00000000 13.75000000 18.75000000 +9.41935484 1.29032258 10.00000000 13.75000000 18.75000000 +9.41935484 1.58064516 10.00000000 13.75000000 18.75000000 +9.41935484 1.87096774 10.00000000 13.75000000 18.75000000 +9.41935484 2.16129032 10.00000000 13.75000000 18.75000000 +9.41935484 2.45161290 10.00000000 13.75000000 18.75000000 +9.41935484 2.74193548 10.00000000 13.75000000 18.75000000 +9.41935484 3.03225806 10.01014215 13.74253652 18.73745586 +9.41935484 3.32258065 10.10759368 13.68455725 18.63042380 +9.41935484 3.61290323 10.21937858 13.64503060 18.53708695 +9.41935484 3.90322581 10.35276814 13.62755769 18.46331909 +9.41935484 4.19354839 10.51962543 13.63742744 18.41759948 +9.41935484 4.48387097 10.73840842 13.68281858 18.41253579 +9.41935484 4.77419355 11.03721734 13.77727807 18.46758374 +9.41935484 5.06451613 11.45766304 13.94303282 18.61200965 +9.41935484 5.35483871 12.03283452 14.16229115 18.82112467 +9.41935484 5.64516129 12.78467382 14.43913152 19.07300014 +9.41935484 5.93548387 13.71462338 14.81596996 19.35739569 +9.41935484 6.22580645 14.77874402 15.35015506 19.64585006 +9.41935484 6.51612903 15.88319867 16.07541438 19.87869941 +9.41935484 6.80645161 16.90953845 16.93241475 19.98661180 +9.41935484 7.09677419 17.50000000 17.50000000 20.00000000 +9.41935484 7.38709677 17.50000000 17.50000000 20.00000000 +9.41935484 7.67741935 17.50000000 17.50000000 20.00000000 +9.41935484 7.96774194 17.50000000 17.50000000 20.00000000 +9.41935484 8.25806452 17.50000000 17.50000000 20.00000000 +9.41935484 8.54838710 17.50000000 17.50000000 20.00000000 +9.41935484 8.83870968 17.50000000 17.50000000 20.00000000 +9.41935484 9.12903226 17.50000000 17.50000000 20.00000000 +9.41935484 9.41935484 17.50000000 17.50000000 20.00000000 +9.41935484 9.70967742 17.50000000 17.50000000 20.00000000 +9.41935484 10.00000000 17.50000000 17.50000000 20.00000000 +9.70967742 1.00000000 10.00000000 13.75000000 18.75000000 +9.70967742 1.29032258 10.00000000 13.75000000 18.75000000 +9.70967742 1.58064516 10.00000000 13.75000000 18.75000000 +9.70967742 1.87096774 10.00000000 13.75000000 18.75000000 +9.70967742 2.16129032 10.00000000 13.75000000 18.75000000 +9.70967742 2.45161290 10.00000000 13.75000000 18.75000000 +9.70967742 2.74193548 10.00000000 13.75000000 18.75000000 +9.70967742 3.03225806 10.01014215 13.74253652 18.73745586 +9.70967742 3.32258065 10.10759368 13.68455725 18.63042380 +9.70967742 3.61290323 10.21937858 13.64503060 18.53708695 +9.70967742 3.90322581 10.35276814 13.62755769 18.46331909 +9.70967742 4.19354839 10.51962543 13.63742744 18.41759948 +9.70967742 4.48387097 10.73840842 13.68281858 18.41253579 +9.70967742 4.77419355 11.03721734 13.77727807 18.46758374 +9.70967742 5.06451613 11.45766304 13.94303282 18.61200965 +9.70967742 5.35483871 12.03283452 14.16229115 18.82112467 +9.70967742 5.64516129 12.78467382 14.43913152 19.07300014 +9.70967742 5.93548387 13.71462338 14.81596996 19.35739569 +9.70967742 6.22580645 14.77874402 15.35015506 19.64585006 +9.70967742 6.51612903 15.88319867 16.07541438 19.87869941 +9.70967742 6.80645161 16.90953845 16.93241475 19.98661180 +9.70967742 7.09677419 17.50000000 17.50000000 20.00000000 +9.70967742 7.38709677 17.50000000 17.50000000 20.00000000 +9.70967742 7.67741935 17.50000000 17.50000000 20.00000000 +9.70967742 7.96774194 17.50000000 17.50000000 20.00000000 +9.70967742 8.25806452 17.50000000 17.50000000 20.00000000 +9.70967742 8.54838710 17.50000000 17.50000000 20.00000000 +9.70967742 8.83870968 17.50000000 17.50000000 20.00000000 +9.70967742 9.12903226 17.50000000 17.50000000 20.00000000 +9.70967742 9.41935484 17.50000000 17.50000000 20.00000000 +9.70967742 9.70967742 17.50000000 17.50000000 20.00000000 +9.70967742 10.00000000 17.50000000 17.50000000 20.00000000 +10.00000000 1.00000000 10.00000000 13.75000000 18.75000000 +10.00000000 1.29032258 10.00000000 13.75000000 18.75000000 +10.00000000 1.58064516 10.00000000 13.75000000 18.75000000 +10.00000000 1.87096774 10.00000000 13.75000000 18.75000000 +10.00000000 2.16129032 10.00000000 13.75000000 18.75000000 +10.00000000 2.45161290 10.00000000 13.75000000 18.75000000 +10.00000000 2.74193548 10.00000000 13.75000000 18.75000000 +10.00000000 3.03225806 10.01014215 13.74253652 18.73745586 +10.00000000 3.32258065 10.10759368 13.68455725 18.63042380 +10.00000000 3.61290323 10.21937858 13.64503060 18.53708695 +10.00000000 3.90322581 10.35276814 13.62755769 18.46331909 +10.00000000 4.19354839 10.51962543 13.63742744 18.41759948 +10.00000000 4.48387097 10.73840842 13.68281858 18.41253579 +10.00000000 4.77419355 11.03721734 13.77727807 18.46758374 +10.00000000 5.06451613 11.45766304 13.94303282 18.61200965 +10.00000000 5.35483871 12.03283452 14.16229115 18.82112467 +10.00000000 5.64516129 12.78467382 14.43913152 19.07300014 +10.00000000 5.93548387 13.71462338 14.81596996 19.35739569 +10.00000000 6.22580645 14.77874402 15.35015506 19.64585006 +10.00000000 6.51612903 15.88319867 16.07541438 19.87869941 +10.00000000 6.80645161 16.90953845 16.93241475 19.98661180 +10.00000000 7.09677419 17.50000000 17.50000000 20.00000000 +10.00000000 7.38709677 17.50000000 17.50000000 20.00000000 +10.00000000 7.67741935 17.50000000 17.50000000 20.00000000 +10.00000000 7.96774194 17.50000000 17.50000000 20.00000000 +10.00000000 8.25806452 17.50000000 17.50000000 20.00000000 +10.00000000 8.54838710 17.50000000 17.50000000 20.00000000 +10.00000000 8.83870968 17.50000000 17.50000000 20.00000000 +10.00000000 9.12903226 17.50000000 17.50000000 20.00000000 +10.00000000 9.41935484 17.50000000 17.50000000 20.00000000 +10.00000000 9.70967742 17.50000000 17.50000000 20.00000000 +10.00000000 10.00000000 17.50000000 17.50000000 20.00000000 diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.fll b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fll new file mode 100644 index 0000000..611d6eb --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.fll @@ -0,0 +1,59 @@ +Engine: Sugeno-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: CheapTip + enabled: true + range: 5.000 25.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: Low Constant 10.000 + term: Medium Constant 15.000 + term: High Constant 20.000 +OutputVariable: AverageTip + enabled: true + range: 5.000 25.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: Low Constant 10.000 + term: Medium Constant 15.000 + term: High Constant 20.000 +OutputVariable: GenerousTip + enabled: true + range: 5.000 25.000 + accumulation: none + defuzzifier: WeightedAverage TakagiSugeno + default: nan + lock-previous: false + lock-range: false + term: Low Constant 10.000 + term: Medium Constant 15.000 + term: High Constant 20.000 +RuleBlock: + enabled: true + conjunction: EinsteinProduct + disjunction: none + activation: none + rule: if FoodQuality is extremely Bad and Service is extremely Bad then CheapTip is extremely Low and AverageTip is very Low and GenerousTip is Low + rule: if FoodQuality is Good and Service is extremely Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium + rule: if FoodQuality is very Good and Service is very Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High + rule: if FoodQuality is Bad and Service is Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium + rule: if FoodQuality is Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High + rule: if FoodQuality is extremely Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is very High + rule: if FoodQuality is Bad and Service is Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High + rule: if FoodQuality is Good and Service is Good then CheapTip is Medium and AverageTip is Medium and GenerousTip is very High + rule: if FoodQuality is very Bad and Service is very Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High + rule: if FoodQuality is very very Good and Service is very very Good then CheapTip is High and AverageTip is very High and GenerousTip is extremely High
\ No newline at end of file diff --git a/examples/takagi-sugeno/octave/sugeno_tip_calculator.java b/examples/takagi-sugeno/octave/sugeno_tip_calculator.java new file mode 100644 index 0000000..939649e --- /dev/null +++ b/examples/takagi-sugeno/octave/sugeno_tip_calculator.java @@ -0,0 +1,96 @@ +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 sugeno_tip_calculator{ +public static void main(String[] args){ +Engine engine = new Engine(); +engine.setName("Sugeno-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("CheapTip"); +outputVariable1.setRange(5.000, 25.000); +outputVariable1.fuzzyOutput().setAccumulation(null); +outputVariable1.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable1.setDefaultValue(Double.NaN); +outputVariable1.setLockPreviousOutputValue(false); +outputVariable1.setLockOutputValueInRange(false); +outputVariable1.addTerm(new Constant("Low", 10.000)); +outputVariable1.addTerm(new Constant("Medium", 15.000)); +outputVariable1.addTerm(new Constant("High", 20.000)); +engine.addOutputVariable(outputVariable1); + +OutputVariable outputVariable2 = new OutputVariable(); +outputVariable2.setEnabled(true); +outputVariable2.setName("AverageTip"); +outputVariable2.setRange(5.000, 25.000); +outputVariable2.fuzzyOutput().setAccumulation(null); +outputVariable2.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable2.setDefaultValue(Double.NaN); +outputVariable2.setLockPreviousOutputValue(false); +outputVariable2.setLockOutputValueInRange(false); +outputVariable2.addTerm(new Constant("Low", 10.000)); +outputVariable2.addTerm(new Constant("Medium", 15.000)); +outputVariable2.addTerm(new Constant("High", 20.000)); +engine.addOutputVariable(outputVariable2); + +OutputVariable outputVariable3 = new OutputVariable(); +outputVariable3.setEnabled(true); +outputVariable3.setName("GenerousTip"); +outputVariable3.setRange(5.000, 25.000); +outputVariable3.fuzzyOutput().setAccumulation(null); +outputVariable3.setDefuzzifier(new WeightedAverage("TakagiSugeno")); +outputVariable3.setDefaultValue(Double.NaN); +outputVariable3.setLockPreviousOutputValue(false); +outputVariable3.setLockOutputValueInRange(false); +outputVariable3.addTerm(new Constant("Low", 10.000)); +outputVariable3.addTerm(new Constant("Medium", 15.000)); +outputVariable3.addTerm(new Constant("High", 20.000)); +engine.addOutputVariable(outputVariable3); + +RuleBlock ruleBlock = new RuleBlock(); +ruleBlock.setEnabled(true); +ruleBlock.setName(""); +ruleBlock.setConjunction(new EinsteinProduct()); +ruleBlock.setDisjunction(null); +ruleBlock.setActivation(null); +ruleBlock.addRule(Rule.parse("if FoodQuality is extremely Bad and Service is extremely Bad then CheapTip is extremely Low and AverageTip is very Low and GenerousTip is Low", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is extremely Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is very Good and Service is very Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Bad then CheapTip is Low and AverageTip is Low and GenerousTip is Medium", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is extremely Good and Service is Bad then CheapTip is Low and AverageTip is Medium and GenerousTip is very High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Bad and Service is Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is Good and Service is Good then CheapTip is Medium and AverageTip is Medium and GenerousTip is very High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is very Bad and Service is very Good then CheapTip is Low and AverageTip is Medium and GenerousTip is High", engine)); +ruleBlock.addRule(Rule.parse("if FoodQuality is very very Good and Service is very very Good then CheapTip is High and AverageTip is very High and GenerousTip is extremely High", engine)); +engine.addRuleBlock(ruleBlock); + + +} +} |