mmre() { cat <<EOF
telecom1,0.904023994,0.904023994,0.820868889,0.820868889,0.599591833,0.894694889,0.763937722,0.785396944,0.904023994,0.780942467,0.780942467,0.614313667,0.828981944,2.108244389,0.932462961,1.129121667,1.155711233,1.147445778,1.147445778,0.942466667,1.271561056,1.038446556,2.110540833,1.128705556,0.536649389,0.543604944,1.006166311,1.006166311,0.703228944,0.953458722,0.764838833,2.108310889,0.806099556,1.202141561,1.233803244,1.317064461,1.317064461,1.213905289,1.213905289,1.013269444,2.110515611,1.221789472,1.131134542,1.047637556,1.006166311,1.006166311,1.052364722,1.110541778,1.055430444,2.1079825,1.017069778,0.810822722,0.781603889,0.904023994,0.904023994,0.820868889,0.820868889,0.599591833,0.894694889,2.111228778,0.769921667,0.723844944,0.904023994,0.904023994,0.723844944,0.723844944,0.602772111,0.865200389,0.874544128,0.733008278,0.823685389,1.685007283,0.904023994,0.904023994,0.820868889,0.820868889,0.550997833,0.908841,0.854954778,0.782152944,0.723844944,0.612143906,0.904023994,0.904023994,0.723844944,0.723844944,0.602772111,0.865200389,0.874544128,0.733008278
kemerer,1.085683067,1.085683067,0.987668133,1.110116667,0.791108467,0.636259267,0.786765,1.859640533,1.085683067,1.193071333,1.053399933,0.982791267,0.798900933,1.505262667,0.917923067,1.382192,1.208934667,0.977396667,0.977396667,1.104852787,0.897411067,0.654993333,1.505287867,0.751512933,1.08367,1.817033333,1.688599333,1.688599333,1.060064,0.8505488,0.7244514,1.501803133,0.902833733,0.892243067,1.5626636,0.997214,0.997214,0.841342533,0.75070074,0.6455366,1.5053742,0.7898898,1.080211933,1.239568933,0.816050067,0.816050067,0.8355324,0.783835933,0.6668022,1.502146133,0.728130467,1.319545733,1.041806667,1.085683067,1.085683067,0.692266267,0.9441336,0.791108467,0.636259267,1.506311133,0.748199867,1.014935273,0.7645098,0.7645098,1.014935273,1.014935273,0.6811566,0.6556604,0.6532179,0.740693533,1.161770667,3.085432667,0.8342754,0.8342754,0.987668133,1.110116667,0.767143133,0.635053333,0.736391267,0.730371333,1.228844,0.9653092,0.715831133,0.715831133,0.8614786,0.845806333,0.902574,0.820155267,0.6601214,0.697792467
cocomo81o,1.200723833,1.200723833,0.773666233,1.254162792,1.108017625,0.544558458,1.157423042,1.87636775,1.200723833,0.7586611,1.168503575,0.880628875,0.641992625,1.888532458,0.893932958,0.976259292,1.857621792,0.849513,0.849513,0.764357496,0.6005925,0.625997083,1.887800292,0.68211425,0.987777263,2.368859458,0.907264833,0.907264833,0.820225879,0.540718583,0.74540125,1.884306375,0.894765333,0.797104875,2.757610642,0.977265917,0.977265917,0.686590042,0.839070875,0.532025542,1.887610833,0.821995375,1.476474832,2.67943975,1.117939875,1.117939875,1.071013596,1.159460542,0.83812875,1.884615833,1.036285875,1.696761625,1.959657208,1.200723833,1.200723833,0.785472201,1.009386183,1.108017625,0.544558458,1.88880175,1.076703833,1.577066625,1.425109625,1.425109625,0.773184625,0.792331971,0.631364042,0.609046083,1.674102292,1.020302804,0.568204292,7.966995417,1.187573292,1.187573292,0.773666233,1.254162792,1.752028917,1.580147542,1.674070625,0.978022125,0.889334083,0.792825875,1.329860833,1.435441875,0.640876458,1.00599075,0.714962083,0.8211775,1.67409375,0.841087417
cocomo81s,12.42516818,12.42516818,30.13987936,29.88733182,1.082162727,6.819829091,12.40491455,8.701621818,12.42516818,47.33606636,48.61264018,0.74108,6.054828182,36.21397727,12.81080545,46.95987182,98.19019455,12.42516818,12.42516818,45.95622818,2.701718182,5.885212727,36.27151909,18.30645909,43.29179364,41.44052182,30.52436,30.52436,34.54766,1.096372727,8.585513636,36.22787273,22.01332182,5.162292727,106.2445418,12.42516818,12.42516818,19.78665091,31.434612,6.773812727,36.23949091,12.57775,9.879468182,84.96501909,12.42516818,12.42516818,36.28946473,0.96918,6.806674545,35.99076818,13.96258273,7.390676364,38.20315618,12.42516818,12.42516818,19.86611727,35.98198545,1.082162727,6.819829091,36.29568727,13.66094182,7.402778182,12.42516818,12.42516818,6.890417273,6.890417273,0.814636364,1.653159091,36.31042545,6.816410909,65.62883091,369.8252964,26.96313182,26.96313182,30.13987936,29.88733182,0.954762727,4.954636364,1.817244545,16.18794818,36.31258727,36.58812318,14.73575545,14.73575545,24.35802273,24.35802273,10.22910636,8.231125455,36.31236909,22.67743955
desharnaisL1,0.485006416,0.485006416,0.435838557,0.43965572,0.617729783,0.476529478,0.414652891,0.64756287,0.485006416,0.572140717,0.487727087,0.451227,0.452080735,0.899734607,0.471555785,0.631820187,0.684150217,0.631057848,0.631057848,0.540551352,0.690766022,0.4726477,0.899188646,0.518008796,0.580048352,0.732811672,0.522809874,0.522809874,0.573754733,0.584750304,0.458019913,0.897116972,0.473930561,0.618256435,0.522613007,0.487513022,0.487513022,0.568263717,0.577571478,0.567431217,0.899815435,0.518943174,0.513680457,0.55259113,0.542830891,0.542830891,0.524769348,0.553531935,0.538501952,0.898190174,0.465754043,0.417381,0.494734674,0.485006416,0.485006416,0.45069313,0.424374457,0.617729783,0.476529478,0.900357667,0.44046082,0.411641435,0.41446513,0.41446513,0.411641435,0.411641435,0.42393163,0.396031283,0.424118493,0.37348463,0.462741239,0.991804948,0.50602587,0.50602587,0.435838557,0.43965572,0.608443848,0.591975824,0.458739407,0.388220965,0.411641435,0.412631893,0.462475416,0.462475416,0.404395496,0.423743304,0.459170848,0.475724152,0.438682891,0.404108524
desharnaisL3,1.060657,1.060657,0.660592,0.662659,0.7837459,0.3043799,0.4211339,0.6235195,1.060657,0.8292846,0.5013177,0.4325309,0.3928059,1.059812,0.7400275,0.887321,5.334369,1.060657,1.060657,1.1450321,0.5242457,0.5625159,1.059465,0.935493,1.220305,13.390771,1.060657,1.060657,1.167113,0.6649232,0.4455629,1.055518,1.105273,0.6327932,1.444594,1.060657,1.060657,1.06297,0.524784,0.3397519,1.05907,0.6346032,0.8603079,5.422488,1.060657,1.060657,0.456684,0.7554539,0.3926469,1.054917,0.5859788,0.815788,0.2668836,1.060657,1.060657,0.8250298,0.4610613,0.7837459,0.3043799,1.060358,0.4098683,0.698879,1.060657,1.060657,0.616685,0.616685,0.473559,0.3557069,0.4245636,0.45548,0.7341144,7.335226,1.060657,1.060657,0.660592,0.662659,0.83994,0.579508,0.5210908,0.626754,0.735438,0.4824787,1.060657,1.060657,0.614109,0.615556,0.45537,0.3557069,0.5030193,0.3936599
albrecht,1.009138458,1.009138458,1.010260125,0.998040208,0.867772208,0.950925417,0.835488542,2.524117125,1.009138458,2.182016625,2.086607917,0.598463375,0.966730875,3.42975675,1.667493167,1.29637125,2.799275958,1.522691458,1.522691458,1.721598958,1.811424833,0.939903917,3.433020333,1.451136167,1.138098208,2.4601325,0.994744083,0.994744083,2.202233958,0.881171958,1.007812333,3.414460417,1.048656,1.171176667,2.288487458,1.216500388,1.216500388,0.976953625,0.953359958,1.078755375,3.430895167,1.158303833,0.729070833,0.731038875,1.02115825,1.02115825,0.498946504,0.926706792,1.13926575,3.409264125,0.824547417,1.021534708,1.211663417,1.009138458,1.009138458,1.075901042,1.01333856,0.867772208,0.950925417,3.436591833,0.95956725,1.004624292,1.103993238,1.103993238,0.801936625,0.801936625,0.920095333,0.847147958,0.835693458,0.843135821,0.94151875,4.261250958,1.039542167,1.039542167,1.010260125,0.998040208,1.220414167,1.425285458,0.8360506,0.9137475,1.004624292,0.904939208,1.062892821,1.062892821,1.000400667,1.003391533,1.052624833,0.915599333,0.872351792,0.83613725
cocomo81e,1.782493929,1.782493929,7.902992436,5.155103536,2.091676429,2.201427214,2.871856396,12.38269371,1.782493929,17.41397071,12.28550818,1.2404,2.184802571,12.23631696,7.67946375,6.896337464,26.12017943,2.71989725,2.71989725,12.95349179,1.507504536,2.01234225,12.25906839,4.805116107,8.182380714,13.85569929,2.923977143,2.923977143,10.98781429,1.233453929,1.990768429,12.23237029,5.611862143,13.33654489,11.62715754,6.245218571,6.245218571,11.46382032,10.55930186,2.238742214,12.25902479,6.539770929,8.091326786,13.89550214,2.756454643,2.756454643,9.897742357,1.816837107,2.209980357,12.24057579,5.520580571,6.995040307,19.99067393,1.789675714,1.789675714,12.30260968,9.003816893,2.091676429,2.201427214,12.26480125,6.494328929,6.972535307,1.297406607,1.297406607,6.958006736,6.958006736,2.131133214,2.154153214,3.249923321,3.434366,17.31478179,44.65684921,5.618544036,5.618544036,7.902992436,5.155103536,5.410157857,3.550526786,3.249902036,4.984915339,6.312522321,11.63880757,3.942562661,3.942562661,12.73639336,12.02519357,4.460796536,3.703059607,12.26665204,6.098119714
nasa93_{center5},0.904913744,0.904913744,1.122936692,1.187430872,1.025719,0.79448541,0.776840923,1.224380846,0.904913744,1.430604154,1.540261692,0.720633692,0.893455436,2.409024,0.965805538,2.779854308,3.314909864,2.605201949,2.605201949,1.959617282,1.469665923,1.161734949,2.407209564,1.772809513,1.835492615,2.648662179,1.694892103,1.694892103,1.790935882,1.165943051,1.024184744,2.40155559,1.442052359,1.658101051,1.525193211,1.021850333,1.021850333,1.56527641,1.510964744,0.765600949,2.407409026,1.128038723,1.333457128,1.468175774,1.075273364,1.075273364,1.594080795,1.215526949,0.798755385,2.400095897,1.046923282,1.304553033,1.633504128,0.904913744,0.904913744,1.256203385,1.463299403,1.025719,0.79448541,2.408956821,0.929043205,1.304553033,0.974760769,0.974760769,1.304553033,1.304553033,1.009289436,0.779716333,1.836035051,1.086226513,1.294980128,5.969122769,1.077653385,1.077653385,1.122936692,1.187430872,0.935190872,0.733661718,1.835949513,0.909488333,1.304553033,0.914966774,0.848804872,0.848804872,1.265546769,1.276746769,0.739154846,0.886012,1.836035205,0.800292646
desharnaisL2,0.29435082,0.29435082,0.34379792,0.33601476,0.4517004,0.40207884,0.33155734,0.356275352,0.29435082,0.42831548,0.4250418,0.4664332,0.42466548,0.9976268,0.3649686,0.4686968,0.7487796,0.61303072,0.61303072,0.5550822,0.4914156,0.4946948,0.9972388,0.46930632,0.50252512,0.789104456,0.37966908,0.37966908,0.53422004,0.5561888,0.41164676,0.9942,0.42445292,0.37374596,0.45831712,0.41199276,0.41199276,0.37446744,0.35655216,0.44107718,0.9972596,0.39464888,0.4146136,0.40515316,0.39781132,0.39781132,0.35469536,0.4857168,0.444058,0.9935528,0.375908,0.334757184,0.332073,0.29435082,0.29435082,0.33070316,0.364436624,0.4517004,0.40207884,0.998362,0.305861404,0.301051984,0.41088416,0.41088416,0.301051984,0.301051984,0.40981684,0.33400044,0.33895176,0.31998252,0.33049752,1.0683792,0.33127952,0.33127952,0.34379792,0.33601476,0.5945552,0.416340856,0.35704012,0.29955352,0.303116784,0.26724744,0.40835216,0.40835216,0.27389944,0.27389944,0.3510008,0.34825654,0.33896416,0.28446616
desharnais,0.52936337,0.52936337,0.687328593,0.697500927,0.683095333,0.591476486,0.547530679,0.617368025,0.52936337,0.615424831,0.700347222,0.80336837,0.738316183,1.23092521,0.564425578,0.73298103,0.736362728,0.909370864,0.909370864,0.731195581,0.874931407,0.750159556,1.23072384,0.723574074,0.645878074,0.625658551,0.489325673,0.489325673,0.587663012,0.838053037,0.744034111,1.228135716,0.550144361,0.67432894,0.741608481,0.689119527,0.689119527,0.607150543,0.98415237,0.734874954,1.231039852,0.657587654,0.625094173,0.60099604,0.678782663,0.678782663,0.701176494,0.698139531,0.625931716,1.229049975,0.546007727,0.510294627,0.54700284,0.512826086,0.512826086,0.531553519,0.787877054,0.683095333,0.591476486,1.231638667,0.462766838,0.490892528,0.472956962,0.472956962,0.64327812,0.64907398,0.454886407,0.408830086,0.688020765,0.444895173,0.564212198,1.248270689,0.883244284,0.883244284,0.687328593,0.697500927,0.796399309,0.671249802,0.71520242,0.671558309,0.490892528,0.485845045,0.463515239,0.463515239,0.643882249,0.649136394,0.505349815,0.430711178,0.688045395,0.435361436
maxwell,0.829264403,0.829264403,0.466477347,0.473622016,0.914753984,0.702292339,0.546029466,1.361376903,0.829264403,1.367932734,1.142816266,0.761387081,0.814442016,2.026074065,1.069652218,1.139215602,1.965940823,0.914708113,0.914708113,0.958303437,0.961666,0.780661823,2.025730516,0.865734758,0.990066974,1.865696226,0.655781271,0.655781271,1.000755739,0.678309839,0.662373532,2.019173452,0.643470968,0.823434482,1.296925116,1.112532313,1.112532313,0.847879692,1.400543788,0.650012758,2.025832032,0.922173306,0.774055,1.482941219,0.97137341,0.97137341,1.144471684,0.946902645,0.775484097,2.022174226,0.803917306,0.759840968,1.245151726,0.829264403,0.829264403,1.060675694,1.613999597,0.914753984,0.702292339,2.027888452,0.71533979,0.500317629,0.59584,0.59584,0.480021779,0.482381773,0.624551431,0.488873242,0.708516595,0.449446711,0.811981202,5.474724484,0.638284345,0.638284345,0.466477347,0.473622016,1.073384258,1.215157081,0.707554011,0.552279837,0.667569476,0.707034194,0.656123729,0.656123729,0.470919403,0.476787581,0.788445323,0.954787984,0.708111476,0.4862082
nasa93_{center1},0.332649667,0.332649667,0.447873333,0.392018417,0.376571667,0.4904775,0.337621667,0.661675333,0.332649667,0.891291667,0.67528777,0.343701667,0.487699167,1.6568475,0.4950505,0.897621667,5.546203333,0.332649667,0.332649667,1.065996917,1.345475833,1.073464167,1.658766667,0.895699167,1.053633333,1.524055,1.348599167,1.348599167,1.1659675,0.629966667,1.3883875,1.660784167,1.112941667,0.513418833,1.08636325,0.332649667,0.332649667,0.583345833,1.645758333,0.5588425,1.657161667,0.369276833,0.376624167,0.473158417,0.332649667,0.332649667,1.4902975,0.521016667,0.5588425,1.65433,0.371154667,0.383051667,0.810810333,0.332649667,0.332649667,0.56778,1.660035,0.376571667,0.4904775,1.657710833,0.438904667,0.365443333,0.332649667,0.332649667,0.365443333,0.365443333,0.439303333,0.358245833,0.463319667,0.376139167,0.453281,5.9598775,0.332649667,0.332649667,0.447873333,0.392018417,0.646094167,0.528390833,0.46332,0.4075605,0.365443333,0.330033333,0.332649667,0.332649667,0.378170422,0.389491917,0.439303333,0.358245833,0.463319,0.333495833
sdr,2.2164,2.2164,3.282712417,3.234468317,1.740060792,1.238096042,1.1433835,4.274118125,2.46466375,2.424849625,3.114454458,1.029545,1.302718333,5.971272125,1.778183667,6.316697083,260.2768458,1.430060292,1.430060292,7.151111667,2.913710417,0.608183583,5.9967835,3.867020417,7.93085715,159.2117488,1.664606625,1.664606625,5.42920625,2.794752708,0.621096875,5.983565625,3.255184042,4.70768625,7.5841775,2.393471583,2.393471583,3.866225,7.121551042,0.996741458,6.001619083,1.986515292,1.881761375,14.22610833,2.624136167,2.624136167,7.077645924,2.025076,1.277720417,5.9899755,1.539182292,2.676108958,96.14582417,2.2164,2.2164,3.619729042,7.256150292,1.740060792,1.238096042,6.005139125,1.483175458,2.291552708,2.014016667,2.014016667,3.21132875,3.200846533,1.514115,0.863254167,3.182280708,1.054397917,2.354305417,48.41668917,1.92293125,1.92293125,3.282712417,3.234468317,1.02867125,0.5572025,3.181679708,1.594815833,2.321824667,0.994078292,1.2226325,1.2226325,2.314128,2.314128,1.409599583,0.75688525,3.183964,0.798803375
finnish,0.241244398,0.241244398,0.602194287,0.633733663,0.455195489,0.648668087,0.373933866,0.904616053,0.241244398,0.810724211,0.583221211,0.516195018,0.820597482,2.775434316,0.487798003,0.755499211,1.744206816,0.340651105,0.340651105,0.698238632,0.417763684,0.535203911,2.772302237,0.4277405,0.625460481,1.6006554,0.251513339,0.251513339,0.589634211,0.371989974,0.431721213,2.767583789,0.410980113,0.556372811,0.903380268,0.428603145,0.428603145,0.614275132,0.990143763,0.574182026,2.774292026,0.507370105,0.650121079,0.862541906,0.23341423,0.23341423,0.825371474,0.465263679,0.574058863,2.769554158,0.38611658,0.803077861,0.924742289,0.241244398,0.241244398,0.653602171,0.931495526,0.455195489,0.648668087,2.776171974,0.460035716,0.803077861,0.241244398,0.241244398,0.803077861,0.803077861,0.213904334,0.342242966,2.774476632,0.738264571,0.556235079,4.097988684,1.031237492,1.031237492,0.602194287,0.633733663,0.623833411,0.962429732,1.278657129,0.638602092,0.677888655,0.632696171,0.892514545,0.892514545,0.601660489,0.632396055,0.450475105,0.613994632,1.278909563,0.517107792
miyazaki94,0.66533206,0.66533206,0.869489604,0.882395077,0.651505917,0.620046083,0.634058196,4.411702604,0.740652894,3.81752925,3.110894333,0.857306542,0.519208104,2.623521208,1.447324042,1.993947708,1.818244167,2.079673208,2.079673208,2.080684104,0.791009792,0.711485917,2.643359229,1.227191208,2.514622271,2.6012945,0.904355688,0.904355688,2.544056742,1.049038563,0.527606625,2.625921229,1.124277542,1.071506792,4.467903583,1.085017313,1.085017313,1.060955563,1.068437583,1.57207146,2.637891229,1.100584604,0.946607563,4.734462479,1.145563042,1.145563042,1.014076521,1.53157944,0.777598958,2.612758271,0.970348104,0.747369667,0.805341583,0.66533206,0.66533206,0.810424625,1.117145229,0.651505917,0.620046083,2.645389938,0.571823021,0.744561125,0.57697505,0.57697505,0.930483265,0.950514935,0.399739813,0.501864996,0.712322388,0.534498831,0.749394908,1.990158458,0.844033875,0.844033875,0.869489604,0.882395077,0.9548095,0.81903709,0.841691063,0.804412604,1.541153854,2.062948167,1.172066854,1.172066854,1.541153854,1.541153854,1.41159775,0.93372014,1.226890727,1.169286046
nasa93_center_2,0.464509486,0.464509486,1.851901832,1.321877351,0.496520054,0.945015405,0.664364351,4.498260973,0.464509486,4.589533108,3.534917757,0.397497243,0.94534027,4.567237054,1.513681973,4.126225946,3.747290622,2.978202162,2.978202162,2.951914,1.931813784,1.208342432,4.567405486,1.995408432,4.493835676,4.311396865,2.759789168,2.759789168,2.814287595,1.975848649,1.053531351,4.558154432,2.307822978,2.226786486,2.494050153,2.607068973,2.607068973,2.977728432,3.312114865,0.987042162,4.566471892,2.503572162,2.12112873,1.900251865,1.707767054,1.707767054,3.088421405,3.180149243,0.965888378,4.546132324,1.795361595,1.118130514,1.174613297,0.464509486,0.464509486,2.555921432,3.205753351,0.496520054,0.945015405,4.571481784,0.946235297,1.081708703,0.538033838,0.538033838,1.707020324,1.128269395,0.393178703,0.819971892,2.615080865,0.78447027,1.192961103,8.679754665,0.558858405,0.558858405,1.851901832,1.321877351,0.507021838,0.862547297,2.614994324,0.677980124,1.099550189,0.440675081,0.841359973,0.841359973,1.099550189,1.099550189,1.097814405,0.356329216,2.615162595,0.633328135
cocomo81,1.586404913,1.586404913,9.858321444,5.370846333,4.493563714,2.858369984,4.005044722,26.94931603,1.586404913,24.9619586,19.12567343,1.047743063,2.183850111,18.45548648,10.73790333,23.05504698,23.82545314,2.708812841,2.708812841,18.3017341,3.697819206,1.675866937,18.49280202,9.823964822,15.11472983,26.47853324,1.871566952,1.871566952,24.2538219,5.066565873,2.367682889,18.45732448,10.21213062,7.531515079,21.02446565,9.125883175,9.125883175,14.56762836,12.19747154,2.799504921,18.49293079,7.050716413,11.39896381,18.07495452,3.074587095,3.074587095,15.11062963,3.06226046,3.90315254,18.46524517,5.932509683,15.23224029,16.08907149,1.586404913,1.586404913,14.37585662,14.86186904,4.493563714,2.858369984,18.50592897,7.027913222,15.21939933,1.56351819,1.56351819,13.42643686,4.378578476,2.424376032,1.506622968,4.203019822,2.525326175,11.3976304,32.63517617,15.66716181,15.66716181,9.858321444,5.370846333,3.379734667,2.660606984,4.202897165,3.632953371,5.210011048,5.909315206,1.509103683,1.509103683,6.505325492,6.48350381,2.054310635,1.498751619,4.203021119,3.479964032
nasa93,1.220208606,1.220208606,2.757069395,2.872554271,1.252132161,1.127633688,1.490388144,5.962968614,1.220208606,6.796551903,6.975487269,0.773791312,1.103458462,7.171799871,2.167706258,3.276012054,5.028438796,2.992309054,2.992309054,3.945965989,1.601145527,1.346204957,7.17546471,2.512109839,4.546613608,3.29913328,2.046401161,2.046401161,3.638899538,1.174409753,1.578337559,7.152838774,2.514333628,5.402536624,4.605281484,2.24359428,2.24359428,4.900145355,4.414147294,1.08881914,7.177558796,2.473549387,2.812497959,2.901449699,2.048010892,2.048010892,4.064206191,2.909464882,1.144520204,7.156624398,2.249157766,2.848371196,2.264046065,1.220208606,1.220208606,3.244958909,3.906769559,1.252132161,1.127633688,7.18167728,1.642229473,2.557835927,1.159837966,1.159837966,2.753092342,2.676317628,0.803205903,0.931783086,2.591576926,1.701658111,3.143155035,7.394680543,0.962435344,0.962435344,2.757069395,2.872554271,1.595551333,0.963603624,2.591457529,1.693568352,2.837375497,1.946639988,1.096265663,1.096265663,2.654220086,2.673713237,1.022200624,1.414648366,2.591572501,1.17067577
china,0.110721443,0.110721443,0.130861723,0.131062304,0.413366733,0.423687375,0.096112404,3.659198397,0.111222445,3.686472946,2.475591182,0.405911824,0.39250501,3.910320641,0.878116232,2.472885772,2.288977956,0.450440882,0.450440882,2.625691383,0.59004008,0.480340681,3.947775551,1.426412826,2.844549098,2.676092184,0.330681363,0.330681363,2.713707415,0.542985972,0.381503006,3.921843687,1.598176353,2.304308617,2.302224449,2.25008016,2.25008016,2.309178357,3.403266533,1.584448898,3.956052104,2.28252505,1.764008016,1.755250501,1.534068136,1.534068136,2.940921844,1.394589178,1.231623246,3.947114228,1.610480962,0.191082164,0.203787575,0.110721443,0.110721443,0.708416834,2.154408818,0.413366733,0.423687375,3.958216433,0.17993988,0.204368737,0.112725451,0.112725451,0.13282582,0.133046092,0.384188377,0.43743487,0.200420842,0.094609218,0.253707415,3.553847695,0.098076152,0.098076152,0.130861723,0.131062304,0.478056112,0.45492986,0.236132265,0.10507032,0.12743487,0.134248497,0.113286573,0.113286573,0.130280561,0.130861723,0.179519038,0.188857715,0.186412826,0.115450902
EOF
}
one11() { mmre | gawk -F, 'NR>1 {print $1 " " $2 " " $12  " " $12 - $2 | "sort -n -k 4"}'; }
one11 > "one11.dat"

mmresByData() { mmre | gawk -F, 'NR>1 {SUBSEP=" "}
					NR >=2 && NR <= 6 { for(i=2;i<=NF;i++)    x5[   ++x5[0] ] = $i }
					NR >=7 && NR <= 11 { for(i=2;i<=NF;i++)    x10[   ++x10[0] ] = $i }
					NR >=12 && NR <= 16 { for(i=2;i<=NF;i++)    x15[   ++x15[0] ] = $i }
					NR >=17 && NR <= 21 { for(i=2;i<=NF;i++)    x20[   ++x20[0] ] = $i }

					  END {
					  	report(5,x5)
					  	report(10,x10)
					  	report(15,x15)
					  	report(20,x20)
				  }
function report(header,a,   div,i,f) {
	f="dall" header ".dat"
	print f
	com = " sort -n >> " f
	print "" > f
    for(i=1;i<=100; i++) 
		if (a[i] != "")
				print a[i] | com
	close(com)
}
'
}
mmresByData
gnuplot <<EOF
set size 0.5,0.5
set terminal postscript eps color enhanced "Helvetica" 12
set output "mmresByData.eps
set ylabel "MMRE"
set xlabel "all MMREs, sorted"
set title "Performance, grouped by data sets"
set key top left
plot "dall5.dat" title "tel,kem,coc81o,desL1,coc81s" with lines,\
	"dall10.dat" title "desL3,alb,coc81e,nasa5,desL2" with lines,\
	"dall15.dat" title "des,max,sdr,nasa1,miy94" with lines,\
	"dall20.dat" title "nasa2,fin,coc81,nasa93,china" with lines
EOF
epstopdf mmresByData.eps


mmres() { mmre | gawk -F, 'NR>1 {SUBSEP=" ";
					  for(i=2;i<=9;i++)    x8[   ++x8[0] ] = $i
					  for(i=10;i<=30;i++) x30[  ++x30[0] ] = $i
					  for(i=31;i<=50;i++) x50[  ++x50[0] ] = $i
					  for(i=51;i<=70;i++) x70[  ++x70[0] ] = $i
					  for(i=71;i<=NF;i++) x100[++x100[0] ] = $i
					  }
					  END {
					  	report(8,x8)
					  	report(30,x30)
					  	report(50,x50)
					  	report(70,x70)
					  	report(100,x100)
				  }
function report(header,a,   div,i,f) {
	f="all" header ".dat"
	print f
	com = " sort -n >> " f
	print "" > f
	div = a[0]/100
    for(i=1;i<=100; i++) {
		j = int(i * div + 0.5)
		if (a[j] != "")
				print a[j] | com
	}
	close(com)
}
'
}

mmresAll() { mmre | gawk -F, 'NR>1 {SUBSEP=" ";
					  for(i=2;i<=NF;i++)    xall[   ++xall[0] ] = $i
					  }
					  END {
					  	report("mmre",xall)
				  }
function report(header,a,   div,i,f) {
	f="all" header ".dat"
	print f
	com = " sort -n >> " f
	print "" > f
	div = a[0]/100
    for(i=1;i<=100; i++) {
		j = int(i * div + 0.5)
		if (a[j] != "")
				print a[j] | com
	}
	close(com)
}
'
}
mmresAll
gnuplot <<EOF
set size 0.5,0.5
set terminal postscript eps color enhanced "Helvetica" 12
set output "mmres.eps
set ylabel "MRE"
set xlabel "algorithms, sorted by the algorithm rank of Figure 4"
set key top left
set xrange [0:90]
plot "allmmre.dat"  title "mean MRE" with lines,"allmmre.dat" title "median MRE" with lines
EOF
epstopdf mmres.eps

