From 471468c35b704f4fe6abadd49a2d61c08b451c08 Mon Sep 17 00:00:00 2001 From: rakow Date: Tue, 31 Oct 2023 10:32:19 +0100 Subject: [PATCH] optimized network params --- Makefile | 7 +- pom.xml | 8 +- .../prepare/network/BerlinNetworkParams.java | 26 + ...BerlinNetworkParams_capacity_priority.java | 3831 +++++++++++++++++ ...workParams_capacity_right_before_left.java | 1049 +++++ ...nNetworkParams_capacity_traffic_light.java | 1731 ++++++++ ...nNetworkParams_speedRelative_priority.java | 1111 +++++ ...arams_speedRelative_right_before_left.java | 949 ++++ ...orkParams_speedRelative_traffic_light.java | 1551 +++++++ .../prepare/network/FeatureRegressor.java | 1 + .../network/Speedrelative_priority.java | 11 +- .../Speedrelative_right_before_left.java | 11 +- .../network/Speedrelative_traffic_light.java | 11 +- 13 files changed, 10274 insertions(+), 23 deletions(-) create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_right_before_left.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_traffic_light.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_right_before_left.java create mode 100644 src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_traffic_light.java diff --git a/Makefile b/Makefile index 3c33374a..3ab63fc3 100644 --- a/Makefile +++ b/Makefile @@ -113,12 +113,11 @@ $p/berlin-v6.1-network.xml.gz: input/sumo.net.xml $(sc) prepare clean-network $@ --output $@ --modes car - $(sc) prepare sample-network --network $@ + #$(sc) prepare sample-network --network $@ # To update features and params, running python code is necessary - $(sc) prepare network-params --network $@ --input-features input/sumo.net-edges.csv.gz --output $@ - - $(sc) prepare network-freespeed --network $@ --params input/network-params.json --output $@ + #$(sc) prepare network-params --network $@ --input-features input/sumo.net-edges.csv.gz --output $@ + #$(sc) prepare network-freespeed --network $@ --params input/network-params.json --output $@ $p/berlin-v6.1-network-with-pt.xml.gz: $p/berlin-v6.1-network.xml.gz $(sc) prepare transit-from-gtfs --network $< --output=$p\ diff --git a/pom.xml b/pom.xml index ece17cce..8ac39ca1 100644 --- a/pom.xml +++ b/pom.xml @@ -6,10 +6,10 @@ matsim-all - 16.0-PR2738 + - + 16.0-SNAPSHOT 4.0.0 @@ -145,12 +145,12 @@ de.topobyte osm4j-pbf - 1.2.0 + 1.3.0 de.topobyte osm4j-geometry - 1.2.0 + 1.3.0 diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java new file mode 100644 index 00000000..0d05d420 --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java @@ -0,0 +1,26 @@ +package org.matsim.prepare.network; + +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.opt.NetworkModel; + +public class BerlinNetworkParams implements NetworkModel { + @Override + public FeatureRegressor capacity(String junctionType) { + return switch (junctionType) { + case "traffic_light" -> BerlinNetworkParams_capacity_traffic_light.INSTANCE; + case "right_before_left" -> BerlinNetworkParams_capacity_right_before_left.INSTANCE; + case "priority" -> BerlinNetworkParams_capacity_priority.INSTANCE; + default -> throw new IllegalArgumentException("Unknown type: " + junctionType); + }; + } + + @Override + public FeatureRegressor speedFactor(String junctionType) { + return switch (junctionType) { + case "traffic_light" -> BerlinNetworkParams_speedRelative_traffic_light.INSTANCE; + case "right_before_left" -> BerlinNetworkParams_speedRelative_right_before_left.INSTANCE; + case "priority" -> BerlinNetworkParams_speedRelative_priority.INSTANCE; + default -> throw new IllegalArgumentException("Unknown type: " + junctionType); + }; + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java new file mode 100644 index 00000000..d18252ba --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java @@ -0,0 +1,3831 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_capacity_priority implements FeatureRegressor { + + public static BerlinNetworkParams_capacity_priority INSTANCE = new BerlinNetworkParams_capacity_priority(); + public static final double[] DEFAULT_PARAMS = {1784.558849944155, 1830.8929052688675, 1804.5291832103176, 1768.7316493589826, 1807.7341095728548, 1821.8375572610482, 1832.1935255586811, 1825.5607637595556, 1867.747319981965, 1842.681034301975, 1828.7885321870872, 1790.0922365782958, 1831.7157582674888, 1870.5949042571033, 1829.3910959294847, 1824.159345754533, 1868.4707639562555, 1869.808016358253, 1872.5522578258544, 1873.653837358919, 1850.600270571979, 1845.8058578572995, 1849.5222861330296, 1876.0267763817653, 1864.8973689905315, 1854.1365559121793, 1873.2206745552148, 1870.92499491686, 1860.574762365022, 1846.1454386598853, 1839.7098668446201, 1871.5515459936605, -57.18489544158277, -17.359064471674806, -40.07905065168397, -73.30419634435927, -38.201982923234986, -25.50887908753872, -15.503027314677803, -21.947521817107393, 10.307151403755647, -6.749748842792816, -19.730003061930287, -54.07966862269765, -16.61849747003284, 18.372733490384775, -18.71069377325524, -23.40693725585896, 14.725749803229801, 0.1758366318822235, 18.57679718017563, 19.620956857960564, 20.012037059172915, 21.125773639975385, 1.3440890924702367, -3.9683379950886484, 11.75415244286853, 3.5694801624303576, 20.62400785338186, 21.36201712259409, 13.718176619131293, 6.943735753554272, -9.423799846548532, 19.23371173585533, -51.466407827823616, -15.623158940333852, -36.071146518640184, -65.97377642248426, -34.381784207934196, -19.47828015621573, -15.125924370532836, -21.16934262901127, 14.779192799654437, -6.074774264366087, -17.392439489925557, -48.67170346214613, -14.956647494446905, 16.535460691780795, -16.839624429161315, -18.727267049901343, 14.578570094997843, 14.88403979918179, 17.963724674535634, 19.013195970676055, -7.263400666216611, 4.598911265055178, -3.571504369882068, 10.578737389712842, 2.4286791549719466, 13.709343193717206, 18.561606632448413, 19.225815440852234, 12.34635945404626, 6.249362703637171, -8.481420098354688, 17.310340086316657, -46.31976481823201, -14.060842045802602, -32.46403275740757, -59.37640093420302, -30.94360527697041, -21.321045705704236, -11.7079213832932, -17.720048958747007, -43.80453165690059, -13.51682823181143, -22.712117111499126, 10.128186564445366, 15.51705668676456, -12.574940326301785, 14.140512893352033, -6.716997862316084, 17.51069934844953, 15.800297366117304, 11.810906518634745, -16.866038041024748, -7.633277745497601, 15.579306364874345, 17.111877309571845, 1.0887118500753805, -1.4521842989237632, 9.640911420445843, 2.8912787221925567, 16.705445953944764, 17.303234145001436, 11.202808916303784, 5.7072502466139765, -15.699021609371304, -43.56260977285868, -13.688370154617099, -31.7223920738912, -53.438760553343656, -29.94112315586601, -15.187837827700879, -20.270623270231773, -11.743436630640979, -17.73710457920756, 8.029833560811731, -22.80115655755949, -1.4030126896607413, -1.2102368507380459, -15.710563671845462, -39.424080345516664, -12.109300212486025, -17.93203307037315, 9.788593432030074, 4.623138921986039, 15.717805133898773, 10.022752692265918, 13.729089529643339, 14.947556118881451, -0.48485776148331716, -2.207575207971871, -3.1911242312472186, 18.328467129793747, 8.584146436489233, 14.40477243795604, 2.7515823725766753, -8.310611113571305, 12.917565268107802, -39.206349901740815, -12.319533270811341, -28.550153786398972, -48.09488530085633, -25.921313297634807, -28.123412426757433, -10.000248199527539, -5.93594884304195, -14.40374811682427, -35.481670503161745, -10.974805093911886, -18.628974014795375, 8.185302305801365, 12.908298937126325, -11.212752045631088, 13.090445229081064, -9.485508371275102, 3.75758088654144, 12.0845593543418, 13.364792861428445, 9.373290782727441, -15.646685387233427, -6.038888808802302, 12.729619343605636, 13.905934085351767, -6.019358786305765, 0.08127218327038643, -3.29265963781402, 9.51806518964584, 14.560549058499337, 3.4608163614874314, -12.691647159924507, -35.285715121045406, -10.053967991249142, -24.071067073276925, -43.28539751623427, -24.666395092691353, -12.292905614299679, -16.50993180340701, -9.362993362421665, -14.456094987109715, 6.865734031939998, -19.458111530303476, -0.1410496480644644, -1.5574553044632475, -12.86213353103227, -31.933504173641662, -9.800889582914373, -14.667337539990479, 9.306893415306481, 12.751318677383528, 8.231911055431047, 8.720360543351362, 12.314289033071198, 12.164707993289838, -5.417422864359885, 11.250570411682004, -7.934281764983652, 2.4964421137027735, 6.578712355231113, 2.3298921850578114, -6.988433361518439, 7.67525475003819, 11.631069984314518, -31.757143923912402, -9.902476973574304, -23.288031053022735, -38.95685747717177, -21.75651819978419, -8.500233921316127, -11.31268624493115, -2.9287138849878644, -17.088010658441476, -12.137839452793598, 6.17916052982692, -10.477245845328154, -4.522289688321925, -28.740154389880498, -8.820800776762027, 9.639365904248912, -13.65514311195309, -5.288024066403768, 1.5502944650882042, 4.140257355210953, 11.291205214587016, 7.802434352393243, -5.3902400372819885, 7.871112621723487, 11.082910366917503, 9.329336533700163, 12.461047489335604, 13.191192971065059, 12.001343491679442, 8.952997879938426, 9.990543979432637, 5.122801722147098, -34.61460050142692, -25.729385686700823, -8.058323627546628, -19.62199051884229, -35.06116961096083, -19.58086595978033, -3.5985355374730044, -9.046118304445326, -10.590178881977096, 5.561244501573956, -8.743713491256722, -25.86613705589612, -7.9387207061168255, 8.675429361606383, -12.289628786664188, -20.26394914717879, -2.9970140657420132, 6.588479974602385, -13.15249721984825, 10.531858412290774, 2.59501552742958, -3.538878148090293, -5.687280303291236, 4.0828702784579445, 0.7814845122057373, 7.714831390123973, 11.024585142116791, 11.626778205468213, 10.583882332943086, 11.019391975197259, 8.795282269564517, 5.363704983168496, -25.72328593312946, -7.958144531249919, -18.997028952858493, -31.555053888304585, -17.622779741627603, -6.66471655646728, -10.38493535224562, -8.207144702687565, -1.726645635481787, -14.368668147242236, -9.922062857629339, -3.2483061362754926, 10.007991281508922, -8.600258993056956, -23.27952497209776, -7.144848635804326, 7.807886386082008, -11.060665931522326, -4.765558855288945, 1.1209094612772288, 3.334313826436439, 7.112893287892212, -5.448188175201096, 6.185449775505031, 9.069639069210645, 7.350902971461792, 10.210313146401642, 10.506400551106498, 9.919775833672025, 7.302197899260218, 8.984404262360844, 3.8840907317768094, -27.590622647192863, -18.77111532437583, -6.135894238153995, -15.862400347600062, -28.346962326049766, -9.913214334054507, -18.221627692634193, 0.34888191490758674, -9.83420987701368, 3.3999120867317907, -6.929451707681259, 3.5053078855313906, -7.144740104352948, -20.949937799626696, -6.58826722259512, 6.106292315382221, -11.117858681604192, -5.57483017255657, 7.520862152185206, 7.835056874665639, 3.416171644944263, -7.275462899490776, 10.357494679967845, -0.7513902534482945, 0.5723633475668971, 12.028349682092468, 5.550243087617454, 9.421083268669838, 0.6836590880968788, 2.000605363257019, 7.975300867931096, 6.096248247782362, -20.67831335856107, -5.522304760614932, -14.296011075471453, -25.512266891479452, -17.61957328414869, -11.129946174775569, 0.2076942070741811, -6.271226198176444, 6.918843266522088, -6.1165610073010726, -8.088270912399265, -4.194184108543013, 7.388145569020615, -0.8899859495160222, -8.176156366822026, -18.85494434703437, -5.929440413665676, 6.048698346676951, -9.561846109137745, -6.341731463114101, 5.934179811702621, 6.929342509354964, 3.0745545126106553, -6.547916375903597, 2.7452563271401504, 6.471299326285588, 1.800544864984088, 7.177771104725368, 0.6152933133032776, 8.843233726582527, -2.2687866396514775, 5.353113233867606, -18.610481937662634, -5.54571600232797, -13.89756771596257, -22.961040084838828, -15.8576160297389, -10.75318632724417, 1.7081953606006488, -4.546029370701968, -7.325948271845615, 3.30180350731126, -13.534218507766244, 3.336341000794995, -6.367155408107815, -16.96944949063344, -5.336496447753811, 4.992325275545575, -9.04988815799348, -2.7769996032710047, -24.180264602660657, -3.915222463607352, 3.957165926725396, -10.347333971220541, 11.522781956370052, 0.6655278907565016, -6.104171059926151, 7.867129843139456, 1.422742796560008, 8.916945355379847, 7.919456340937178, 5.039728430729934, 4.150706550729004, 6.746581329203429, -16.74943443196602, -4.415502805709739, -11.65248124373574, -20.664935609181683, -14.066702310174463, -6.064220343844052, 5.581105925625603, -4.182324150146668, -5.949056452902873, -6.300581539303698, 2.9716230431915136, -12.1807964859004, -4.54163452754153, -15.27250416148749, -4.802846995544338, 4.944596040621965, -7.783273947379098, -2.4992995700831386, -21.762238403319834, 2.952569349496006, -9.312600771147299, 10.37050384242337, 0.5989751388828902, -5.493753980000614, 7.080417166137504, 1.2804685088685088, 8.02525088557473, -1.881811005909918, 7.362809535998543, 4.65094944801793, 3.76413980059322, 6.004954771801874, -20.038170621317896, -10.45954706365383, -3.973952709833681, -11.049059610476329, -18.598442428588825, -13.897330044399173, 0.2933917297948682, -12.805108679746724, -3.211132194667485, -5.256412200051962, 0.9731080958303739, -7.850208235842243, -3.4467956741329178, 7.06049525174184, -5.13763199121836, -13.745253628817034, -4.322562121581936, 2.6820036496285766, 8.234509840934198, -6.209004496490426, -13.617436448096749, -6.041033922342031, 5.920065870132079, 5.12451950847147, 5.5873157012440435, 5.6014640608787065, -4.748811817784154, 6.558211869133665, 2.0197125254621358, -8.138147400991983, 3.1645556093751637, 6.192063282453066, -11.717106081008431, -25.60732184831464, -7.7723798392797905, 1.01282805559104, -17.12562698807805, -14.834338697705782, -7.950886277220267, -9.739068025100842, -3.5861785611575976, 3.2981033729840394, -8.73345534224234, -2.2434532969837973, -5.391891485479027, 3.162260802664174, 1.4477880427413812, -5.4933652480392094, 3.350949977669671, -6.596341942539365, -10.870090475410919, 1.9771269648781324, 0.22654421880826267, -10.725026735577806, 7.31982454073615, 2.096248064337794, 4.910068388532427, 5.614916637917186, -4.247553334602574, 5.277836936522187, 7.252863634799185, 0.9582524876249633, -0.8148955329257238, 5.9870378180574075, -16.813881037927136, -4.521286178707078, -9.042162585203565, -15.900191829681356, -10.970621817588567, -5.455732056283345, -3.146680813605711, 5.324378098447918, -2.5573159053470644, -19.856958435035434, -4.385289609961773, 3.4990547091162982, -7.409920585492279, -4.091715573829923, 2.106688527674029, -11.424523904973375, -3.2612041904448503, 3.4248417115404544, -5.990507662817762, -5.348856170018195, 3.820669199519474, 4.295916330887828, 1.6078951633158454, -2.7637686503271364, -11.122210161685544, 10.889223496221419, 6.686765444362752, 2.8403871898070387, 10.217211823096273, -0.5875965979129151, 2.6765980547513104, 3.13836910045307, -11.827513920084508, -2.945614562034521, -8.084292461792469, -14.310172654469767, -11.983445259093758, -11.260831331718615, -11.424803647654054, -3.2236558972296105, 3.469151775202088, -2.711626819749924, 5.670903410911337, -3.342056895168909, -4.2017727335156065, 2.883060709196615, -10.23741399383497, 5.489948631286142, -3.895106342502798, -10.282071630304074, -2.935083737563991, 3.38962170031788, -5.152816149929797, -5.436749084613586, 3.2731292801845067, 3.875077115632049, 1.4471056031445715, -5.547431667901539, 10.127438450622174, 0.6828917341685518, 3.6008904914081237, 10.00760292510948, 4.887325692353337, 1.2897144009090205, -14.147441816175828, -5.061371539786966, -12.879155239740967, -9.29929086613631, -10.05797872400236, -3.8496480162000637, 5.855104891102724, -2.7980730622386916, -2.725503833618285, -3.8442379474421275, -3.3879892587426377, 2.1107703562037994, -3.833955340463529, 4.372723919710894, -3.6331847444278615, -12.886781788662853, -0.5555291485334781, 2.0040143840371174, 3.7789777047178563, 1.3023950271604972, -4.992688545655234, 5.942222918929252, 1.9656458479421008, -8.13445182093832, 6.193787588119388, 4.481517680508207, 6.4843154999060095, 4.897214285278128, 5.348573771990016, 0.21884484668789073, -3.6938318405146577, 3.942616215260472, -9.944789080556106, -3.6789828957235535, -11.591239688873252, -10.35163907623243, -9.195294105789442, -1.0783883611889888, -3.569430372082186, -8.099689530081955, 3.9438177280423634, -2.9387393703972013, -8.87046884710095, -2.2581798927306167, 4.674238421086407, -2.6937315042053247, -11.59810369707034, -13.300464378024802, -13.0693387037002, -0.7680791383468066, 5.496133083752156, -9.438019694548016, 4.725185720269894, -2.336881865858882, 8.39464343351448, 0.22220373722656694, 6.212470767974613, -2.827703883647719, 1.8602584696253086, 4.450312823038881, 5.89612065666575, 2.0897729441664326, -5.46232343034289, 3.2340884950083906, -14.28750740127525, -6.581407905861005, -2.171573778183913, -6.96144117832163, -10.44547185906152, 0.5945838058467843, -17.791310091971873, -2.7050324430321906, -19.15611675444058, -1.266836496928772, -8.54154134974732, -4.42744124672586, 0.754631769399277, 3.2842118267953424, -18.903706493377268, -2.8339919757842016, -5.880598064422128, 5.7916415986016965, 5.507174728393315, -3.3904829451475473, 7.135540578024386, -3.6638471557752186, 0.747308494372234, 3.009505719045748, 2.828908263191521, -5.3445023738012045, 4.397636028153488, 1.5638551179018088, 0.6269053632763011, -10.135163370131968, -1.8206693538025993, 3.6952422783103964, -12.858756680297468, -5.923267204143205, -3.1418446389214862, -9.400924697276244, 0.5351253021236397, -16.012179513930796, -3.478398017191047, -2.7630266854166528, -9.291039171218454, -2.5696460086105075, 2.3658392064810996, -0.4040489258686085, -5.225530403964458, -2.634251604971922, -0.5286151333408158, 6.92642336338104, -11.60124794799511, 2.5487954922513145, 2.170472672360377, 2.8245682764923075, -2.9468531025258495, 3.1863857660288786, -12.19632655596685, -2.4234967663851084, -1.5973790673165764, 0.8173552994847895, 7.236119735871904, -0.3897771892542811, -8.86126264865545, 4.579548736164515, 3.802901045795991, 1.1714482887921327, -6.60826700782728, -14.352272923278424, -26.641052405947278, -18.2316500720973, -5.510110626743133, 0.47848138852546707, -2.174458925782502, -11.776919500031504, -3.671800365416145, 11.699602542545067, 1.6770787723643712, -5.171948556082316, -11.48882826915117, -0.514917012187992, -1.1812130691605127, 8.784045687719939, -0.5135408676128199, -2.725954604298525, -10.665136548463746, 2.6457319438030886, -1.7021494093902085, -4.174958588033615, 4.284146924802098, -1.7477920644256753, 3.888514034883685, 0.7034713196348655, 3.063294603744018, -1.7151584019780355, -8.7488754456128, 7.889137787196531, -0.09847057436871626, 2.11523841851871, -3.01629928573278, -7.210428581961996, -7.7518377379174215, -1.9999283105612387, -10.132444578170297, -3.4151579100995586, -8.138074321313047, 0.9306800843739588, 1.289868556671502, 3.299914258658526, -4.612537727263889, 2.303500373311613, -2.4039496912156366, -6.342280738466806, -9.810904897053637, -0.16052165582736094, 5.264380035400206, -0.20690860043798392, 6.26162879814435, -11.180613416262693, -2.318390603841514, 2.733295928720378, -4.248943957624434, 3.040877318877804, -3.261269751570296, 1.1634467488277946, -2.785550423383553, 2.904141507110519, 0.09120287135213434, -9.356448570250986, 5.3916392204977015, 2.368985000910525, -1.8435906355303346, -6.199796699082284, -0.5528999100239356, -9.788092209994494, 3.2533188048854313, -2.180410480085067, 7.936047851500662, -0.8645828539589724, 0.6116390282606511, -10.315216006323947, -4.369450099128123, -6.924274740642758, -1.2678726893454566, -6.689580948773269, 1.900705963748929, -4.15128386277382, 2.0731504312740197, -2.163554666917393, -5.708052331833156, -0.11514047698252515, 5.635465770200813, -10.062552129200185, -2.086551549157208, 2.4181465033007057, -3.8240496839322695, 2.736789598459992, -2.935142831702882, 0.4044684845208729, 4.81426191284824, 0.08208259105652392, -8.42080386733961, 2.362830542402561, -5.588761830873007, -1.6016004856188992, -6.74870962084637, -9.59380345439863, 2.2119471009337195, -0.10251853131630007, 0.9222886176727105, -13.727883659362313, -1.4110191173946658, 4.294393556843216, -4.453205353941985, -2.063938896856162, -12.875616525502934, -3.751165376504063, 0.7424169648515107, 2.6104853887292223, -12.863758385397881, -8.52183772520542, 1.6826581212380471, -5.852010551452158, 5.116416854858165, -10.373596121830937, 5.068419641494431, -3.0818050516434132, 7.42883612823459, -4.756219110488592, 3.235382464606626, -1.1464614704356098, 1.6327569045151151, -0.07576610500573873, -5.928730958967597, 1.9324296760134996, -7.450051165262538, -1.91935172796245, -6.0738385701074975, -8.634423099517344, -9.438822266390321, -0.13016080730197502, -0.4456294391218806, 7.783895106196164, 0.047060083881501416, -1.8671811221178463, -4.946296185818412, -6.247995811461923, 4.353436019049537, 0.49826680755567265, -5.4963131966854455, -0.6530173841014943, -2.5999328868386735, 5.312618673642078, -9.729634731541092, 0.27159788214338554, 1.300460088928351, -3.408292705272476, 1.2183339687761918, 6.0689160917674165, -4.987628924340623, 2.9356729087812994, -4.006415236729473, 7.726040536811752, 0.914521550195101, 2.09729225446855, 2.847386104996508, 0.18406074453925683, -6.956327066728836, -4.098922836431942, -0.6146483053842542, -5.466454748586755, -4.317353138943353, 7.568507103686212, -2.174062747450296, 1.4762550291830203, -1.1857931513220563, -1.0999289772139615, -4.91994763046257, -8.886626066112377, 2.70708270483609, -5.486804828201929, -0.8454688744903378, -1.9105707812880703, -9.253325580249697, -18.99214809036207, 3.3707785639259926, -9.011613361524082, 0.01894460679658273, -7.337214029672724, -1.2099871419267636, -0.3011372512577632, 8.803614607192175, -1.4551474977895686, 4.322056138813346, -4.451878321510948, 4.83802136500276, 1.190564217916063, 2.798257297070578, 1.395077473238109, -6.260694364424366, -1.5012302517010276, -4.919809311373224, -7.726710029601572, -8.129152291141654, -0.9934375935383358, 1.3604333604470127, -1.6122426353650063, -12.810343257358639, 0.02143761191709878, 3.3973007160421194, -9.99544742679548, -1.754444351196137, -5.453410635980736, 0.4003675774532769, 1.914201899096211, -13.596162494161437, -4.984097171782968, -2.27750168495427, 4.531981680898809, -4.813188164519881, 4.448519735128775, -7.48002493034666, 3.7581452858887765, 4.56694542514899, -2.359542507529186, 2.7785130021784497, 7.451753359707628, -3.7868189801571357, 0.40383865522667595, -3.0757206709628253, 1.3389018452773531, -4.037939370372506, -0.8752348278524773, -4.427828300342768, -6.954038845061778, 2.0131984259449727, 0.22010389752041137, 1.8914374691502918, -11.91744676208448, -2.052113016584228, 3.9217010922836666, -1.1604976957440196, 3.737610843699495, -7.365258684341356, -3.011491614263159, -7.653831594540154, 2.3599516641437606, -1.3494906416926695, -4.949166366939997, -7.994240085427975, -18.265427700042245, 2.1636802636733194, -3.7004002398249494, -0.6991424439391628, 7.434039575655856, -4.712554667362432, 6.544101005838098, -3.4754724874946024, 2.6571651597211634, -5.18482441286206, 1.6159972424387299, 0.2750664188518197, 1.2409410470767468}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 148.0435475514987) / 111.07058642831188; + data[1] = (ft.getDouble("speed") - 14.66753793018379) / 5.4539706917562265; + data[2] = (ft.getDouble("num_lanes") - 1.2443567287529296) / 0.6166684044913211; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var0 = params[0]; + } else { + if (input[1] > 2.1493445293967057) { + var0 = params[1]; + } else { + var0 = params[2]; + } + } + } else { + var0 = params[3]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var0 = params[4]; + } else { + if (input[0] <= -0.4650065261412312) { + if (input[0] <= -1.0919501863779077) { + var0 = params[5]; + } else { + var0 = params[6]; + } + } else { + var0 = params[7]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[8]; + } else { + var0 = params[9]; + } + } else { + var0 = params[10]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var0 = params[11]; + } else { + var0 = params[12]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var0 = params[13]; + } else { + var0 = params[14]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0763294891637105) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[15]; + } else { + var0 = params[16]; + } + } else { + if (input[5] > 1.5000000000000002) { + var0 = params[17]; + } else { + var0 = params[18]; + } + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[19]; + } else { + if (input[0] <= -0.2549149010730493) { + if (input[5] > 2.5000000000000004) { + var0 = params[20]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[21]; + } else { + if (input[0] <= -1.1679829171985976) { + var0 = params[22]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[23]; + } else { + var0 = params[24]; + } + } + } + } + } else { + if (input[5] > 1.5000000000000002) { + var0 = params[25]; + } else { + if (input[3] > 2.78) { + var0 = params[26]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[27]; + } else { + if (input[0] > 0.013923150117690459) { + var0 = params[28]; + } else { + var0 = params[29]; + } + } + } + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var0 = params[30]; + } else { + var0 = params[31]; + } + } + } + } + } + } + } + } + double var1; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 3.5000000000000004) { + var1 = params[32]; + } else { + if (input[1] > 2.1493445293967057) { + var1 = params[33]; + } else { + var1 = params[34]; + } + } + } else { + var1 = params[35]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var1 = params[36]; + } else { + if (input[0] <= -0.5459460465767554) { + if (input[0] <= -1.0919501863779077) { + var1 = params[37]; + } else { + var1 = params[38]; + } + } else { + var1 = params[39]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[40]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[41]; + } else { + var1 = params[42]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var1 = params[43]; + } else { + var1 = params[44]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var1 = params[45]; + } else { + var1 = params[46]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[47]; + } else { + var1 = params[48]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 2.5000000000000004) { + var1 = params[49]; + } else { + var1 = params[50]; + } + } else { + var1 = params[51]; + } + } else { + var1 = params[52]; + } + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[53]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.06683630464389478) { + if (input[5] > 2.5000000000000004) { + var1 = params[54]; + } else { + if (input[0] <= -1.1254874181490233) { + var1 = params[55]; + } else { + var1 = params[56]; + } + } + } else { + var1 = params[57]; + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[58]; + } else { + if (input[3] > 5.55) { + var1 = params[59]; + } else { + if (input[0] <= -0.4086009537798789) { + var1 = params[60]; + } else { + var1 = params[61]; + } + } + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var1 = params[62]; + } else { + var1 = params[63]; + } + } + } + } + } + } + } + } + double var2; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 3.5000000000000004) { + var2 = params[64]; + } else { + if (input[1] > 2.1493445293967057) { + var2 = params[65]; + } else { + var2 = params[66]; + } + } + } else { + var2 = params[67]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var2 = params[68]; + } else { + if (input[0] <= -0.028932480279761745) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[69]; + } else { + var2 = params[70]; + } + } else { + var2 = params[71]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[72]; + } else { + var2 = params[73]; + } + } else { + var2 = params[74]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var2 = params[75]; + } else { + var2 = params[76]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var2 = params[77]; + } else { + var2 = params[78]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.067326205466767) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[79]; + } else { + var2 = params[80]; + } + } else { + if (input[0] > 1.1622469692443789) { + var2 = params[81]; + } else { + var2 = params[82]; + } + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[83]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.06683630464389478) { + if (input[5] > 2.5000000000000004) { + if (input[0] <= -0.6950404245981435) { + var2 = params[84]; + } else { + var2 = params[85]; + } + } else { + if (input[0] <= -1.1254874181490233) { + var2 = params[86]; + } else { + var2 = params[87]; + } + } + } else { + if (input[5] > 1.5000000000000002) { + var2 = params[88]; + } else { + var2 = params[89]; + } + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[90]; + } else { + if (input[3] > 5.55) { + var2 = params[91]; + } else { + if (input[0] <= -0.4086009537798789) { + var2 = params[92]; + } else { + var2 = params[93]; + } + } + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var2 = params[94]; + } else { + var2 = params[95]; + } + } + } + } + } + } + } + } + double var3; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 3.5000000000000004) { + var3 = params[96]; + } else { + if (input[1] > 2.1493445293967057) { + var3 = params[97]; + } else { + var3 = params[98]; + } + } + } else { + var3 = params[99]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var3 = params[100]; + } else { + if (input[0] <= -0.6145960847659514) { + if (input[0] <= -1.0919501863779077) { + var3 = params[101]; + } else { + var3 = params[102]; + } + } else { + var3 = params[103]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var3 = params[104]; + } else { + var3 = params[105]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[106]; + } else { + var3 = params[107]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[108]; + } else { + var3 = params[109]; + } + } else { + if (input[6] > 3.5000000000000004) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[110]; + } else { + if (input[5] > 1.5000000000000002) { + var3 = params[111]; + } else { + var3 = params[112]; + } + } + } else { + var3 = params[113]; + } + } + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var3 = params[114]; + } else { + var3 = params[115]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[116]; + } else { + var3 = params[117]; + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[118]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.06683630464389478) { + if (input[5] > 2.5000000000000004) { + var3 = params[119]; + } else { + if (input[0] <= -1.1070306865702886) { + var3 = params[120]; + } else { + var3 = params[121]; + } + } + } else { + var3 = params[122]; + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var3 = params[123]; + } else { + if (input[3] > 5.55) { + var3 = params[124]; + } else { + if (input[0] <= -0.44663982739946606) { + var3 = params[125]; + } else { + var3 = params[126]; + } + } + } + } + } + } else { + var3 = params[127]; + } + } + } + } + } + } + } + double var4; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var4 = params[128]; + } else { + if (input[1] > 0.6211001600973801) { + var4 = params[129]; + } else { + var4 = params[130]; + } + } + } else { + var4 = params[131]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[0] <= -0.012186372603446412) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0054736464687632) { + var4 = params[132]; + } else { + var4 = params[133]; + } + } else { + if (input[0] <= -1.0997830431942488) { + var4 = params[134]; + } else { + var4 = params[135]; + } + } + } else { + var4 = params[136]; + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[137]; + } else { + if (input[0] <= -1.0054736464687632) { + var4 = params[138]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[139]; + } else { + if (input[0] <= -0.7265069011189619) { + var4 = params[140]; + } else { + var4 = params[141]; + } + } + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var4 = params[142]; + } else { + var4 = params[143]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[144]; + } else { + var4 = params[145]; + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0451781275722851) { + var4 = params[146]; + } else { + var4 = params[147]; + } + } else { + if (input[0] > 0.5140105430644301) { + var4 = params[148]; + } else { + var4 = params[149]; + } + } + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[150]; + } else { + if (input[0] <= -0.2549149010730493) { + if (input[5] > 2.5000000000000004) { + var4 = params[151]; + } else { + if (input[0] <= -1.1353910302156613) { + var4 = params[152]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[153]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[154]; + } else { + var4 = params[155]; + } + } + } + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[156]; + } else { + var4 = params[157]; + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var4 = params[158]; + } else { + var4 = params[159]; + } + } + } + } + } + } + } + double var5; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var5 = params[160]; + } else { + if (input[1] > 0.6211001600973801) { + var5 = params[161]; + } else { + var5 = params[162]; + } + } + } else { + var5 = params[163]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var5 = params[164]; + } else { + if (input[0] <= -0.6145960847659514) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.0997830431942488) { + var5 = params[165]; + } else { + var5 = params[166]; + } + } else { + var5 = params[167]; + } + } else { + var5 = params[168]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var5 = params[169]; + } else { + var5 = params[170]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var5 = params[171]; + } else { + var5 = params[172]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.6211001600973801) { + var5 = params[173]; + } else { + var5 = params[174]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var5 = params[175]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.38550753109721814) { + var5 = params[176]; + } else { + var5 = params[177]; + } + } else { + var5 = params[178]; + } + } + } else { + var5 = params[179]; + } + } + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var5 = params[180]; + } else { + var5 = params[181]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var5 = params[182]; + } else { + var5 = params[183]; + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var5 = params[184]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var5 = params[185]; + } else { + if (input[0] <= -0.2549149010730493) { + if (input[5] > 2.5000000000000004) { + var5 = params[186]; + } else { + if (input[0] <= -1.1904461100224721) { + var5 = params[187]; + } else { + var5 = params[188]; + } + } + } else { + if (input[3] > 2.78) { + var5 = params[189]; + } else { + var5 = params[190]; + } + } + } + } + } else { + var5 = params[191]; + } + } + } + } + } + } + } + double var6; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var6 = params[192]; + } else { + if (input[1] > 2.1493445293967057) { + var6 = params[193]; + } else { + var6 = params[194]; + } + } + } else { + var6 = params[195]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[0] <= -0.028932480279761745) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0054736464687632) { + var6 = params[196]; + } else { + var6 = params[197]; + } + } else { + if (input[0] <= -1.0997830431942488) { + var6 = params[198]; + } else { + var6 = params[199]; + } + } + } else { + var6 = params[200]; + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[201]; + } else { + if (input[0] <= -1.0054736464687632) { + var6 = params[202]; + } else { + if (input[0] <= -0.7265069011189619) { + var6 = params[203]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[204]; + } else { + var6 = params[205]; + } + } + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var6 = params[206]; + } else { + var6 = params[207]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.067326205466767) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[208]; + } else { + var6 = params[209]; + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[210]; + } else { + if (input[0] > 0.1521685712842615) { + var6 = params[211]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[212]; + } else { + var6 = params[213]; + } + } + } + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[214]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[215]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[216]; + } else { + if (input[0] <= -0.2549149010730493) { + if (input[5] > 2.5000000000000004) { + if (input[0] <= -0.764905906086427) { + var6 = params[217]; + } else { + var6 = params[218]; + } + } else { + var6 = params[219]; + } + } else { + var6 = params[220]; + } + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var6 = params[221]; + } else { + if (input[6] > 3.5000000000000004) { + var6 = params[222]; + } else { + var6 = params[223]; + } + } + } + } + } + } + } + } + double var7; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var7 = params[224]; + } else { + if (input[1] > 0.6211001600973801) { + var7 = params[225]; + } else { + var7 = params[226]; + } + } + } else { + var7 = params[227]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var7 = params[228]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[229]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + var7 = params[230]; + } else { + var7 = params[231]; + } + } else { + if (input[6] > 2.5000000000000004) { + var7 = params[232]; + } else { + var7 = params[233]; + } + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[234]; + } else { + if (input[5] > 1.5000000000000002) { + var7 = params[235]; + } else { + var7 = params[236]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var7 = params[237]; + } else { + var7 = params[238]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var7 = params[239]; + } else { + var7 = params[240]; + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[241]; + } else { + if (input[5] > 2.5000000000000004) { + var7 = params[242]; + } else { + var7 = params[243]; + } + } + } else { + if (input[6] > 3.5000000000000004) { + var7 = params[244]; + } else { + var7 = params[245]; + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[246]; + } else { + if (input[6] > 3.5000000000000004) { + var7 = params[247]; + } else { + var7 = params[248]; + } + } + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + if (input[3] <= -2.779999999999999) { + var7 = params[249]; + } else { + var7 = params[250]; + } + } else { + if (input[3] > 5.55) { + var7 = params[251]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[252]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var7 = params[253]; + } else { + if (input[5] > 1.5000000000000002) { + var7 = params[254]; + } else { + var7 = params[255]; + } + } + } + } + } + } + } + } + } + } + } + double var8; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + if (input[0] <= -0.35629187550063574) { + var8 = params[256]; + } else { + var8 = params[257]; + } + } else { + if (input[1] > 2.1493445293967057) { + var8 = params[258]; + } else { + var8 = params[259]; + } + } + } else { + var8 = params[260]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var8 = params[261]; + } else { + if (input[0] <= -0.6532651882443247) { + if (input[3] > 5.5550000000000015) { + var8 = params[262]; + } else { + var8 = params[263]; + } + } else { + var8 = params[264]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[265]; + } else { + var8 = params[266]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var8 = params[267]; + } else { + var8 = params[268]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var8 = params[269]; + } else { + var8 = params[270]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[271]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[272]; + } else { + var8 = params[273]; + } + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[274]; + } else { + if (input[0] <= -0.9076979855199544) { + var8 = params[275]; + } else { + if (input[0] > 0.7590799252952385) { + if (input[0] > 1.4158694709872839) { + var8 = params[276]; + } else { + var8 = params[277]; + } + } else { + if (input[0] <= -0.8718198999876337) { + var8 = params[278]; + } else { + var8 = params[279]; + } + } + } + } + } else { + if (input[3] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[280]; + } else { + if (input[0] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[281]; + } else { + var8 = params[282]; + } + } + } + } else { + if (input[3] > 5.55) { + var8 = params[283]; + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[284]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var8 = params[285]; + } else { + if (input[0] <= -0.16168589839119693) { + var8 = params[286]; + } else { + var8 = params[287]; + } + } + } + } + } + } + } + } + } + } + } + double var9; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var9 = params[288]; + } else { + if (input[1] > 0.6211001600973801) { + var9 = params[289]; + } else { + var9 = params[290]; + } + } + } else { + var9 = params[291]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var9 = params[292]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var9 = params[293]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + if (input[6] > 3.5000000000000004) { + var9 = params[294]; + } else { + var9 = params[295]; + } + } else { + var9 = params[296]; + } + } else { + if (input[6] > 2.5000000000000004) { + var9 = params[297]; + } else { + var9 = params[298]; + } + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + var9 = params[299]; + } else { + var9 = params[300]; + } + } else { + var9 = params[301]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var9 = params[302]; + } else { + var9 = params[303]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var9 = params[304]; + } else { + var9 = params[305]; + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var9 = params[306]; + } else { + if (input[5] > 2.5000000000000004) { + var9 = params[307]; + } else { + var9 = params[308]; + } + } + } else { + var9 = params[309]; + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var9 = params[310]; + } else { + if (input[6] > 3.5000000000000004) { + var9 = params[311]; + } else { + var9 = params[312]; + } + } + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + if (input[3] <= -2.779999999999999) { + var9 = params[313]; + } else { + var9 = params[314]; + } + } else { + if (input[3] > 2.78) { + var9 = params[315]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var9 = params[316]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var9 = params[317]; + } else { + if (input[5] > 1.5000000000000002) { + var9 = params[318]; + } else { + var9 = params[319]; + } + } + } + } + } + } + } + } + } + } + } + double var10; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 3.5000000000000004) { + if (input[6] > 4.500000000000001) { + var10 = params[320]; + } else { + var10 = params[321]; + } + } else { + if (input[1] > 2.1493445293967057) { + var10 = params[322]; + } else { + var10 = params[323]; + } + } + } else { + var10 = params[324]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[0] > 0.04764044756274465) { + var10 = params[325]; + } else { + if (input[0] <= -1.0608888576234519) { + if (input[6] > 2.5000000000000004) { + var10 = params[326]; + } else { + var10 = params[327]; + } + } else { + if (input[0] <= -0.953704765211337) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var10 = params[328]; + } else { + var10 = params[329]; + } + } else { + var10 = params[330]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var10 = params[331]; + } else { + var10 = params[332]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var10 = params[333]; + } else { + var10 = params[334]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var10 = params[335]; + } else { + var10 = params[336]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.067326205466767) { + if (input[6] > 2.5000000000000004) { + var10 = params[337]; + } else { + var10 = params[338]; + } + } else { + var10 = params[339]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[5] > 1.5000000000000002) { + var10 = params[340]; + } else { + var10 = params[341]; + } + } else { + if (input[0] <= -0.26387316835150837) { + if (input[0] <= -0.9633382787670667) { + var10 = params[342]; + } else { + if (input[0] <= -0.9202125498587063) { + var10 = params[343]; + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 2.5000000000000004) { + var10 = params[344]; + } else { + if (input[0] <= -0.8568744490507071) { + var10 = params[345]; + } else { + var10 = params[346]; + } + } + } else { + var10 = params[347]; + } + } + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + var10 = params[348]; + } else { + if (input[6] > 3.5000000000000004) { + var10 = params[349]; + } else { + var10 = params[350]; + } + } + } else { + var10 = params[351]; + } + } + } + } + } + } + } + } + } + double var11; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var11 = params[352]; + } else { + if (input[1] > 2.1493445293967057) { + var11 = params[353]; + } else { + var11 = params[354]; + } + } + } else { + var11 = params[355]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[5] > 3.5000000000000004) { + var11 = params[356]; + } else { + if (input[0] <= -0.4650065261412312) { + if (input[0] <= -1.067326205466767) { + var11 = params[357]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.8083917663426651) { + var11 = params[358]; + } else { + var11 = params[359]; + } + } else { + var11 = params[360]; + } + } else { + var11 = params[361]; + } + } + } else { + var11 = params[362]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 3.5000000000000004) { + var11 = params[363]; + } else { + var11 = params[364]; + } + } else { + if (input[0] <= -0.8132985559574994) { + var11 = params[365]; + } else { + var11 = params[366]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var11 = params[367]; + } else { + var11 = params[368]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var11 = params[369]; + } else { + var11 = params[370]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1567288125774178) { + if (input[6] > 2.5000000000000004) { + var11 = params[371]; + } else { + var11 = params[372]; + } + } else { + var11 = params[373]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[5] > 1.5000000000000002) { + var11 = params[374]; + } else { + var11 = params[375]; + } + } else { + if (input[0] <= -0.26387316835150837) { + if (input[5] > 2.5000000000000004) { + var11 = params[376]; + } else { + var11 = params[377]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 3.5000000000000004) { + var11 = params[378]; + } else { + var11 = params[379]; + } + } else { + var11 = params[380]; + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var11 = params[381]; + } else { + if (input[0] <= -0.028932480279761745) { + var11 = params[382]; + } else { + var11 = params[383]; + } + } + } + } + } + } + } + } + } + } + } + double var12; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var12 = params[384]; + } else { + if (input[1] > 0.6211001600973801) { + var12 = params[385]; + } else { + var12 = params[386]; + } + } + } else { + var12 = params[387]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[5] > 3.5000000000000004) { + var12 = params[388]; + } else { + if (input[0] <= -0.4152183672971324) { + if (input[0] <= -1.0997830431942488) { + var12 = params[389]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var12 = params[390]; + } else { + var12 = params[391]; + } + } + } else { + var12 = params[392]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var12 = params[393]; + } else { + if (input[0] <= -1.0054736464687632) { + var12 = params[394]; + } else { + if (input[0] <= -0.7265069011189619) { + var12 = params[395]; + } else { + var12 = params[396]; + } + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var12 = params[397]; + } else { + var12 = params[398]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var12 = params[399]; + } else { + var12 = params[400]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1437640840538188) { + var12 = params[401]; + } else { + var12 = params[402]; + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var12 = params[403]; + } else { + var12 = params[404]; + } + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var12 = params[405]; + } else { + if (input[0] <= -0.9998015777396888) { + var12 = params[406]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] > 0.7590799252952385) { + if (input[0] > 1.0732044934816052) { + var12 = params[407]; + } else { + var12 = params[408]; + } + } else { + if (input[0] > 0.4324407927701198) { + var12 = params[409]; + } else { + var12 = params[410]; + } + } + } else { + var12 = params[411]; + } + } + } + } else { + if (input[0] <= -0.26387316835150837) { + var12 = params[412]; + } else { + var12 = params[413]; + } + } + } else { + if (input[0] > 1.6590931800602189) { + var12 = params[414]; + } else { + var12 = params[415]; + } + } + } + } + } + } + } + } + double var13; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var13 = params[416]; + } else { + if (input[1] > 2.1493445293967057) { + var13 = params[417]; + } else { + var13 = params[418]; + } + } + } else { + var13 = params[419]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var13 = params[420]; + } else { + if (input[0] <= -0.6418760343676908) { + if (input[3] > 5.5550000000000015) { + if (input[6] > 3.5000000000000004) { + var13 = params[421]; + } else { + if (input[0] <= -0.8083917663426651) { + var13 = params[422]; + } else { + var13 = params[423]; + } + } + } else { + var13 = params[424]; + } + } else { + var13 = params[425]; + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var13 = params[426]; + } else { + if (input[0] <= -1.0054736464687632) { + var13 = params[427]; + } else { + var13 = params[428]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var13 = params[429]; + } else { + var13 = params[430]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var13 = params[431]; + } else { + var13 = params[432]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1437640840538188) { + var13 = params[433]; + } else { + var13 = params[434]; + } + } else { + var13 = params[435]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var13 = params[436]; + } else { + if (input[0] <= -0.9998015777396888) { + var13 = params[437]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] > 0.7590799252952385) { + if (input[0] > 1.0732044934816052) { + var13 = params[438]; + } else { + var13 = params[439]; + } + } else { + if (input[0] > 0.4324407927701198) { + var13 = params[440]; + } else { + var13 = params[441]; + } + } + } else { + var13 = params[442]; + } + } + } + } else { + if (input[3] > 0.000000000000000000000000000000000010000000180025095) { + var13 = params[443]; + } else { + if (input[0] <= -0.20485664371804221) { + var13 = params[444]; + } else { + var13 = params[445]; + } + } + } + } else { + if (input[0] > 1.6590931800602189) { + var13 = params[446]; + } else { + var13 = params[447]; + } + } + } + } + } + } + } + } + double var14; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 4.500000000000001) { + var14 = params[448]; + } else { + if (input[1] > 2.1493445293967057) { + if (input[2] > 3.657789591324548) { + var14 = params[449]; + } else { + var14 = params[450]; + } + } else { + var14 = params[451]; + } + } + } else { + var14 = params[452]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[453]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[454]; + } else { + if (input[3] > 7.22) { + var14 = params[455]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[456]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + var14 = params[457]; + } else { + var14 = params[458]; + } + } else { + var14 = params[459]; + } + } + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 3.5000000000000004) { + var14 = params[460]; + } else { + var14 = params[461]; + } + } else { + var14 = params[462]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var14 = params[463]; + } else { + var14 = params[464]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + if (input[3] <= -8.334999999999999) { + var14 = params[465]; + } else { + var14 = params[466]; + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[467]; + } else { + var14 = params[468]; + } + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 2.5000000000000004) { + var14 = params[469]; + } else { + var14 = params[470]; + } + } else { + var14 = params[471]; + } + } else { + var14 = params[472]; + } + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[473]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[474]; + } else { + if (input[3] > 5.55) { + var14 = params[475]; + } else { + var14 = params[476]; + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var14 = params[477]; + } else { + if (input[6] > 3.5000000000000004) { + var14 = params[478]; + } else { + var14 = params[479]; + } + } + } + } + } + } + } + } + } + double var15; + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.0608888576234519) { + if (input[2] > 2.036172539572266) { + var15 = params[480]; + } else { + var15 = params[481]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -0.764905906086427) { + var15 = params[482]; + } else { + var15 = params[483]; + } + } else { + if (input[6] > 4.500000000000001) { + var15 = params[484]; + } else { + if (input[0] <= -0.04252743866214669) { + if (input[5] > 1.5000000000000002) { + var15 = params[485]; + } else { + var15 = params[486]; + } + } else { + if (input[2] > 3.657789591324548) { + var15 = params[487]; + } else { + var15 = params[488]; + } + } + } + } + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var15 = params[489]; + } else { + var15 = params[490]; + } + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[0] <= -0.6418760343676908) { + var15 = params[491]; + } else { + var15 = params[492]; + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var15 = params[493]; + } else { + if (input[0] <= -0.8132985559574994) { + var15 = params[494]; + } else { + var15 = params[495]; + } + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var15 = params[496]; + } else { + var15 = params[497]; + } + } else { + if (input[6] > 3.5000000000000004) { + if (input[0] <= -0.764905906086427) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + var15 = params[498]; + } else { + var15 = params[499]; + } + } else { + if (input[0] > 0.8033760810842017) { + if (input[0] > 1.046374708064713) { + var15 = params[500]; + } else { + var15 = params[501]; + } + } else { + if (input[0] > 0.28082549531358736) { + var15 = params[502]; + } else { + var15 = params[503]; + } + } + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var15 = params[504]; + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var15 = params[505]; + } else { + if (input[0] <= -0.735600217652875) { + if (input[0] <= -1.1679829171985976) { + var15 = params[506]; + } else { + var15 = params[507]; + } + } else { + if (input[3] > 2.78) { + var15 = params[508]; + } else { + var15 = params[509]; + } + } + } + } else { + if (input[0] <= -0.9008554899102772) { + var15 = params[510]; + } else { + var15 = params[511]; + } + } + } + } + } + } + } + } + double var16; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 4.500000000000001) { + var16 = params[512]; + } else { + if (input[1] > 2.1493445293967057) { + var16 = params[513]; + } else { + var16 = params[514]; + } + } + } else { + var16 = params[515]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var16 = params[516]; + } else { + if (input[0] > 0.04764044756274465) { + var16 = params[517]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + var16 = params[518]; + } else { + var16 = params[519]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var16 = params[520]; + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.8205011829150545) { + var16 = params[521]; + } else { + var16 = params[522]; + } + } else { + if (input[0] <= -0.9869268820530593) { + var16 = params[523]; + } else { + var16 = params[524]; + } + } + } + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + var16 = params[525]; + } else { + var16 = params[526]; + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var16 = params[527]; + } else { + var16 = params[528]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var16 = params[529]; + } else { + var16 = params[530]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1567288125774178) { + if (input[6] > 2.5000000000000004) { + var16 = params[531]; + } else { + var16 = params[532]; + } + } else { + var16 = params[533]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[5] > 1.5000000000000002) { + var16 = params[534]; + } else { + if (input[0] <= -1.1154037404084463) { + var16 = params[535]; + } else { + var16 = params[536]; + } + } + } else { + if (input[0] <= -0.05382655970181116) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var16 = params[537]; + } else { + if (input[0] <= -0.09654714084380907) { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var16 = params[538]; + } else { + var16 = params[539]; + } + } else { + var16 = params[540]; + } + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + var16 = params[541]; + } else { + var16 = params[542]; + } + } else { + var16 = params[543]; + } + } + } + } + } + } + } + } + } + double var17; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var17 = params[544]; + } else { + if (input[1] > 0.6211001600973801) { + var17 = params[545]; + } else { + var17 = params[546]; + } + } + } else { + var17 = params[547]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[5] > 3.5000000000000004) { + var17 = params[548]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var17 = params[549]; + } else { + if (input[0] <= -0.764905906086427) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.0054736464687632) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var17 = params[550]; + } else { + var17 = params[551]; + } + } else { + if (input[0] <= -0.8568744490507071) { + var17 = params[552]; + } else { + var17 = params[553]; + } + } + } else { + if (input[0] <= -0.9470873516940833) { + var17 = params[554]; + } else { + var17 = params[555]; + } + } + } else { + var17 = params[556]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var17 = params[557]; + } else { + if (input[0] <= -1.0054736464687632) { + var17 = params[558]; + } else { + if (input[0] <= -0.8083917663426651) { + var17 = params[559]; + } else { + var17 = params[560]; + } + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var17 = params[561]; + } else { + var17 = params[562]; + } + } else { + if (input[3] <= -5.555) { + if (input[1] > 1.1299037743512046) { + var17 = params[563]; + } else { + var17 = params[564]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1567288125774178) { + if (input[5] > 1.5000000000000002) { + var17 = params[565]; + } else { + var17 = params[566]; + } + } else { + var17 = params[567]; + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[5] > 1.5000000000000002) { + var17 = params[568]; + } else { + var17 = params[569]; + } + } else { + if (input[0] <= -0.3721376548072567) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var17 = params[570]; + } else { + if (input[6] > 3.5000000000000004) { + var17 = params[571]; + } else { + if (input[0] <= -0.4002278999417212) { + var17 = params[572]; + } else { + var17 = params[573]; + } + } + } + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var17 = params[574]; + } else { + var17 = params[575]; + } + } + } + } + } + } + } + } + } + double var18; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 4.500000000000001) { + var18 = params[576]; + } else { + var18 = params[577]; + } + } else { + var18 = params[578]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + var18 = params[579]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var18 = params[580]; + } else { + if (input[0] <= -0.6475931195152501) { + if (input[3] > 5.5550000000000015) { + if (input[6] > 3.5000000000000004) { + var18 = params[581]; + } else { + if (input[0] <= -0.8083917663426651) { + var18 = params[582]; + } else { + var18 = params[583]; + } + } + } else { + var18 = params[584]; + } + } else { + var18 = params[585]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + var18 = params[586]; + } else { + var18 = params[587]; + } + } else { + if (input[2] > 2.036172539572266) { + var18 = params[588]; + } else { + if (input[3] <= -5.555) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 1.1299037743512046) { + var18 = params[589]; + } else { + var18 = params[590]; + } + } else { + var18 = params[591]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.1792370218197774) { + var18 = params[592]; + } else { + if (input[0] > 1.1622469692443789) { + var18 = params[593]; + } else { + var18 = params[594]; + } + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[5] > 1.5000000000000002) { + var18 = params[595]; + } else { + var18 = params[596]; + } + } else { + if (input[0] <= -0.9633382787670667) { + var18 = params[597]; + } else { + if (input[0] <= -0.9202125498587063) { + if (input[0] <= -0.9417754143128865) { + var18 = params[598]; + } else { + var18 = params[599]; + } + } else { + if (input[0] <= -0.8500769698595146) { + var18 = params[600]; + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var18 = params[601]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var18 = params[602]; + } else { + if (input[3] > 0.000000000000000000000000000000000010000000180025095) { + var18 = params[603]; + } else { + if (input[1] > 0.6211001600973801) { + var18 = params[604]; + } else { + var18 = params[605]; + } + } + } + } + } else { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var18 = params[606]; + } else { + var18 = params[607]; + } + } + } + } + } + } + } + } + } + } + } + } + double var19; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var19 = params[608]; + } else { + var19 = params[609]; + } + } else { + var19 = params[610]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[5] > 3.5000000000000004) { + var19 = params[611]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var19 = params[612]; + } else { + if (input[0] <= -0.6063130637647631) { + var19 = params[613]; + } else { + var19 = params[614]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var19 = params[615]; + } else { + if (input[0] <= -0.8132985559574994) { + var19 = params[616]; + } else { + var19 = params[617]; + } + } + } else { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var19 = params[618]; + } else { + var19 = params[619]; + } + } else { + if (input[3] <= -5.555) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 2.1493445293967057) { + var19 = params[620]; + } else { + var19 = params[621]; + } + } else { + var19 = params[622]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var19 = params[623]; + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var19 = params[624]; + } else { + if (input[0] <= -0.9076979855199544) { + if (input[0] <= -1.1254874181490233) { + var19 = params[625]; + } else { + var19 = params[626]; + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -0.6755032989757757) { + if (input[6] > 3.5000000000000004) { + var19 = params[627]; + } else { + if (input[0] <= -0.8568744490507071) { + var19 = params[628]; + } else { + var19 = params[629]; + } + } + } else { + if (input[0] <= -0.5995155845735706) { + var19 = params[630]; + } else { + var19 = params[631]; + } + } + } else { + var19 = params[632]; + } + } + } + } else { + if (input[0] <= -1.0540463620137748) { + var19 = params[633]; + } else { + if (input[0] > 0.1521685712842615) { + var19 = params[634]; + } else { + var19 = params[635]; + } + } + } + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var19 = params[636]; + } else { + if (input[0] <= -1.1154037404084463) { + var19 = params[637]; + } else { + var19 = params[638]; + } + } + } else { + var19 = params[639]; + } + } + } + } + } + } + } + double var20; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + if (input[0] <= -0.44663982739946606) { + var20 = params[640]; + } else { + var20 = params[641]; + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[642]; + } else { + var20 = params[643]; + } + } + } else { + var20 = params[644]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + if (input[3] > 8.335000000000003) { + var20 = params[645]; + } else { + var20 = params[646]; + } + } else { + var20 = params[647]; + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[648]; + } else { + var20 = params[649]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[650]; + } else { + if (input[2] > 2.036172539572266) { + var20 = params[651]; + } else { + if (input[0] > 0.8533893220207242) { + var20 = params[652]; + } else { + var20 = params[653]; + } + } + } + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + var20 = params[654]; + } else { + if (input[2] > 2.036172539572266) { + var20 = params[655]; + } else { + if (input[0] <= -0.8643021581006857) { + var20 = params[656]; + } else { + var20 = params[657]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[658]; + } else { + var20 = params[659]; + } + } else { + if (input[0] <= -1.084747559420353) { + var20 = params[660]; + } else { + if (input[5] > 1.5000000000000002) { + if (input[3] <= -0.000000000000000000000000000000000010000000180025095) { + var20 = params[661]; + } else { + var20 = params[662]; + } + } else { + var20 = params[663]; + } + } + } + } + } + } + } else { + if (input[3] <= -5.549999999999998) { + if (input[1] > 0.6211001600973801) { + var20 = params[664]; + } else { + var20 = params[665]; + } + } else { + if (input[0] > 0.4876309218323849) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[666]; + } else { + if (input[0] > 0.7204108218168651) { + var20 = params[667]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[668]; + } else { + var20 = params[669]; + } + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var20 = params[670]; + } else { + var20 = params[671]; + } + } + } + } + } + } + double var21; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + if (input[0] <= -0.44663982739946606) { + var21 = params[672]; + } else { + var21 = params[673]; + } + } else { + var21 = params[674]; + } + } else { + var21 = params[675]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[3] > 7.22) { + if (input[3] > 8.335000000000003) { + var21 = params[676]; + } else { + var21 = params[677]; + } + } else { + if (input[0] > 0.04764044756274465) { + var21 = params[678]; + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[3] > 5.5550000000000015) { + var21 = params[679]; + } else { + var21 = params[680]; + } + } else { + if (input[3] > 5.5550000000000015) { + if (input[5] > 2.5000000000000004) { + var21 = params[681]; + } else { + var21 = params[682]; + } + } else { + if (input[5] > 1.5000000000000002) { + var21 = params[683]; + } else { + var21 = params[684]; + } + } + } + } + } + } else { + if (input[2] > 2.036172539572266) { + var21 = params[685]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] > 2.611190431012018) { + var21 = params[686]; + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var21 = params[687]; + } else { + if (input[0] <= -0.953704765211337) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var21 = params[688]; + } else { + var21 = params[689]; + } + } else { + var21 = params[690]; + } + } else { + var21 = params[691]; + } + } + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var21 = params[692]; + } else { + if (input[3] <= -5.555) { + if (input[0] <= -0.9869268820530593) { + var21 = params[693]; + } else { + if (input[0] <= -0.7428928774473994) { + var21 = params[694]; + } else { + var21 = params[695]; + } + } + } else { + if (input[0] <= -1.0608888576234519) { + var21 = params[696]; + } else { + if (input[0] <= -0.9633382787670667) { + if (input[0] <= -1.024875722835677) { + var21 = params[697]; + } else { + var21 = params[698]; + } + } else { + if (input[0] <= -0.9202125498587063) { + if (input[0] <= -0.9417754143128865) { + var21 = params[699]; + } else { + var21 = params[700]; + } + } else { + if (input[0] <= -0.8002888110154157) { + var21 = params[701]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var21 = params[702]; + } else { + var21 = params[703]; + } + } + } + } + } + } + } + } + } + } + } + double var22; + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.0608888576234519) { + if (input[2] > 2.036172539572266) { + var22 = params[704]; + } else { + if (input[0] <= -1.1437640840538188) { + var22 = params[705]; + } else { + var22 = params[706]; + } + } + } else { + if (input[2] > 3.657789591324548) { + if (input[6] > 4.500000000000001) { + var22 = params[707]; + } else { + var22 = params[708]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[709]; + } else { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[710]; + } else { + if (input[5] > 1.5000000000000002) { + var22 = params[711]; + } else { + var22 = params[712]; + } + } + } + } + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -0.9998015777396888) { + var22 = params[713]; + } else { + var22 = params[714]; + } + } else { + var22 = params[715]; + } + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[0] <= -0.6999472142129779) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0054736464687632) { + var22 = params[716]; + } else { + var22 = params[717]; + } + } else { + if (input[0] <= -0.953704765211337) { + if (input[6] > 2.5000000000000004) { + var22 = params[718]; + } else { + var22 = params[719]; + } + } else { + var22 = params[720]; + } + } + } else { + var22 = params[721]; + } + } else { + if (input[3] <= -2.774999999999998) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[722]; + } else { + if (input[1] > 1.1299037743512046) { + var22 = params[723]; + } else { + var22 = params[724]; + } + } + } else { + if (input[0] > 0.6114260726653612) { + if (input[5] > 1.5000000000000002) { + if (input[0] > 2.0439835581045633) { + if (input[0] > 2.7525870014725196) { + var22 = params[725]; + } else { + var22 = params[726]; + } + } else { + var22 = params[727]; + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[728]; + } else { + var22 = params[729]; + } + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[730]; + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var22 = params[731]; + } else { + if (input[6] > 3.5000000000000004) { + if (input[0] <= -0.8773569194612542) { + var22 = params[732]; + } else { + if (input[0] > 0.3531668798185302) { + var22 = params[733]; + } else { + var22 = params[734]; + } + } + } else { + var22 = params[735]; + } + } + } + } + } + } + } + double var23; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 2.1493445293967057) { + var23 = params[736]; + } else { + var23 = params[737]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[5] > 3.5000000000000004) { + var23 = params[738]; + } else { + var23 = params[739]; + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.1353910302156613) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[740]; + } else { + var23 = params[741]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[742]; + } else { + if (input[6] > 3.5000000000000004) { + var23 = params[743]; + } else { + if (input[0] > 0.1827797358538701) { + var23 = params[744]; + } else { + var23 = params[745]; + } + } + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[0] <= -0.7856584750078822) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[746]; + } else { + var23 = params[747]; + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[748]; + } else { + if (input[0] <= -0.7497353730570767) { + var23 = params[749]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -0.22731983654191681) { + var23 = params[750]; + } else { + var23 = params[751]; + } + } else { + if (input[0] <= -0.6333229148555943) { + var23 = params[752]; + } else { + var23 = params[753]; + } + } + } + } + } + } else { + if (input[0] <= -0.953704765211337) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[754]; + } else { + var23 = params[755]; + } + } else { + if (input[12] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[756]; + } else { + var23 = params[757]; + } + } + } + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[758]; + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[759]; + } else { + if (input[3] <= -0.000000000000000000000000000000000010000000180025095) { + var23 = params[760]; + } else { + if (input[0] > 0.4876309218323849) { + if (input[0] > 0.7204108218168651) { + if (input[0] > 1.6173629601248845) { + if (input[0] > 2.174261073199339) { + var23 = params[761]; + } else { + var23 = params[762]; + } + } else { + var23 = params[763]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var23 = params[764]; + } else { + var23 = params[765]; + } + } + } else { + if (input[3] > 5.55) { + var23 = params[766]; + } else { + var23 = params[767]; + } + } + } + } + } + } + } + } + double var24; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[1] > 2.913008332411905) { + var24 = params[768]; + } else { + var24 = params[769]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[770]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.0300526109614196) { + var24 = params[771]; + } else { + if (input[0] <= -0.8083917663426651) { + var24 = params[772]; + } else { + var24 = params[773]; + } + } + } else { + if (input[0] <= -0.38550753109721814) { + var24 = params[774]; + } else { + var24 = params[775]; + } + } + } else { + if (input[0] <= -0.953704765211337) { + var24 = params[776]; + } else { + if (input[0] <= -0.7856584750078822) { + var24 = params[777]; + } else { + var24 = params[778]; + } + } + } + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.1353910302156613) { + if (input[5] > 1.5000000000000002) { + var24 = params[779]; + } else { + var24 = params[780]; + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[781]; + } else { + var24 = params[782]; + } + } else { + if (input[5] > 1.5000000000000002) { + if (input[0] <= -0.7856584750078822) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[783]; + } else { + var24 = params[784]; + } + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[785]; + } else { + if (input[0] <= -0.7497353730570767) { + var24 = params[786]; + } else { + var24 = params[787]; + } + } + } + } else { + if (input[0] <= -0.953704765211337) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[788]; + } else { + var24 = params[789]; + } + } else { + if (input[12] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[790]; + } else { + var24 = params[791]; + } + } + } + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[792]; + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[793]; + } else { + if (input[3] <= -0.000000000000000000000000000000000010000000180025095) { + var24 = params[794]; + } else { + if (input[0] > 0.4876309218323849) { + if (input[0] > 0.7204108218168651) { + if (input[0] > 0.9675059428794858) { + var24 = params[795]; + } else { + var24 = params[796]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var24 = params[797]; + } else { + var24 = params[798]; + } + } + } else { + var24 = params[799]; + } + } + } + } + } + } + } + double var25; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var25 = params[800]; + } else { + var25 = params[801]; + } + } else { + var25 = params[802]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[803]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[804]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[805]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[3] > 7.22) { + if (input[3] > 8.335000000000003) { + var25 = params[806]; + } else { + var25 = params[807]; + } + } else { + var25 = params[808]; + } + } else { + if (input[0] <= -1.024875722835677) { + var25 = params[809]; + } else { + var25 = params[810]; + } + } + } + } + } + } else { + if (input[2] > 2.036172539572266) { + var25 = params[811]; + } else { + if (input[5] > 1.5000000000000002) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[812]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0540463620137748) { + var25 = params[813]; + } else { + if (input[0] > 0.1521685712842615) { + var25 = params[814]; + } else { + var25 = params[815]; + } + } + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[816]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[817]; + } else { + if (input[0] <= -0.3311727139861627) { + var25 = params[818]; + } else { + if (input[0] > 2.7525870014725196) { + var25 = params[819]; + } else { + if (input[0] > 2.0439835581045633) { + var25 = params[820]; + } else { + if (input[0] > 1.707981010534623) { + var25 = params[821]; + } else { + if (input[0] > 1.4158694709872839) { + var25 = params[822]; + } else { + if (input[0] > 0.6288024102004627) { + var25 = params[823]; + } else { + if (input[0] > 0.5027564384432502) { + var25 = params[824]; + } else { + if (input[0] > 0.3655013784833432) { + var25 = params[825]; + } else { + if (input[0] > 0.2400856365849169) { + var25 = params[826]; + } else { + var25 = params[827]; + } + } + } + } + } + } + } + } + } + } + } + } + } + } else { + if (input[3] <= -5.549999999999998) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var25 = params[828]; + } else { + if (input[0] > 0.19137787178445137) { + var25 = params[829]; + } else { + var25 = params[830]; + } + } + } else { + var25 = params[831]; + } + } + } + } + } + double var26; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[6] > 4.500000000000001) { + var26 = params[832]; + } else { + var26 = params[833]; + } + } else { + var26 = params[834]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[835]; + } else { + if (input[0] <= -0.6999472142129779) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0054736464687632) { + var26 = params[836]; + } else { + var26 = params[837]; + } + } else { + if (input[0] <= -0.953704765211337) { + if (input[6] > 2.5000000000000004) { + var26 = params[838]; + } else { + var26 = params[839]; + } + } else { + var26 = params[840]; + } + } + } else { + var26 = params[841]; + } + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.1567288125774178) { + var26 = params[842]; + } else { + if (input[2] > 3.657789591324548) { + var26 = params[843]; + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[844]; + } else { + if (input[0] > 0.14010417113035675) { + if (input[0] > 1.8716156917265756) { + var26 = params[845]; + } else { + var26 = params[846]; + } + } else { + var26 = params[847]; + } + } + } else { + if (input[0] <= -1.0608888576234519) { + if (input[0] <= -1.084747559420353) { + if (input[0] <= -1.1070306865702886) { + var26 = params[848]; + } else { + var26 = params[849]; + } + } else { + var26 = params[850]; + } + } else { + if (input[0] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[851]; + } else { + var26 = params[852]; + } + } + } + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[853]; + } else { + if (input[0] <= -1.1070306865702886) { + if (input[0] <= -1.1679829171985976) { + var26 = params[854]; + } else { + var26 = params[855]; + } + } else { + if (input[0] <= -1.084747559420353) { + var26 = params[856]; + } else { + if (input[0] <= -0.8264883665735221) { + var26 = params[857]; + } else { + if (input[0] <= -0.8083917663426651) { + var26 = params[858]; + } else { + if (input[5] > 1.5000000000000002) { + if (input[0] <= -0.08538306905959889) { + var26 = params[859]; + } else { + var26 = params[860]; + } + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[861]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var26 = params[862]; + } else { + var26 = params[863]; + } + } + } + } + } + } + } + } + } + } + } + double var27; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[0] <= -0.8264883665735221) { + var27 = params[864]; + } else { + if (input[2] > 3.657789591324548) { + var27 = params[865]; + } else { + var27 = params[866]; + } + } + } else { + var27 = params[867]; + } + } else { + if (input[1] <= -0.9071442092019456) { + if (input[0] <= -1.0608888576234519) { + var27 = params[868]; + } else { + if (input[0] <= -0.953704765211337) { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[869]; + } else { + var27 = params[870]; + } + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[871]; + } else { + if (input[5] > 1.5000000000000002) { + var27 = params[872]; + } else { + if (input[3] > 5.5550000000000015) { + var27 = params[873]; + } else { + var27 = params[874]; + } + } + } + } + } + } else { + if (input[3] <= -5.549999999999998) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[875]; + } else { + if (input[1] > 2.1493445293967057) { + var27 = params[876]; + } else { + if (input[3] <= -5.835) { + var27 = params[877]; + } else { + var27 = params[878]; + } + } + } + } else { + if (input[2] > 2.036172539572266) { + var27 = params[879]; + } else { + if (input[5] > 1.5000000000000002) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[880]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -0.8944631584854472) { + var27 = params[881]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[882]; + } else { + var27 = params[883]; + } + } + } else { + if (input[0] > 0.6114260726653612) { + if (input[0] > 1.0732044934816052) { + var27 = params[884]; + } else { + if (input[8] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] > 0.8033760810842017) { + var27 = params[885]; + } else { + var27 = params[886]; + } + } else { + var27 = params[887]; + } + } + } else { + if (input[0] > 0.5496635465043274) { + var27 = params[888]; + } else { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[889]; + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var27 = params[890]; + } else { + if (input[0] <= -1.1904461100224721) { + var27 = params[891]; + } else { + if (input[0] <= -1.0997830431942488) { + var27 = params[892]; + } else { + var27 = params[893]; + } + } + } + } + } + } + } + } + } else { + if (input[3] > 5.55) { + var27 = params[894]; + } else { + var27 = params[895]; + } + } + } + } + } + } + double var28; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[0] <= -0.8264883665735221) { + var28 = params[896]; + } else { + var28 = params[897]; + } + } else { + var28 = params[898]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[899]; + } else { + if (input[0] <= -0.5995155845735706) { + if (input[7] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -1.0054736464687632) { + var28 = params[900]; + } else { + var28 = params[901]; + } + } else { + var28 = params[902]; + } + } else { + var28 = params[903]; + } + } + } else { + if (input[6] > 2.5000000000000004) { + if (input[0] <= -1.1353910302156613) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[904]; + } else { + var28 = params[905]; + } + } else { + if (input[3] <= -2.774999999999998) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[906]; + } else { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[907]; + } else { + var28 = params[908]; + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + if (input[6] > 3.5000000000000004) { + if (input[1] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[909]; + } else { + var28 = params[910]; + } + } else { + var28 = params[911]; + } + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[5] > 1.5000000000000002) { + var28 = params[912]; + } else { + if (input[0] <= -0.953704765211337) { + var28 = params[913]; + } else { + if (input[2] > 2.036172539572266) { + var28 = params[914]; + } else { + var28 = params[915]; + } + } + } + } else { + if (input[0] > 2.7525870014725196) { + var28 = params[916]; + } else { + if (input[0] > 2.0439835581045633) { + var28 = params[917]; + } else { + if (input[0] > 1.707981010534623) { + var28 = params[918]; + } else { + if (input[0] <= -1.0381105498701844) { + var28 = params[919]; + } else { + if (input[0] > 1.4158694709872839) { + var28 = params[920]; + } else { + if (input[0] > 0.6114260726653612) { + if (input[5] > 1.5000000000000002) { + var28 = params[921]; + } else { + var28 = params[922]; + } + } else { + if (input[0] > 0.5027564384432502) { + var28 = params[923]; + } else { + if (input[0] > 0.3655013784833432) { + var28 = params[924]; + } else { + var28 = params[925]; + } + } + } + } + } + } + } + } + } + } + } + } + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var28 = params[926]; + } else { + var28 = params[927]; + } + } + } + } + double var29; + if (input[4] <= -0.000000000000000000000000000000000010000000180025095) { + if (input[2] > 2.036172539572266) { + if (input[2] > 3.657789591324548) { + var29 = params[928]; + } else { + var29 = params[929]; + } + } else { + var29 = params[930]; + } + } else { + if (input[1] <= -0.3974238316791952) { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[931]; + } else { + if (input[10] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[932]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[933]; + } else { + if (input[3] > 5.5550000000000015) { + if (input[3] > 7.22) { + if (input[3] > 8.335000000000003) { + var29 = params[934]; + } else { + var29 = params[935]; + } + } else { + if (input[0] <= -0.8205011829150545) { + if (input[0] <= -1.0381105498701844) { + var29 = params[936]; + } else { + var29 = params[937]; + } + } else { + var29 = params[938]; + } + } + } else { + if (input[0] <= -1.024875722835677) { + var29 = params[939]; + } else { + if (input[0] <= -0.8773569194612542) { + var29 = params[940]; + } else { + var29 = params[941]; + } + } + } + } + } + } + } else { + if (input[3] <= -5.549999999999998) { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[942]; + } else { + if (input[1] > 2.1493445293967057) { + var29 = params[943]; + } else { + var29 = params[944]; + } + } + } else { + if (input[2] > 3.657789591324548) { + var29 = params[945]; + } else { + if (input[5] > 1.5000000000000002) { + if (input[13] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[946]; + } else { + if (input[2] > 0.000000000000000000000000000000000010000000180025095) { + if (input[0] <= -0.9076979855199544) { + var29 = params[947]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[948]; + } else { + var29 = params[949]; + } + } + } else { + if (input[0] > 0.6114260726653612) { + var29 = params[950]; + } else { + if (input[0] > 0.5496635465043274) { + var29 = params[951]; + } else { + if (input[4] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[952]; + } else { + if (input[0] <= -0.9417754143128865) { + if (input[11] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[953]; + } else { + if (input[0] <= -1.1904461100224721) { + var29 = params[954]; + } else { + var29 = params[955]; + } + } + } else { + if (input[0] <= -0.9202125498587063) { + var29 = params[956]; + } else { + if (input[9] > 0.000000000000000000000000000000000010000000180025095) { + var29 = params[957]; + } else { + var29 = params[958]; + } + } + } + } + } + } + } + } + } else { + var29 = params[959]; + } + } + } + } + } + return var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22 + var23 + var24 + var25 + var26 + var27 + var28 + var29; + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_right_before_left.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_right_before_left.java new file mode 100644 index 00000000..df34336d --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_right_before_left.java @@ -0,0 +1,1049 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_capacity_right_before_left implements FeatureRegressor { + + public static BerlinNetworkParams_capacity_right_before_left INSTANCE = new BerlinNetworkParams_capacity_right_before_left(); + public static final double[] DEFAULT_PARAMS = {328.5757, 269.49268, 231.0964, 232.20732, 238.96944, 217.52971, 245.93172, 196.2599, 130.11137, 162.67091, 163.88892, 168.91855, 177.93335, 120.14436, 164.4786, 162.06781, 139.9658, 110.37732, 114.853226, 122.946236, 104.39815, 115.12266, 119.465096, 79.75374, 124.89497, 87.860054, 29.94975, 71.75533, 135.55458, 111.58922, 81.732124, 63.05375, 83.79276, 88.973175, 59.21387, 86.27968, 54.50634, 43.036, 57.698544, 59.136612, 63.140118, 66.2636, 54.35065, 94.81921, 33.714684, 63.78595, 2.5854192, 40.278103, 67.96995, 65.76385, 51.57006, 39.75378, 41.452232, 44.53736, 31.997284, 10.905647, 42.840084, 27.180868, 41.26702, 44.15924, 62.49501, 33.340282, 34.941944, 20.610315, 61.56515, 26.562513, 17.145185, 42.70646, 29.333172, 32.076294, 16.195492, 47.306076, 0.038455993, 26.993008, 57.766266, 19.425892, 44.300034, 18.40526, 34.33802, 20.988033, 24.663631, 8.912071, 16.680994, 20.58277, -2.8025827, 17.442913, 27.01601, 13.931712, 15.10554, 19.0708, 7.64242, 19.289486, 26.840696, -7.763874, 16.059181, 38.44315, -12.641703, 15.14082, 9.366194, 14.997878, -10.614942, 7.670979, -2.6596265, 22.54426, -39.99585, 10.795762, 15.121941, -24.76626, 8.156524, 13.459406, 1.9710164, 25.679066, 32.778603, 7.3173504, 18.013678, -12.889844, 8.557115, -16.925081, 21.958729, 5.212196, 18.448833, -9.052041, 25.488205, -11.65606, 18.484278, -24.807718, 16.140015, 3.490814, 6.3571334, -22.313322, 1.9848174, -14.237209, 5.360275, 14.617204, -6.1242256, -21.332108, 13.842055, 4.7554398, -8.330782, -2.283184, 1.6876256, 2.2970202, 2.9211318, 11.132554, 8.222093, -3.9318573, 1.0153062, -5.786771, 1.9176867, 20.111982, -13.341735, -5.2488017, 18.932772, -2.2183902, 6.023973, 1.0027256, -11.451071, 2.4872222, -18.286674, 7.4326425, 1.363571, -8.058313, 2.9623373, 0.6662814, 2.0770974, -7.1936674, 5.135833, -1.0970511, 1.265644, 2.826718, 17.753006, 6.6504216, 1.1511834, -4.57029, 1.2588999, -9.778034, 10.277584, 0.7607379, -14.093642, -5.7878227, 25.867159, -12.429686, 5.3511887, 0.4285916, 10.114006, -17.682116, -0.6951186, -3.686415, 5.9004226, 13.114284, 6.1482863, -8.650964, -21.94511, 4.131482, -13.5670595, 0.4509796, -5.169152, 9.02604, 4.7153153, 11.034595, 0.36327785, -10.315573, 11.911259, -11.446489, 0.21937746, -1.9593282, -16.709671, 7.9414787, 10.704911, -15.123205, 0.19036125, -24.913687, 17.289347, 7.1274853, -6.104514, 0.09103825, -16.644897, 14.6652155, -9.731849, 9.392941, 0.027961692, 13.964792, -12.233078, 6.300041, -8.140979, 5.66955, 0.23326816, -8.987359, 24.763414, 0.5058552, 7.135163, -13.049223, 0.9535057, -20.696547, -0.0388047, 14.340578, -16.97962, 12.339516, -10.289911, -0.96544015, -0.017682046, -25.752195, -4.7804914, 1.9569407, 9.993857, -14.980678, -5.454724, 0.24939379, 0.6361772, -0.1201637, -1.6190526, -3.2766292, 0.441606, 12.357215, -1.7070338, 0.3730253, -0.013359121, -14.511282, 10.292064, 3.6254585, -16.11821, 4.9755793, -8.917786, 13.915958}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 143.222974798649) / 82.88768569254515; + data[1] = (ft.getDouble("speed") - 8.335055858664587) / 0.16557690987318385; + data[2] = (ft.getDouble("num_lanes") - 1.0017320516151382) / 0.04742011278858442; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[0] >= -1.5885108) { + var0 = params[0]; + } else { + var0 = params[1]; + } + double var1; + if (input[5] >= 1.5) { + if (input[0] >= -0.15741754) { + var1 = params[2]; + } else { + if (input[0] >= -1.427751) { + if (input[5] >= 2.5) { + var1 = params[3]; + } else { + var1 = params[4]; + } + } else { + var1 = params[5]; + } + } + } else { + if (input[4] >= 0.5) { + var1 = params[6]; + } else { + if (input[0] >= -1.4446414) { + var1 = params[7]; + } else { + var1 = params[8]; + } + } + } + double var2; + if (input[0] >= -1.5099103) { + if (input[5] >= 1.5) { + if (input[0] >= 0.23528254) { + var2 = params[9]; + } else { + if (input[6] >= 3.5) { + var2 = params[10]; + } else { + var2 = params[11]; + } + } + } else { + if (input[6] >= 2.5) { + if (input[4] >= 0.5) { + var2 = params[12]; + } else { + var2 = params[13]; + } + } else { + var2 = params[14]; + } + } + } else { + if (input[6] >= 3.5) { + var2 = params[15]; + } else { + if (input[0] >= -1.5885108) { + var2 = params[16]; + } else { + var2 = params[17]; + } + } + } + double var3; + if (input[5] >= 1.5) { + if (input[6] >= 3.5) { + if (input[0] >= -0.87417054) { + var3 = params[18]; + } else { + if (input[0] >= -1.3322604) { + var3 = params[19]; + } else { + var3 = params[20]; + } + } + } else { + if (input[0] >= -1.5885108) { + if (input[0] >= 0.678171) { + var3 = params[21]; + } else { + var3 = params[22]; + } + } else { + var3 = params[23]; + } + } + } else { + if (input[6] >= 2.5) { + if (input[0] >= -1.220362) { + if (input[4] >= 0.5) { + var3 = params[24]; + } else { + var3 = params[25]; + } + } else { + if (input[0] >= -1.40887) { + var3 = params[26]; + } else { + var3 = params[27]; + } + } + } else { + if (input[10] >= 0.5) { + var3 = params[28]; + } else { + var3 = params[29]; + } + } + } + double var4; + if (input[6] >= 2.5) { + if (input[5] >= 1.5) { + if (input[6] >= 3.5) { + var4 = params[30]; + } else { + if (input[3] >= 1.385) { + var4 = params[31]; + } else { + var4 = params[32]; + } + } + } else { + if (input[4] >= 0.5) { + var4 = params[33]; + } else { + var4 = params[34]; + } + } + } else { + var4 = params[35]; + } + double var5; + if (input[5] >= 1.5) { + if (input[0] >= -0.8861144) { + if (input[0] >= 2.3567677) { + if (input[0] >= 2.481153) { + var5 = params[36]; + } else { + var5 = params[37]; + } + } else { + if (input[0] >= -0.034600735) { + var5 = params[38]; + } else { + var5 = params[39]; + } + } + } else { + if (input[0] >= -1.350357) { + if (input[0] >= -1.1719229) { + var5 = params[40]; + } else { + var5 = params[41]; + } + } else { + if (input[0] >= -1.626152) { + var5 = params[42]; + } else { + var5 = params[43]; + } + } + } + } else { + if (input[6] >= 2.5) { + if (input[0] >= -0.6688928) { + if (input[0] >= 0.13032123) { + var5 = params[44]; + } else { + var5 = params[45]; + } + } else { + if (input[0] >= -0.7453215) { + var5 = params[46]; + } else { + var5 = params[47]; + } + } + } else { + if (input[4] >= 0.5) { + var5 = params[48]; + } else { + if (input[0] >= 0.76696587) { + var5 = params[49]; + } else { + var5 = params[50]; + } + } + } + } + double var6; + if (input[0] >= -0.5536163) { + if (input[0] >= -0.5439647) { + if (input[5] >= 1.5) { + if (input[0] >= 1.0400462) { + var6 = params[51]; + } else { + var6 = params[52]; + } + } else { + if (input[0] >= 0.7685946) { + var6 = params[53]; + } else { + var6 = params[54]; + } + } + } else { + if (input[0] >= -0.54547274) { + var6 = params[55]; + } else { + if (input[0] >= -0.5509621) { + var6 = params[56]; + } else { + var6 = params[57]; + } + } + } + } else { + if (input[0] >= -1.4796284) { + if (input[5] >= 1.5) { + if (input[6] >= 3.5) { + var6 = params[58]; + } else { + var6 = params[59]; + } + } else { + if (input[0] >= -0.6688928) { + var6 = params[60]; + } else { + var6 = params[61]; + } + } + } else { + if (input[0] >= -1.6256092) { + if (input[0] >= -1.5250514) { + var6 = params[62]; + } else { + var6 = params[63]; + } + } else { + var6 = params[64]; + } + } + } + double var7; + if (input[0] >= -1.3734607) { + if (input[0] >= -0.8776693) { + if (input[0] >= 2.3805952) { + if (input[0] >= 2.481153) { + var7 = params[65]; + } else { + var7 = params[66]; + } + } else { + if (input[10] >= 0.5) { + var7 = params[67]; + } else { + var7 = params[68]; + } + } + } else { + if (input[0] >= -1.3591642) { + if (input[0] >= -1.350357) { + var7 = params[69]; + } else { + var7 = params[70]; + } + } else { + var7 = params[71]; + } + } + } else { + if (input[0] >= -1.3811216) { + var7 = params[72]; + } else { + if (input[0] >= -1.427751) { + if (input[0] >= -1.4235284) { + var7 = params[73]; + } else { + var7 = params[74]; + } + } else { + if (input[0] >= -1.626152) { + var7 = params[75]; + } else { + var7 = params[76]; + } + } + } + } + double var8; + if (input[4] >= 0.5) { + if (input[0] >= 0.63250685) { + var8 = params[77]; + } else { + var8 = params[78]; + } + } else { + if (input[5] >= 1.5) { + if (input[0] >= -1.5896568) { + if (input[6] >= 2.5) { + var8 = params[79]; + } else { + var8 = params[80]; + } + } else { + var8 = params[81]; + } + } else { + if (input[0] >= -1.0476583) { + if (input[6] >= 2.5) { + var8 = params[82]; + } else { + var8 = params[83]; + } + } else { + if (input[6] >= 2.5) { + var8 = params[84]; + } else { + var8 = params[85]; + } + } + } + } + double var9; + if (input[0] >= -0.9600096) { + if (input[10] >= 0.5) { + var9 = params[86]; + } else { + if (input[5] >= 1.5) { + if (input[6] >= 3.5) { + var9 = params[87]; + } else { + var9 = params[88]; + } + } else { + if (input[0] >= 0.7685946) { + var9 = params[89]; + } else { + var9 = params[90]; + } + } + } + } else { + if (input[5] >= 1.5) { + if (input[0] >= -1.045728) { + if (input[0] >= -1.0361367) { + var9 = params[91]; + } else { + var9 = params[92]; + } + } else { + if (input[0] >= -1.0510364) { + var9 = params[93]; + } else { + var9 = params[94]; + } + } + } else { + if (input[0] >= -1.0476583) { + var9 = params[95]; + } else { + if (input[0] >= -1.1356087) { + var9 = params[96]; + } else { + var9 = params[97]; + } + } + } + } + double var10; + if (input[0] >= 0.5457629) { + if (input[5] >= 1.5) { + if (input[0] >= 0.56307554) { + if (input[0] >= 0.5981833) { + var10 = params[98]; + } else { + var10 = params[99]; + } + } else { + if (input[0] >= 0.55625904) { + var10 = params[100]; + } else { + var10 = params[101]; + } + } + } else { + if (input[0] >= 0.7600891) { + if (input[0] >= 1.5583379) { + var10 = params[102]; + } else { + var10 = params[103]; + } + } else { + var10 = params[104]; + } + } + } else { + if (input[6] >= 2.5) { + if (input[0] >= -1.3657997) { + if (input[0] >= -1.2385793) { + var10 = params[105]; + } else { + var10 = params[106]; + } + } else { + if (input[0] >= -1.3758132) { + var10 = params[107]; + } else { + var10 = params[108]; + } + } + } else { + if (input[0] >= -1.3198339) { + if (input[0] >= -1.1222774) { + var10 = params[109]; + } else { + var10 = params[110]; + } + } else { + if (input[0] >= -1.438971) { + var10 = params[111]; + } else { + var10 = params[112]; + } + } + } + } + double var11; + if (input[0] >= -1.626152) { + if (input[0] >= -1.5797639) { + if (input[0] >= -1.4796284) { + if (input[0] >= -1.451518) { + var11 = params[113]; + } else { + var11 = params[114]; + } + } else { + if (input[0] >= -1.5135298) { + var11 = params[115]; + } else { + var11 = params[116]; + } + } + } else { + var11 = params[117]; + } + } else { + var11 = params[118]; + } + double var12; + if (input[0] >= -1.5935779) { + if (input[0] >= -1.4928994) { + if (input[0] >= -1.4657543) { + if (input[0] >= -1.451518) { + var12 = params[119]; + } else { + var12 = params[120]; + } + } else { + var12 = params[121]; + } + } else { + if (input[0] >= -1.5250514) { + var12 = params[122]; + } else { + if (input[0] >= -1.5439323) { + var12 = params[123]; + } else { + var12 = params[124]; + } + } + } + } else { + if (input[0] >= -1.6307969) { + var12 = params[125]; + } else { + var12 = params[126]; + } + } + double var13; + if (input[0] >= -1.4657543) { + if (input[6] >= 2.5) { + if (input[0] >= -1.3218849) { + if (input[0] >= -1.0836107) { + var13 = params[127]; + } else { + var13 = params[128]; + } + } else { + if (input[0] >= -1.328279) { + var13 = params[129]; + } else { + var13 = params[130]; + } + } + } else { + if (input[0] >= 1.8478863) { + var13 = params[131]; + } else { + if (input[0] >= -1.2484722) { + var13 = params[132]; + } else { + var13 = params[133]; + } + } + } + } else { + if (input[0] >= -1.5159426) { + if (input[0] >= -1.4796284) { + var13 = params[134]; + } else { + var13 = params[135]; + } + } else { + if (input[0] >= -1.5935779) { + if (input[0] >= -1.5311439) { + var13 = params[136]; + } else { + var13 = params[137]; + } + } else { + var13 = params[138]; + } + } + } + double var14; + if (input[5] >= 1.5) { + if (input[3] >= 1.385) { + var14 = params[139]; + } else { + if (input[6] >= 3.5) { + if (input[6] >= 4.5) { + var14 = params[140]; + } else { + var14 = params[141]; + } + } else { + var14 = params[142]; + } + } + } else { + if (input[4] >= 0.5) { + if (input[6] >= 2.5) { + var14 = params[143]; + } else { + var14 = params[144]; + } + } else { + if (input[6] >= 2.5) { + var14 = params[145]; + } else { + var14 = params[146]; + } + } + } + double var15; + if (input[0] >= -1.611011) { + if (input[0] >= -1.5099707) { + if (input[0] >= -1.4928994) { + if (input[2] >= 10.507524) { + var15 = params[147]; + } else { + var15 = params[148]; + } + } else { + var15 = params[149]; + } + } else { + if (input[0] >= -1.5284294) { + var15 = params[150]; + } else { + var15 = params[151]; + } + } + } else { + var15 = params[152]; + } + double var16; + if (input[0] >= -1.5935779) { + if (input[0] >= 3.066825) { + if (input[6] >= 3.5) { + if (input[0] >= 3.3937736) { + var16 = params[153]; + } else { + var16 = params[154]; + } + } else { + if (input[0] >= 3.3397846) { + var16 = params[155]; + } else { + var16 = params[156]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[5] >= 3.5) { + var16 = params[157]; + } else { + var16 = params[158]; + } + } else { + if (input[4] >= 0.5) { + var16 = params[159]; + } else { + var16 = params[160]; + } + } + } + } else { + var16 = params[161]; + } + double var17; + if (input[0] >= -0.5547624) { + if (input[5] >= 1.5) { + if (input[6] >= 2.5) { + if (input[5] >= 3.5) { + var17 = params[162]; + } else { + var17 = params[163]; + } + } else { + var17 = params[164]; + } + } else { + if (input[6] >= 2.5) { + var17 = params[165]; + } else { + if (input[4] >= 0.5) { + var17 = params[166]; + } else { + var17 = params[167]; + } + } + } + } else { + if (input[0] >= -0.7322315) { + if (input[5] >= 1.5) { + if (input[5] >= 2.5) { + var17 = params[168]; + } else { + var17 = params[169]; + } + } else { + var17 = params[170]; + } + } else { + if (input[5] >= 1.5) { + if (input[6] >= 4.5) { + var17 = params[171]; + } else { + var17 = params[172]; + } + } else { + if (input[6] >= 2.5) { + var17 = params[173]; + } else { + var17 = params[174]; + } + } + } + } + double var18; + if (input[1] >= 8.364355) { + var18 = params[175]; + } else { + if (input[0] >= -1.4246745) { + if (input[0] >= -1.4068794) { + if (input[10] >= 0.5) { + var18 = params[176]; + } else { + var18 = params[177]; + } + } else { + if (input[0] >= -1.4132736) { + var18 = params[178]; + } else { + var18 = params[179]; + } + } + } else { + if (input[0] >= -1.4283543) { + var18 = params[180]; + } else { + if (input[0] >= -1.4378248) { + var18 = params[181]; + } else { + var18 = params[182]; + } + } + } + } + double var19; + if (input[0] >= -1.2108912) { + if (input[0] >= -1.1408567) { + if (input[0] >= -1.0458486) { + if (input[0] >= -1.0361367) { + var19 = params[183]; + } else { + var19 = params[184]; + } + } else { + if (input[0] >= -1.0512776) { + var19 = params[185]; + } else { + var19 = params[186]; + } + } + } else { + if (input[6] >= 3.5) { + if (input[0] >= -1.1815746) { + var19 = params[187]; + } else { + var19 = params[188]; + } + } else { + if (input[0] >= -1.1654683) { + var19 = params[189]; + } else { + var19 = params[190]; + } + } + } + } else { + if (input[0] >= -1.2362268) { + if (input[0] >= -1.2230161) { + if (input[0] >= -1.2198191) { + var19 = params[191]; + } else { + var19 = params[192]; + } + } else { + if (input[0] >= -1.2301946) { + var19 = params[193]; + } else { + var19 = params[194]; + } + } + } else { + if (input[0] >= -1.626152) { + if (input[0] >= -1.4796284) { + var19 = params[195]; + } else { + var19 = params[196]; + } + } else { + var19 = params[197]; + } + } + } + double var20; + if (input[0] >= -1.5935779) { + if (input[3] >= 4.165) { + if (input[0] >= -0.13805398) { + var20 = params[198]; + } else { + var20 = params[199]; + } + } else { + if (input[0] >= -1.5439323) { + if (input[0] >= -1.5247498) { + var20 = params[200]; + } else { + var20 = params[201]; + } + } else { + var20 = params[202]; + } + } + } else { + var20 = params[203]; + } + double var21; + if (input[0] >= -1.4271477) { + if (input[0] >= -1.4095938) { + if (input[0] >= -1.4035616) { + if (input[5] >= 1.5) { + var21 = params[204]; + } else { + var21 = params[205]; + } + } else { + var21 = params[206]; + } + } else { + if (input[0] >= -1.4200296) { + var21 = params[207]; + } else { + var21 = params[208]; + } + } + } else { + if (input[0] >= -1.474139) { + if (input[0] >= -1.457309) { + if (input[0] >= -1.4399362) { + var21 = params[209]; + } else { + var21 = params[210]; + } + } else { + var21 = params[211]; + } + } else { + if (input[6] >= 3.5) { + var21 = params[212]; + } else { + if (input[0] >= -1.5099707) { + var21 = params[213]; + } else { + var21 = params[214]; + } + } + } + } + double var22; + if (input[0] >= -1.611011) { + if (input[0] >= -1.5311439) { + if (input[0] >= -1.5159426) { + if (input[0] >= -1.5049639) { + var22 = params[215]; + } else { + var22 = params[216]; + } + } else { + var22 = params[217]; + } + } else { + var22 = params[218]; + } + } else { + var22 = params[219]; + } + double var23; + if (input[0] >= -1.6183101) { + if (input[0] >= -1.5293946) { + if (input[0] >= -1.5099707) { + if (input[0] >= -1.4928994) { + var23 = params[220]; + } else { + var23 = params[221]; + } + } else { + var23 = params[222]; + } + } else { + var23 = params[223]; + } + } else { + var23 = params[224]; + } + double var24; + if (input[0] >= -1.5935779) { + if (input[0] >= -1.4223219) { + if (input[0] >= -1.4082668) { + if (input[10] >= 0.5) { + var24 = params[225]; + } else { + var24 = params[226]; + } + } else { + var24 = params[227]; + } + } else { + if (input[0] >= -1.4271477) { + var24 = params[228]; + } else { + if (input[6] >= 2.5) { + var24 = params[229]; + } else { + var24 = params[230]; + } + } + } + } else { + var24 = params[231]; + } + double var25; + if (input[0] >= -1.626152) { + if (input[0] >= -1.5473707) { + if (input[6] >= 4.5) { + if (input[0] >= -0.46234822) { + var25 = params[232]; + } else { + var25 = params[233]; + } + } else { + if (input[0] >= -1.5135298) { + var25 = params[234]; + } else { + var25 = params[235]; + } + } + } else { + var25 = params[236]; + } + } else { + var25 = params[237]; + } + double var26; + if (input[0] >= 0.68209195) { + if (input[0] >= 0.6971123) { + if (input[4] >= 0.5) { + var26 = params[238]; + } else { + if (input[6] >= 3.5) { + var26 = params[239]; + } else { + var26 = params[240]; + } + } + } else { + if (input[0] >= 0.68480647) { + var26 = params[241]; + } else { + var26 = params[242]; + } + } + } else { + if (input[0] >= 0.6642365) { + if (input[5] >= 2.5) { + var26 = params[243]; + } else { + var26 = params[244]; + } + } else { + if (input[0] >= 0.6590488) { + var26 = params[245]; + } else { + if (input[11] >= 0.5) { + var26 = params[246]; + } else { + var26 = params[247]; + } + } + } + } + double var27; + if (input[5] >= 2.5) { + if (input[5] >= 3.5) { + var27 = params[248]; + } else { + if (input[6] >= 3.5) { + var27 = params[249]; + } else { + var27 = params[250]; + } + } + } else { + if (input[3] >= 1.385) { + var27 = params[251]; + } else { + if (input[6] >= 3.5) { + if (input[5] >= 1.5) { + var27 = params[252]; + } else { + var27 = params[253]; + } + } else { + if (input[10] >= 0.5) { + var27 = params[254]; + } else { + var27 = params[255]; + } + } + } + } + double var28; + if (input[0] >= -1.611011) { + if (input[0] >= -1.4796284) { + if (input[0] >= -1.438971) { + if (input[0] >= -1.42757) { + var28 = params[256]; + } else { + var28 = params[257]; + } + } else { + if (input[0] >= -1.4554994) { + var28 = params[258]; + } else { + var28 = params[259]; + } + } + } else { + if (input[0] >= -1.5135298) { + var28 = params[260]; + } else { + if (input[0] >= -1.5311439) { + var28 = params[261]; + } else { + var28 = params[262]; + } + } + } + } else { + var28 = params[263]; + } + return 0.5 + (463.70804 + var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22 + var23 + var24 + var25 + var26 + var27 + var28); + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_traffic_light.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_traffic_light.java new file mode 100644 index 00000000..ecf7e42e --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_traffic_light.java @@ -0,0 +1,1731 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_capacity_traffic_light implements FeatureRegressor { + + public static BerlinNetworkParams_capacity_traffic_light INSTANCE = new BerlinNetworkParams_capacity_traffic_light(); + public static final double[] DEFAULT_PARAMS = {317.58615, 371.90707, 444.4079, 367.89938, 452.4632, 521.194, 221.14998, 418.9447, 238.79091, 291.76675, 264.705, 355.61447, 403.7937, 365.5921, 474.24683, 378.32794, 242.66312, 287.93793, 215.85152, 241.08905, 280.70428, 339.63272, 196.49597, 283.9714, 116.53004, 150.8152, 112.89288, 94.35883, 181.27068, 132.51706, 154.97064, 107.99846, 208.10245, 163.60548, 236.45038, 161.46591, 185.89522, 144.78482, 81.959114, 160.35768, 86.85572, 122.00112, 55.440426, 35.59504, 47.5406, -1.0464447, 81.68298, 32.481655, 99.88309, 60.85922, 105.463844, 26.421547, 122.86391, 78.82281, 149.16399, 77.819954, 140.49277, 101.915344, 182.51973, 129.1828, 133.98146, 93.75589, 124.24183, 100.78432, 16.466816, 75.58953, 127.80552, 93.29994, 0.23376957, 50.7932, 74.782455, -96.85942, 63.563084, 114.841225, 22.465748, -38.290997, -6.226846, 12.155517, -17.9986, 2.825286, 51.25106, 81.81281, 45.701965, 97.45851, -55.91527, 54.186794, -100.4851, 33.078182, 31.951622, 59.77364, 15.712449, -25.123415, -62.046227, 3.7386997, -1.6807469, 14.7223425, -79.280334, -25.098291, 44.65327, 39.59787, 26.189135, 38.452682, -44.48076, -27.07064, -0.87748986, 33.476585, 2.828202, -7.2282915, 9.147684, -19.32649, -2.6688836, -35.19168, 18.406137, 35.666, -16.669056, 13.995589, -58.327385, 37.820515, -111.47696, 30.654888, 4.6534038, -23.836727, 40.73129, -24.646233, -0.9896539, 9.164257, -16.09563, 23.879135, -81.265884, 110.806305, -10.096006, -103.59249, 23.250616, -6.6231976, 35.643917, 10.402804, -6.304007, 10.867795, 98.86006, 4.4328437, -26.356064, 14.777711, 39.44366, -32.003937, 39.398407, 66.29276, -13.146882, 2.4501045, -48.886215, 13.147323, -2.6031258, -86.03715, -30.806654, -150.73279, -63.707138, -71.69192, -8.80235, 22.45347, -33.47753, 5.1553164, -9.7972975, 39.895508, 101.05463, -4.5401998, -4.673586, -50.86595, 21.978512, 67.956795, -0.083185144, 32.137566, -93.2094, -8.153724, -80.777176, 14.455805, -93.85309, 60.21245, -13.692038, -7.277415, 30.83212, -32.24603, -100.652504, -3.2667801, 9.385725, -38.886555, -5.074366, -108.04678, -4.881211, 3.4359636, 18.0662, -53.116997, 24.502695, -106.45072, -47.24272, -64.23612, 16.40234, 0.9675224, 29.659426, -8.674287, 3.482585, 13.971542, -13.440412, 25.287634, -22.662998, -40.285034, -0.5344266, 21.63141, -27.944065, -78.229294, -8.196033, 73.80613, 22.734848, 83.64019, -6.376454, 1.6941653, -36.45411, -2.6223135, -11.914062, 8.024685, -24.971369, -31.42377, -79.49115, 7.7874856, -36.06723, -120.7791, -27.250916, 6.121556, -4.0152144, -0.40800256, 10.563392, -65.45086, 3.7691972, -5.0086923, -3.4474616, 75.673386, -39.768024, -19.732847, -96.24271, -8.064, -141.17542, -13.893994, 38.31635, 6.502543, -0.25883764, -65.41306, 22.5695, 49.069233, -58.0, 15.185812, -84.45052, 119.54463, 0.025481887, -71.81797, -105.66058, -9.727463, 15.423478, -32.08496, -18.302551, 15.111941, -0.47762036, -70.54971, 101.254326, 52.622845, -102.82444, 50.721146, -50.955395, -22.096672, 2.4938214, -70.05265, -44.918053, 13.204018, -3.3703663, 12.0528345, -4.2761703, 17.460169, -55.959614, 5.86055, -8.090916, -36.531765, 63.93945, 9.11229, -4.176654, -28.24129, 7.667246, -70.52138, 14.541222, 43.480156, 19.017843, -9.304955, -0.4843453, -36.023712, -15.291022, 13.037652, -9.797114, -0.14657627, 3.43533, 80.58867, 14.950171, 74.262886, -22.100275, 8.342942, -21.63872, 26.351545, -81.59937, -7.085229, -17.849325, 0.3312027, -36.536587, -2.5713947, 0.6827665, -7.373554, 27.991127, 51.084366, -89.37909, -24.954538, 63.68669, -6.560981, -35.436714, 32.551506, 12.246587, 43.34547, 74.816246, 0.90199566, -52.66724, -7.0378876, 53.683746, -90.4814, 16.260605, -43.59657, 9.725355, -36.489067, -130.91338, 6.6463614, -1.3643489, 25.442492, -23.657804, 2.5023246, 9.16801, -4.0494256, 14.785485, 72.87099, 48.20112, -15.935579, -66.26077, -3.2686286, -44.378895, -0.7018758, -62.95795, -32.5529, 51.700504, 46.990604, 0.5599213, -5.394757, 28.516947, -0.15938608, -42.77303, 59.238365, -58.80193, 18.635473, 75.40997, 0.2182797, -18.758831, -63.21626, -24.601416, -3.0369816, -86.35893, 32.47767, 10.12496, 60.1001, -28.54264, -84.800735, 3.1651325, 8.93944, -1.5898098, 9.563412, -0.0071494957, 4.110711, -25.789635, 8.986566, -2.7054036, -1.0445749, -15.091509, 1.0582832, -62.30669, -43.359802, 80.34613, -71.1757, 1.3190874, 27.325521, -3.8557642, 37.018536, -55.109516, -0.124732435, 30.982325, -45.928547, 7.0627384, 57.678307, -155.60118, -3.1058724, -24.38769, 3.5961235, -52.660564, 41.334145, 13.617065, -14.218936, 12.212501, 20.175562, -21.666336, -2.080644, 1.5821923, 16.48899, -2.187525, 6.8576293, -5.880714, -30.201483, 2.281507, -0.0108891735, 7.9575567, -86.923996, -37.013927, 3.3186255, 50.558243, 0.8518762, 61.000675, -95.17265, 29.628761, 48.984306, -6.324449, -62.8095, -27.715534, 12.40723, 48.279, -2.5604773, -38.657818, 29.339884, 0.06334605}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 129.80525566255255) / 93.9172824443893; + data[1] = (ft.getDouble("speed") - 12.727121931371219) / 3.056470931779525; + data[2] = (ft.getDouble("num_lanes") - 1.8200189882001898) / 0.9475721685942334; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[0] >= -0.17228198) { + if (input[5] >= 2.5) { + if (input[6] >= 4.5) { + if (input[10] >= 0.5) { + var0 = params[0]; + } else { + var0 = params[1]; + } + } else { + if (input[1] >= -0.9838543) { + var0 = params[2]; + } else { + var0 = params[3]; + } + } + } else { + if (input[1] >= -0.9838543) { + if (input[6] >= 3.5) { + var0 = params[4]; + } else { + var0 = params[5]; + } + } else { + if (input[3] >= 9.725) { + var0 = params[6]; + } else { + var0 = params[7]; + } + } + } + } else { + if (input[6] >= 4.5) { + if (input[5] >= 2.5) { + if (input[10] >= 0.5) { + var0 = params[8]; + } else { + var0 = params[9]; + } + } else { + if (input[1] >= 1.743147) { + var0 = params[10]; + } else { + var0 = params[11]; + } + } + } else { + if (input[6] >= 3.5) { + if (input[1] >= -0.07430856) { + var0 = params[12]; + } else { + var0 = params[13]; + } + } else { + if (input[0] >= -0.97607446) { + var0 = params[14]; + } else { + var0 = params[15]; + } + } + } + } + double var1; + if (input[4] >= -0.5) { + if (input[5] >= 2.5) { + if (input[1] >= -0.9838543) { + if (input[6] >= 5.5) { + var1 = params[16]; + } else { + var1 = params[17]; + } + } else { + if (input[9] >= 0.5) { + var1 = params[18]; + } else { + var1 = params[19]; + } + } + } else { + if (input[0] >= -0.8956845) { + if (input[7] >= 0.5) { + var1 = params[20]; + } else { + var1 = params[21]; + } + } else { + if (input[0] >= -1.0653551) { + var1 = params[22]; + } else { + var1 = params[23]; + } + } + } + } else { + if (input[5] >= 2.5) { + if (input[6] >= 11.5) { + if (input[0] >= -0.25996554) { + var1 = params[24]; + } else { + var1 = params[25]; + } + } else { + if (input[11] >= 0.5) { + var1 = params[26]; + } else { + var1 = params[27]; + } + } + } else { + if (input[10] >= 0.5) { + if (input[0] >= -0.8382936) { + var1 = params[28]; + } else { + var1 = params[29]; + } + } else { + if (input[6] >= 6.5) { + var1 = params[30]; + } else { + var1 = params[31]; + } + } + } + } + double var2; + if (input[4] >= -0.5) { + if (input[10] >= 0.5) { + if (input[5] >= 2.5) { + if (input[4] >= 0.5) { + var2 = params[32]; + } else { + var2 = params[33]; + } + } else { + if (input[0] >= -0.87790287) { + var2 = params[34]; + } else { + var2 = params[35]; + } + } + } else { + if (input[4] >= 0.5) { + if (input[0] >= -0.94349253) { + var2 = params[36]; + } else { + var2 = params[37]; + } + } else { + if (input[6] >= 8.5) { + var2 = params[38]; + } else { + var2 = params[39]; + } + } + } + } else { + if (input[10] >= 0.5) { + if (input[4] >= -1.5) { + if (input[5] >= 2.5) { + var2 = params[40]; + } else { + var2 = params[41]; + } + } else { + if (input[6] >= 9.5) { + var2 = params[42]; + } else { + var2 = params[43]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[4] >= -1.5) { + var2 = params[44]; + } else { + var2 = params[45]; + } + } else { + if (input[3] >= -1.39) { + var2 = params[46]; + } else { + var2 = params[47]; + } + } + } + } + double var3; + if (input[2] >= -0.33772516) { + if (input[5] >= 2.5) { + if (input[10] >= 0.5) { + if (input[0] >= 0.39614373) { + var3 = params[48]; + } else { + var3 = params[49]; + } + } else { + if (input[13] >= 0.5) { + var3 = params[50]; + } else { + var3 = params[51]; + } + } + } else { + if (input[2] >= 0.71760345) { + if (input[0] >= -0.95850575) { + var3 = params[52]; + } else { + var3 = params[53]; + } + } else { + if (input[0] >= 0.8435055) { + var3 = params[54]; + } else { + var3 = params[55]; + } + } + } + } else { + if (input[10] >= 0.5) { + if (input[6] >= 3.5) { + if (input[1] >= -0.5290814) { + var3 = params[56]; + } else { + var3 = params[57]; + } + } else { + if (input[9] >= 0.5) { + var3 = params[58]; + } else { + var3 = params[59]; + } + } + } else { + if (input[1] >= -0.9838543) { + if (input[0] >= -0.94349253) { + var3 = params[60]; + } else { + var3 = params[61]; + } + } else { + if (input[6] >= 6.5) { + var3 = params[62]; + } else { + var3 = params[63]; + } + } + } + } + double var4; + if (input[4] >= -0.5) { + if (input[10] >= 0.5) { + if (input[6] >= 5.5) { + if (input[2] >= 1.772932) { + var4 = params[64]; + } else { + var4 = params[65]; + } + } else { + if (input[2] >= -0.33772516) { + var4 = params[66]; + } else { + var4 = params[67]; + } + } + } else { + if (input[2] >= -0.33772516) { + if (input[8] >= 0.5) { + var4 = params[68]; + } else { + var4 = params[69]; + } + } else { + if (input[0] >= -1.3061521) { + var4 = params[70]; + } else { + var4 = params[71]; + } + } + } + } else { + if (input[2] >= 0.71760345) { + if (input[4] >= -1.5) { + if (input[6] >= 6.5) { + var4 = params[72]; + } else { + var4 = params[73]; + } + } else { + if (input[2] >= 1.772932) { + var4 = params[74]; + } else { + var4 = params[75]; + } + } + } else { + if (input[1] >= -0.9838543) { + if (input[0] >= -0.17222875) { + var4 = params[76]; + } else { + var4 = params[77]; + } + } else { + if (input[10] >= 0.5) { + var4 = params[78]; + } else { + var4 = params[79]; + } + } + } + } + double var5; + if (input[4] >= -0.5) { + if (input[1] >= -0.9838543) { + if (input[9] >= 0.5) { + if (input[5] >= 2.5) { + var5 = params[80]; + } else { + var5 = params[81]; + } + } else { + if (input[0] >= -1.1705542) { + var5 = params[82]; + } else { + var5 = params[83]; + } + } + } else { + if (input[4] >= 0.5) { + if (input[3] >= 9.725) { + var5 = params[84]; + } else { + var5 = params[85]; + } + } else { + if (input[3] >= 9.725) { + var5 = params[86]; + } else { + var5 = params[87]; + } + } + } + } else { + if (input[2] >= 0.71760345) { + if (input[4] >= -1.5) { + if (input[5] >= 2.5) { + var5 = params[88]; + } else { + var5 = params[89]; + } + } else { + if (input[2] >= 1.772932) { + var5 = params[90]; + } else { + var5 = params[91]; + } + } + } else { + if (input[10] >= 0.5) { + if (input[0] >= 1.0847284) { + var5 = params[92]; + } else { + var5 = params[93]; + } + } else { + if (input[3] >= 4.165) { + var5 = params[94]; + } else { + var5 = params[95]; + } + } + } + } + double var6; + if (input[4] >= -0.5) { + if (input[3] >= 9.725) { + if (input[0] >= -1.00658) { + if (input[5] >= 2.5) { + var6 = params[96]; + } else { + var6 = params[97]; + } + } else { + var6 = params[98]; + } + } else { + if (input[3] >= -5.5550003) { + if (input[1] >= -0.9838543) { + var6 = params[99]; + } else { + var6 = params[100]; + } + } else { + if (input[8] >= 0.5) { + var6 = params[101]; + } else { + var6 = params[102]; + } + } + } + } else { + if (input[2] >= 0.71760345) { + if (input[3] >= 4.165) { + if (input[7] >= 0.5) { + var6 = params[103]; + } else { + var6 = params[104]; + } + } else { + if (input[4] >= -1.5) { + var6 = params[105]; + } else { + var6 = params[106]; + } + } + } else { + if (input[0] >= -0.75199425) { + if (input[3] >= 4.165) { + var6 = params[107]; + } else { + var6 = params[108]; + } + } else { + if (input[1] >= 0.83523715) { + var6 = params[109]; + } else { + var6 = params[110]; + } + } + } + } + double var7; + if (input[4] >= -0.5) { + if (input[0] >= -0.8650192) { + if (input[5] >= 2.5) { + if (input[5] >= 3.5) { + var7 = params[111]; + } else { + var7 = params[112]; + } + } else { + if (input[3] >= -1.385) { + var7 = params[113]; + } else { + var7 = params[114]; + } + } + } else { + if (input[0] >= -1.0580082) { + if (input[0] >= -0.9771924) { + var7 = params[115]; + } else { + var7 = params[116]; + } + } else { + if (input[0] >= -1.3091335) { + var7 = params[117]; + } else { + var7 = params[118]; + } + } + } + } else { + if (input[2] >= 1.772932) { + if (input[5] >= 2.5) { + if (input[4] >= -1.5) { + var7 = params[119]; + } else { + var7 = params[120]; + } + } else { + if (input[6] >= 11.5) { + var7 = params[121]; + } else { + var7 = params[122]; + } + } + } else { + if (input[0] >= -0.17105749) { + if (input[6] >= 8.5) { + var7 = params[123]; + } else { + var7 = params[124]; + } + } else { + if (input[4] >= -1.5) { + var7 = params[125]; + } else { + var7 = params[126]; + } + } + } + } + double var8; + if (input[4] >= 0.5) { + if (input[0] >= -0.9435458) { + if (input[0] >= -0.91335964) { + if (input[0] >= -0.8951521) { + var8 = params[127]; + } else { + var8 = params[128]; + } + } else { + if (input[6] >= 4.5) { + var8 = params[129]; + } else { + var8 = params[130]; + } + } + } else { + if (input[0] >= -1.0139802) { + if (input[1] >= -0.5290814) { + var8 = params[131]; + } else { + var8 = params[132]; + } + } else { + if (input[0] >= -1.0582745) { + var8 = params[133]; + } else { + var8 = params[134]; + } + } + } + } else { + if (input[6] >= 6.5) { + if (input[5] >= 2.5) { + if (input[6] >= 11.5) { + var8 = params[135]; + } else { + var8 = params[136]; + } + } else { + if (input[0] >= -1.2145822) { + var8 = params[137]; + } else { + var8 = params[138]; + } + } + } else { + if (input[7] >= 0.5) { + if (input[6] >= 3.5) { + var8 = params[139]; + } else { + var8 = params[140]; + } + } else { + if (input[6] >= 3.5) { + var8 = params[141]; + } else { + var8 = params[142]; + } + } + } + } + double var9; + if (input[3] >= -4.165) { + if (input[13] >= 0.5) { + if (input[1] >= -0.07430856) { + if (input[0] >= -1.1717253) { + var9 = params[143]; + } else { + var9 = params[144]; + } + } else { + if (input[4] >= -0.5) { + var9 = params[145]; + } else { + var9 = params[146]; + } + } + } else { + if (input[3] >= 4.165) { + if (input[3] >= 5.5550003) { + var9 = params[147]; + } else { + var9 = params[148]; + } + } else { + if (input[0] >= -0.8650192) { + var9 = params[149]; + } else { + var9 = params[150]; + } + } + } + } else { + if (input[10] >= 0.5) { + if (input[0] >= -0.8379742) { + if (input[0] >= 0.7484218) { + var9 = params[151]; + } else { + var9 = params[152]; + } + } else { + if (input[0] >= -0.91261435) { + var9 = params[153]; + } else { + var9 = params[154]; + } + } + } else { + if (input[1] >= 4.015375) { + var9 = params[155]; + } else { + if (input[6] >= 4.5) { + var9 = params[156]; + } else { + var9 = params[157]; + } + } + } + } + double var10; + if (input[0] >= -1.0987356) { + if (input[0] >= -0.98560405) { + if (input[5] >= 1.5) { + if (input[3] >= 9.725) { + var10 = params[158]; + } else { + var10 = params[159]; + } + } else { + if (input[6] >= 6.5) { + var10 = params[160]; + } else { + var10 = params[161]; + } + } + } else { + if (input[3] >= 1.39) { + if (input[4] >= 1.5) { + var10 = params[162]; + } else { + var10 = params[163]; + } + } else { + if (input[5] >= 2.5) { + var10 = params[164]; + } else { + var10 = params[165]; + } + } + } + } else { + if (input[0] >= -1.2741026) { + if (input[0] >= -1.1413262) { + if (input[0] >= -1.1235447) { + var10 = params[166]; + } else { + var10 = params[167]; + } + } else { + if (input[7] >= 0.5) { + var10 = params[168]; + } else { + var10 = params[169]; + } + } + } else { + if (input[0] >= -1.290926) { + var10 = params[170]; + } else { + if (input[0] >= -1.3078024) { + var10 = params[171]; + } else { + var10 = params[172]; + } + } + } + } + double var11; + if (input[13] >= 0.5) { + if (input[5] >= 2.5) { + if (input[2] >= 0.71760345) { + if (input[0] >= -0.58647627) { + var11 = params[173]; + } else { + var11 = params[174]; + } + } else { + if (input[2] >= -0.33772516) { + var11 = params[175]; + } else { + var11 = params[176]; + } + } + } else { + if (input[3] >= 4.165) { + if (input[6] >= 4.5) { + var11 = params[177]; + } else { + var11 = params[178]; + } + } else { + if (input[6] >= 2.5) { + var11 = params[179]; + } else { + var11 = params[180]; + } + } + } + } else { + if (input[2] >= -0.33772516) { + if (input[1] >= -0.5290814) { + if (input[6] >= 6.5) { + var11 = params[181]; + } else { + var11 = params[182]; + } + } else { + if (input[0] >= -0.5828028) { + var11 = params[183]; + } else { + var11 = params[184]; + } + } + } else { + if (input[5] >= 3.5) { + if (input[0] >= -0.0968965) { + var11 = params[185]; + } else { + var11 = params[186]; + } + } else { + if (input[0] >= -0.3052181) { + var11 = params[187]; + } else { + var11 = params[188]; + } + } + } + } + double var12; + if (input[4] >= 0.5) { + if (input[6] >= 11.5) { + if (input[0] >= -0.72292614) { + if (input[2] >= 0.71760345) { + var12 = params[189]; + } else { + var12 = params[190]; + } + } else { + if (input[1] >= -0.5290814) { + var12 = params[191]; + } else { + var12 = params[192]; + } + } + } else { + if (input[1] >= -0.5290814) { + if (input[2] >= 1.772932) { + var12 = params[193]; + } else { + var12 = params[194]; + } + } else { + if (input[6] >= 4.5) { + var12 = params[195]; + } else { + var12 = params[196]; + } + } + } + } else { + if (input[3] >= -4.165) { + if (input[0] >= -0.91431797) { + if (input[3] >= 4.165) { + var12 = params[197]; + } else { + var12 = params[198]; + } + } else { + if (input[3] >= 2.775) { + var12 = params[199]; + } else { + var12 = params[200]; + } + } + } else { + if (input[8] >= 0.5) { + if (input[4] >= -0.5) { + var12 = params[201]; + } else { + var12 = params[202]; + } + } else { + if (input[6] >= 3.5) { + var12 = params[203]; + } else { + var12 = params[204]; + } + } + } + } + double var13; + if (input[13] >= 0.5) { + if (input[0] >= -1.1795514) { + if (input[0] >= -0.799962) { + if (input[5] >= 2.5) { + var13 = params[205]; + } else { + var13 = params[206]; + } + } else { + if (input[0] >= -1.0580082) { + var13 = params[207]; + } else { + var13 = params[208]; + } + } + } else { + var13 = params[209]; + } + } else { + if (input[5] >= 2.5) { + if (input[2] >= 2.8282604) { + if (input[6] >= 11.5) { + var13 = params[210]; + } else { + var13 = params[211]; + } + } else { + if (input[2] >= -0.33772516) { + var13 = params[212]; + } else { + var13 = params[213]; + } + } + } else { + if (input[8] >= 0.5) { + if (input[2] >= 1.772932) { + var13 = params[214]; + } else { + var13 = params[215]; + } + } else { + if (input[6] >= 9.5) { + var13 = params[216]; + } else { + var13 = params[217]; + } + } + } + } + double var14; + if (input[0] >= 3.7705493) { + if (input[0] >= 3.8820837) { + var14 = params[218]; + } else { + if (input[10] >= 0.5) { + var14 = params[219]; + } else { + var14 = params[220]; + } + } + } else { + if (input[3] >= 6.9449997) { + if (input[2] >= -0.33772516) { + if (input[0] >= -0.7340529) { + var14 = params[221]; + } else { + var14 = params[222]; + } + } else { + if (input[1] >= 1.743147) { + var14 = params[223]; + } else { + var14 = params[224]; + } + } + } else { + if (input[2] >= -0.33772516) { + if (input[11] >= 0.5) { + var14 = params[225]; + } else { + var14 = params[226]; + } + } else { + if (input[0] >= -0.18324909) { + var14 = params[227]; + } else { + var14 = params[228]; + } + } + } + } + double var15; + if (input[3] >= -4.165) { + if (input[1] >= 4.015375) { + var15 = params[229]; + } else { + if (input[1] >= -0.9838543) { + if (input[0] >= -0.8545313) { + var15 = params[230]; + } else { + var15 = params[231]; + } + } else { + if (input[6] >= 2.5) { + var15 = params[232]; + } else { + var15 = params[233]; + } + } + } + } else { + if (input[6] >= 7.5) { + if (input[0] >= -0.8849836) { + if (input[7] >= 0.5) { + var15 = params[234]; + } else { + var15 = params[235]; + } + } else { + var15 = params[236]; + } + } else { + if (input[0] >= -0.89903855) { + if (input[0] >= -0.83616406) { + var15 = params[237]; + } else { + var15 = params[238]; + } + } else { + if (input[7] >= 0.5) { + var15 = params[239]; + } else { + var15 = params[240]; + } + } + } + } + double var16; + if (input[0] >= -1.0580082) { + if (input[0] >= -0.9842199) { + if (input[5] >= 1.5) { + if (input[0] >= 1.4569709) { + var16 = params[241]; + } else { + var16 = params[242]; + } + } else { + if (input[2] >= 1.772932) { + var16 = params[243]; + } else { + var16 = params[244]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[2] >= 1.772932) { + var16 = params[245]; + } else { + var16 = params[246]; + } + } else { + if (input[0] >= -1.0517261) { + var16 = params[247]; + } else { + var16 = params[248]; + } + } + } + } else { + if (input[0] >= -1.0721695) { + if (input[1] >= -0.5290814) { + if (input[4] >= -0.5) { + var16 = params[249]; + } else { + var16 = params[250]; + } + } else { + var16 = params[251]; + } + } else { + if (input[0] >= -1.0792503) { + if (input[9] >= 0.5) { + var16 = params[252]; + } else { + var16 = params[253]; + } + } else { + if (input[0] >= -1.2809703) { + var16 = params[254]; + } else { + var16 = params[255]; + } + } + } + } + double var17; + if (input[0] >= -1.2588764) { + if (input[0] >= -1.2491871) { + if (input[4] >= 1.5) { + if (input[2] >= -0.33772516) { + var17 = params[256]; + } else { + var17 = params[257]; + } + } else { + if (input[0] >= -1.2450345) { + var17 = params[258]; + } else { + var17 = params[259]; + } + } + } else { + if (input[2] >= -0.33772516) { + var17 = params[260]; + } else { + var17 = params[261]; + } + } + } else { + if (input[0] >= -1.264147) { + var17 = params[262]; + } else { + if (input[0] >= -1.2705889) { + var17 = params[263]; + } else { + if (input[0] >= -1.2877316) { + var17 = params[264]; + } else { + var17 = params[265]; + } + } + } + } + double var18; + if (input[0] >= -0.17350647) { + if (input[5] >= 3.5) { + if (input[2] >= -0.33772516) { + var18 = params[266]; + } else { + if (input[6] >= 4.5) { + var18 = params[267]; + } else { + var18 = params[268]; + } + } + } else { + if (input[8] >= 0.5) { + if (input[5] >= 2.5) { + var18 = params[269]; + } else { + var18 = params[270]; + } + } else { + if (input[4] >= 1.5) { + var18 = params[271]; + } else { + var18 = params[272]; + } + } + } + } else { + if (input[0] >= -0.74022853) { + if (input[4] >= 0.5) { + if (input[6] >= 3.5) { + var18 = params[273]; + } else { + var18 = params[274]; + } + } else { + if (input[1] >= -0.07430856) { + var18 = params[275]; + } else { + var18 = params[276]; + } + } + } else { + if (input[1] >= 1.743147) { + if (input[6] >= 3.5) { + var18 = params[277]; + } else { + var18 = params[278]; + } + } else { + if (input[3] >= 2.775) { + var18 = params[279]; + } else { + var18 = params[280]; + } + } + } + } + double var19; + if (input[0] >= 3.7538326) { + if (input[6] >= 4.5) { + if (input[6] >= 5.5) { + var19 = params[281]; + } else { + var19 = params[282]; + } + } else { + var19 = params[283]; + } + } else { + if (input[0] >= 2.4982595) { + if (input[10] >= 0.5) { + if (input[6] >= 4.5) { + var19 = params[284]; + } else { + var19 = params[285]; + } + } else { + if (input[0] >= 3.4595842) { + var19 = params[286]; + } else { + var19 = params[287]; + } + } + } else { + if (input[0] >= -1.0987356) { + if (input[0] >= -1.0825511) { + var19 = params[288]; + } else { + var19 = params[289]; + } + } else { + if (input[3] >= 5.5550003) { + var19 = params[290]; + } else { + var19 = params[291]; + } + } + } + } + double var20; + if (input[9] >= 0.5) { + if (input[6] >= 5.5) { + if (input[5] >= 1.5) { + if (input[0] >= 0.025445204) { + var20 = params[292]; + } else { + var20 = params[293]; + } + } else { + if (input[6] >= 6.5) { + var20 = params[294]; + } else { + var20 = params[295]; + } + } + } else { + if (input[2] >= -0.33772516) { + if (input[0] >= -1.1011845) { + var20 = params[296]; + } else { + var20 = params[297]; + } + } else { + if (input[6] >= 4.5) { + var20 = params[298]; + } else { + var20 = params[299]; + } + } + } + } else { + if (input[5] >= 3.5) { + if (input[6] >= 6.5) { + if (input[0] >= -0.4843651) { + var20 = params[300]; + } else { + var20 = params[301]; + } + } else { + if (input[6] >= 4.5) { + var20 = params[302]; + } else { + var20 = params[303]; + } + } + } else { + if (input[6] >= 3.5) { + if (input[3] >= 6.9449997) { + var20 = params[304]; + } else { + var20 = params[305]; + } + } else { + if (input[0] >= 0.970266) { + var20 = params[306]; + } else { + var20 = params[307]; + } + } + } + } + double var21; + if (input[6] >= 2.5) { + if (input[0] >= -1.1965344) { + if (input[0] >= -1.185514) { + if (input[4] >= -1.5) { + var21 = params[308]; + } else { + var21 = params[309]; + } + } else { + if (input[2] >= 0.71760345) { + var21 = params[310]; + } else { + var21 = params[311]; + } + } + } else { + if (input[0] >= -1.2168714) { + if (input[4] >= 0.5) { + var21 = params[312]; + } else { + var21 = params[313]; + } + } else { + if (input[0] >= -1.2289565) { + var21 = params[314]; + } else { + var21 = params[315]; + } + } + } + } else { + if (input[13] >= 0.5) { + var21 = params[316]; + } else { + if (input[0] >= -0.13538781) { + if (input[0] >= 0.11685543) { + var21 = params[317]; + } else { + var21 = params[318]; + } + } else { + if (input[1] >= -0.5290814) { + var21 = params[319]; + } else { + var21 = params[320]; + } + } + } + } + double var22; + if (input[5] >= 3.5) { + if (input[0] >= -0.5676831) { + if (input[0] >= -0.0968965) { + if (input[0] >= 2.0508978) { + var22 = params[321]; + } else { + var22 = params[322]; + } + } else { + if (input[2] >= 0.71760345) { + var22 = params[323]; + } else { + var22 = params[324]; + } + } + } else { + if (input[0] >= -0.75076973) { + var22 = params[325]; + } else { + if (input[4] >= 0.5) { + var22 = params[326]; + } else { + var22 = params[327]; + } + } + } + } else { + if (input[4] >= 2.5) { + if (input[0] >= -0.7634937) { + if (input[5] >= 1.5) { + var22 = params[328]; + } else { + var22 = params[329]; + } + } else { + if (input[0] >= -1.0404396) { + var22 = params[330]; + } else { + var22 = params[331]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[6] >= 3.5) { + var22 = params[332]; + } else { + var22 = params[333]; + } + } else { + if (input[6] >= 10.5) { + var22 = params[334]; + } else { + var22 = params[335]; + } + } + } + } + double var23; + if (input[2] >= 0.71760345) { + if (input[5] >= 1.5) { + if (input[6] >= 7.5) { + if (input[11] >= 0.5) { + var23 = params[336]; + } else { + var23 = params[337]; + } + } else { + if (input[0] >= -1.1334469) { + var23 = params[338]; + } else { + var23 = params[339]; + } + } + } else { + if (input[1] >= 0.83523715) { + var23 = params[340]; + } else { + if (input[0] >= -0.78191423) { + var23 = params[341]; + } else { + var23 = params[342]; + } + } + } + } else { + if (input[0] >= -1.0565708) { + if (input[1] >= 1.743147) { + if (input[0] >= -0.78510845) { + var23 = params[343]; + } else { + var23 = params[344]; + } + } else { + if (input[0] >= -1.0469879) { + var23 = params[345]; + } else { + var23 = params[346]; + } + } + } else { + if (input[6] >= 7.5) { + if (input[11] >= 0.5) { + var23 = params[347]; + } else { + var23 = params[348]; + } + } else { + if (input[0] >= -1.0720099) { + var23 = params[349]; + } else { + var23 = params[350]; + } + } + } + } + double var24; + if (input[3] >= -4.165) { + if (input[3] >= -2.775) { + if (input[2] >= 2.8282604) { + if (input[0] >= -0.4214374) { + var24 = params[351]; + } else { + var24 = params[352]; + } + } else { + if (input[0] >= -1.3091335) { + var24 = params[353]; + } else { + var24 = params[354]; + } + } + } else { + if (input[0] >= -0.28008962) { + if (input[10] >= 0.5) { + var24 = params[355]; + } else { + var24 = params[356]; + } + } else { + if (input[10] >= 0.5) { + var24 = params[357]; + } else { + var24 = params[358]; + } + } + } + } else { + if (input[6] >= 7.5) { + if (input[5] >= 2.5) { + if (input[0] >= -0.6409923) { + var24 = params[359]; + } else { + var24 = params[360]; + } + } else { + if (input[7] >= 0.5) { + var24 = params[361]; + } else { + var24 = params[362]; + } + } + } else { + if (input[0] >= -0.89903855) { + if (input[0] >= -0.83616406) { + var24 = params[363]; + } else { + var24 = params[364]; + } + } else { + if (input[1] >= 1.2883742) { + var24 = params[365]; + } else { + var24 = params[366]; + } + } + } + } + double var25; + if (input[4] >= -0.5) { + if (input[2] >= 1.772932) { + if (input[6] >= 10.5) { + if (input[0] >= -0.08401282) { + var25 = params[367]; + } else { + var25 = params[368]; + } + } else { + if (input[0] >= -0.69188815) { + var25 = params[369]; + } else { + var25 = params[370]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[0] >= 1.8111124) { + var25 = params[371]; + } else { + var25 = params[372]; + } + } else { + if (input[10] >= 0.5) { + var25 = params[373]; + } else { + var25 = params[374]; + } + } + } + } else { + if (input[2] >= 0.71760345) { + if (input[0] >= -0.088112175) { + if (input[0] >= 0.20363392) { + var25 = params[375]; + } else { + var25 = params[376]; + } + } else { + if (input[4] >= -1.5) { + var25 = params[377]; + } else { + var25 = params[378]; + } + } + } else { + if (input[10] >= 0.5) { + if (input[6] >= 7.5) { + var25 = params[379]; + } else { + var25 = params[380]; + } + } else { + if (input[5] >= 1.5) { + var25 = params[381]; + } else { + var25 = params[382]; + } + } + } + } + double var26; + if (input[13] >= 0.5) { + if (input[2] >= -0.33772516) { + if (input[0] >= -0.060108803) { + if (input[0] >= 1.0867515) { + var26 = params[383]; + } else { + var26 = params[384]; + } + } else { + if (input[0] >= -0.23749894) { + var26 = params[385]; + } else { + var26 = params[386]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[0] >= -0.45194298) { + var26 = params[387]; + } else { + var26 = params[388]; + } + } else { + if (input[4] >= 1.5) { + var26 = params[389]; + } else { + var26 = params[390]; + } + } + } + } else { + if (input[5] >= 1.5) { + if (input[0] >= -1.298965) { + if (input[6] >= 2.5) { + var26 = params[391]; + } else { + var26 = params[392]; + } + } else { + var26 = params[393]; + } + } else { + if (input[0] >= -0.8878052) { + if (input[0] >= -0.6352426) { + var26 = params[394]; + } else { + var26 = params[395]; + } + } else { + if (input[0] >= -0.91234815) { + var26 = params[396]; + } else { + var26 = params[397]; + } + } + } + } + double var27; + if (input[2] >= 1.772932) { + if (input[0] >= -0.6375318) { + if (input[5] >= 1.5) { + if (input[3] >= 5.5550003) { + var27 = params[398]; + } else { + var27 = params[399]; + } + } else { + var27 = params[400]; + } + } else { + if (input[6] >= 11.5) { + if (input[4] >= -1.5) { + var27 = params[401]; + } else { + var27 = params[402]; + } + } else { + if (input[4] >= -0.5) { + var27 = params[403]; + } else { + var27 = params[404]; + } + } + } + } else { + if (input[4] >= -0.5) { + if (input[13] >= 0.5) { + if (input[5] >= 2.5) { + var27 = params[405]; + } else { + var27 = params[406]; + } + } else { + if (input[3] >= 4.165) { + var27 = params[407]; + } else { + var27 = params[408]; + } + } + } else { + if (input[8] >= 0.5) { + if (input[6] >= 8.5) { + var27 = params[409]; + } else { + var27 = params[410]; + } + } else { + if (input[3] >= 6.9449997) { + var27 = params[411]; + } else { + var27 = params[412]; + } + } + } + } + double var28; + if (input[0] >= -1.2491871) { + if (input[0] >= -1.2056382) { + if (input[5] >= 3.5) { + if (input[10] >= 0.5) { + var28 = params[413]; + } else { + var28 = params[414]; + } + } else { + if (input[0] >= -1.0924001) { + var28 = params[415]; + } else { + var28 = params[416]; + } + } + } else { + if (input[0] >= -1.2129318) { + var28 = params[417]; + } else { + if (input[3] >= 1.39) { + var28 = params[418]; + } else { + var28 = params[419]; + } + } + } + } else { + if (input[0] >= -1.2617514) { + if (input[0] >= -1.2571197) { + if (input[0] >= -1.2537123) { + var28 = params[420]; + } else { + var28 = params[421]; + } + } else { + var28 = params[422]; + } + } else { + if (input[5] >= 2.5) { + if (input[0] >= -1.2735169) { + var28 = params[423]; + } else { + var28 = params[424]; + } + } else { + if (input[7] >= 0.5) { + var28 = params[425]; + } else { + var28 = params[426]; + } + } + } + } + double var29; + if (input[0] >= 3.872394) { + var29 = params[427]; + } else { + if (input[0] >= 3.4574013) { + if (input[0] >= 3.5294328) { + if (input[6] >= 6.5) { + var29 = params[428]; + } else { + var29 = params[429]; + } + } else { + var29 = params[430]; + } + } else { + if (input[0] >= 2.9590907) { + if (input[0] >= 3.0810065) { + var29 = params[431]; + } else { + var29 = params[432]; + } + } else { + if (input[0] >= 2.872951) { + var29 = params[433]; + } else { + var29 = params[434]; + } + } + } + } + return 0.5 + (var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22 + var23 + var24 + var25 + var26 + var27 + var28 + var29); + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java new file mode 100644 index 00000000..03825016 --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java @@ -0,0 +1,1111 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_speedRelative_priority implements FeatureRegressor { + + public static BerlinNetworkParams_speedRelative_priority INSTANCE = new BerlinNetworkParams_speedRelative_priority(); + public static final double[] DEFAULT_PARAMS = {0.15724492, 0.19273548, 0.18403086, 0.19157858, 0.16120821, 0.1980568, 0.17025721, 0.14275415, 0.11048176, 0.102709346, 0.06792478, 0.10821823, 0.09011285, 0.08277143, 0.09243622, 0.09845659, 0.06138229, 0.06789871, 0.057023786, 0.045561712, 0.040391147, 0.054062303, 0.0, 0.040396813, 0.035386518, 0.0, 0.042849354, 0.0466025, 0.035123896, 0.0, 0.016435765, 0.0, 0.0, 0.019191166, 0.040614914, 0.027222177, 0.0048989994, 0.035677213, 0.021704927, 0.015032333, 0.031955387, 0.01666849, 0.0074288645, 0.014110131, 0.024576068, 0.010005573, 0.041455485, 0.025570804, 0.017918263, 0.0, 0.0, 0.01256823, 0.015104672, -0.012481432, 0.00536652, 0.009893488, 0.009986547, 0.018633667, 0.012301514, 0.0055723884, -0.0042632725, 0.009677288, 0.0015550333, 0.006243969, -0.0037499985, 0.0032326714, 0.0217748, 0.0048877522, -0.01280412, 0.0, 0.011345619, 0.0, 0.0, 0.0035977655, -0.008411235, 0.0, 0.01370504, -0.0006115317, 0.007350211, 0.0014637669, 0.005347326, 0.0020510554, 0.005052541, -0.0014409187, 0.0018602, -0.0016169732, 0.0031055745, -0.0056220083, 0.011374512, 0.0, 0.001966972, -0.0028674304, 0.0020517444, 0.00076617644, -0.0046325005, -0.004758692, 0.0012792036, -0.008385347, 0.0, 0.002726265, 0.00020829745, 0.0, 0.0, -0.0082345735, 0.0, -0.035001624, -0.0050901906, 0.0, -0.0017592426, 0.00027184488, -0.0030666916, -0.013880559, 0.0053953347, 0.0035018784, 0.00045144613, 8.061571e-05, -0.0033695176, 0.0030606918, 0.00033529464, -0.004963807, 0.010418295, -0.00029751126, -0.006895263, 0.00044846663, 0.0026161217, -0.021911642, -0.0044968612, 0.0, -0.0012206174, -0.025058791, 0.0042696362, -0.0005126147, 0.0004962817, -0.00077095797, 0.002565097, 0.0, -0.006931564, 0.0, -0.022092693, -0.007780278, 0.0007043617, -0.0008171179, -0.002066162, 0.008384691, 0.0011571822, 0.00027108335, -0.0009287675, 0.006082932, 0.0028573114, -0.00846794, 0.00018975107, 0.0045378944, -0.0011339803, 0.005224601, -6.513751e-05, 0.0, 0.0, -0.018269084, 0.0034695654, -0.00026458103, -0.0027475485, 0.0068913423, 0.0, -0.012815217, 0.00026853607, -0.0027989408, 0.00024086394, 0.0066861873, 0.0, 6.4727988e-06, -0.0014501911, -0.002494975, 0.0015008535, -0.00049155444, 0.0067627244, -0.0014077883, 0.0015698029, 0.0, -0.010308943, -0.0009068087, 0.0, 0.0027998113, -0.0046737837, 0.00012720711, -0.0042179585, 0.003662557, -0.0012615945, 0.00192968, 3.7585372e-07, 9.2846225e-05, 0.013026616, -0.008578217, -0.005248636, -0.0036968153, 0.0003156052, 0.0024093715, -0.0003495667, -0.00030448436, -3.8445793e-05, 0.0, -0.024849607, 0.00016108007, 0.015603923, 0.0, -0.0035782477, -2.18532e-05, -0.009707966, 0.0, 0.0041826395, -0.0035536666, 0.004105262, 0.010043072, 0.00020426886, 3.1741417e-06, 0.00572087, -0.0007401902, 0.0, -0.0108033465, -0.013462666, -0.001430584, -0.00095125375, 4.312593e-05, 0.00028308886, 0.0037140378, 0.00079021766, -0.005122026, -0.0013027412, -0.0047874786, 0.0041786814, -0.0005791032, -0.008750576, 0.0137136765, 4.2379565e-06, 0.0030340564, -0.021573383, -0.0009175329, 0.00065593724, -0.0048078895, 0.00050423876, 0.0017348679, -0.010162599, 0.00016265023, 0.0029644673, -0.008102837, 0.0024075173, -1.6770764e-05, 0.00025584106, -3.6568855e-07, -0.0074612647, 0.011033748, 0.0, 0.007791925, -0.019453187, 0.0005933511, 0.0024033622, -0.0007407156, -0.0063573257, 0.0012771342, 0.0044823387, -0.0023863865, 4.71596e-05, 0.000489205, -0.0005635803, -3.7119185e-05, 0.0027739953, -0.0083763795, -0.02207759, -0.002804457, 0.015720833, 0.0, 0.0007142104, -3.4262026e-05, 0.005516721, -0.0006166697, 0.0, 0.0132253505, 0.0, -0.0045134304, 0.0060599926, -0.00045232018}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 142.5375147043097) / 99.88133624783757; + data[1] = (ft.getDouble("speed") - 12.960856860228855) / 3.818676471858858; + data[2] = (ft.getDouble("num_lanes") - 1.2051384878622606) / 0.6153877429557003; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[3] >= -3.4699998) { + if (input[1] >= -0.12068497) { + if (input[7] >= 0.5) { + var0 = params[0]; + } else { + if (input[0] >= -0.30794054) { + var0 = params[1]; + } else { + var0 = params[2]; + } + } + } else { + if (input[7] >= 0.5) { + if (input[0] >= -1.0670915) { + var0 = params[3]; + } else { + var0 = params[4]; + } + } else { + var0 = params[5]; + } + } + } else { + if (input[0] >= -0.22288963) { + var0 = params[6]; + } else { + var0 = params[7]; + } + } + double var1; + if (input[2] >= 0.47914752) { + if (input[11] >= 0.5) { + var1 = params[8]; + } else { + var1 = params[9]; + } + } else { + if (input[1] >= -0.12068497) { + if (input[3] >= 4.165) { + if (input[5] >= 1.5) { + var1 = params[10]; + } else { + var1 = params[11]; + } + } else { + if (input[9] >= 0.5) { + var1 = params[12]; + } else { + var1 = params[13]; + } + } + } else { + if (input[5] >= 1.5) { + var1 = params[14]; + } else { + if (input[3] >= -1.385) { + var1 = params[15]; + } else { + var1 = params[16]; + } + } + } + } + double var2; + if (input[2] >= 0.47914752) { + if (input[0] >= -0.5885235) { + if (input[0] >= 1.1001804) { + var2 = params[17]; + } else { + if (input[4] >= -0.5) { + var2 = params[18]; + } else { + var2 = params[19]; + } + } + } else { + if (input[2] >= 2.1041393) { + if (input[5] >= 1.5) { + var2 = params[20]; + } else { + var2 = params[21]; + } + } else { + if (input[6] >= 8.5) { + var2 = params[22]; + } else { + var2 = params[23]; + } + } + } + } else { + if (input[3] >= -1.385) { + if (input[1] >= 1.3340075) { + if (input[0] >= -1.3194408) { + var2 = params[24]; + } else { + var2 = params[25]; + } + } else { + if (input[5] >= 1.5) { + var2 = params[26]; + } else { + var2 = params[27]; + } + } + } else { + if (input[0] >= -0.65860665) { + if (input[3] >= -12.775) { + var2 = params[28]; + } else { + var2 = params[29]; + } + } else { + if (input[0] >= -1.1179017) { + var2 = params[30]; + } else { + var2 = params[31]; + } + } + } + } + double var3; + if (input[0] >= -0.82680625) { + if (input[2] >= 0.47914752) { + if (input[1] >= 4.607393) { + if (input[5] >= 1.5) { + var3 = params[32]; + } else { + var3 = params[33]; + } + } else { + if (input[12] >= 0.5) { + var3 = params[34]; + } else { + var3 = params[35]; + } + } + } else { + if (input[13] >= 0.5) { + if (input[9] >= 0.5) { + var3 = params[36]; + } else { + var3 = params[37]; + } + } else { + if (input[3] >= -2.775) { + var3 = params[38]; + } else { + var3 = params[39]; + } + } + } + } else { + if (input[1] >= -0.84868586) { + if (input[0] >= -1.1422806) { + if (input[3] >= 1.385) { + var3 = params[40]; + } else { + var3 = params[41]; + } + } else { + if (input[5] >= 1.5) { + var3 = params[42]; + } else { + var3 = params[43]; + } + } + } else { + if (input[6] >= 2.5) { + if (input[9] >= 0.5) { + var3 = params[44]; + } else { + var3 = params[45]; + } + } else { + if (input[3] >= 1.385) { + var3 = params[46]; + } else { + var3 = params[47]; + } + } + } + } + double var4; + if (input[0] >= 0.67307353) { + if (input[2] >= 0.47914752) { + if (input[3] >= -7.2250004) { + var4 = params[48]; + } else { + var4 = params[49]; + } + } else { + if (input[1] >= 3.1527004) { + var4 = params[50]; + } else { + var4 = params[51]; + } + } + } else { + if (input[1] >= -0.12068497) { + if (input[7] >= 0.5) { + if (input[10] >= 0.5) { + var4 = params[52]; + } else { + var4 = params[53]; + } + } else { + if (input[5] >= 2.5) { + var4 = params[54]; + } else { + var4 = params[55]; + } + } + } else { + if (input[7] >= 0.5) { + var4 = params[56]; + } else { + if (input[2] >= 0.47914752) { + var4 = params[57]; + } else { + var4 = params[58]; + } + } + } + } + double var5; + if (input[0] >= -0.085927114) { + if (input[1] >= 3.1527004) { + if (input[0] >= 1.0653391) { + var5 = params[59]; + } else { + var5 = params[60]; + } + } else { + if (input[2] >= 0.47914752) { + var5 = params[61]; + } else { + if (input[1] >= 1.3340075) { + var5 = params[62]; + } else { + var5 = params[63]; + } + } + } + } else { + if (input[0] >= -1.2767903) { + if (input[5] >= 2.5) { + if (input[8] >= 0.5) { + var5 = params[64]; + } else { + var5 = params[65]; + } + } else { + if (input[12] >= 0.5) { + var5 = params[66]; + } else { + var5 = params[67]; + } + } + } else { + if (input[5] >= 1.5) { + if (input[10] >= 0.5) { + var5 = params[68]; + } else { + var5 = params[69]; + } + } else { + if (input[11] >= 0.5) { + var5 = params[70]; + } else { + var5 = params[71]; + } + } + } + } + double var6; + if (input[3] >= 1.385) { + if (input[5] >= 1.5) { + if (input[0] >= -1.1402783) { + if (input[8] >= 0.5) { + var6 = params[72]; + } else { + var6 = params[73]; + } + } else { + var6 = params[74]; + } + } else { + if (input[0] >= 0.38107705) { + var6 = params[75]; + } else { + if (input[8] >= 0.5) { + var6 = params[76]; + } else { + var6 = params[77]; + } + } + } + } else { + if (input[9] >= 0.5) { + if (input[10] >= 0.5) { + if (input[2] >= 2.1041393) { + var6 = params[78]; + } else { + var6 = params[79]; + } + } else { + if (input[0] >= -0.7905632) { + var6 = params[80]; + } else { + var6 = params[81]; + } + } + } else { + if (input[0] >= 1.1777724) { + var6 = params[82]; + } else { + if (input[5] >= 1.5) { + var6 = params[83]; + } else { + var6 = params[84]; + } + } + } + } + double var7; + if (input[2] >= 2.1041393) { + if (input[1] >= 3.1527004) { + var7 = params[85]; + } else { + if (input[4] >= -0.5) { + if (input[0] >= -1.0910699) { + var7 = params[86]; + } else { + var7 = params[87]; + } + } else { + if (input[0] >= -1.1057372) { + var7 = params[88]; + } else { + var7 = params[89]; + } + } + } + } else { + if (input[4] >= -0.5) { + if (input[1] >= 1.3340075) { + if (input[11] >= 0.5) { + var7 = params[90]; + } else { + var7 = params[91]; + } + } else { + if (input[9] >= 0.5) { + var7 = params[92]; + } else { + var7 = params[93]; + } + } + } else { + var7 = params[94]; + } + } + double var8; + if (input[0] >= 0.18489426) { + if (input[3] >= 9.725) { + var8 = params[95]; + } else { + var8 = params[96]; + } + } else { + if (input[3] >= -4.855) { + if (input[7] >= 0.5) { + if (input[1] >= -0.84868586) { + var8 = params[97]; + } else { + var8 = params[98]; + } + } else { + if (input[3] >= 1.385) { + var8 = params[99]; + } else { + var8 = params[100]; + } + } + } else { + if (input[9] >= 0.5) { + var8 = params[101]; + } else { + if (input[6] >= 3.5) { + var8 = params[102]; + } else { + var8 = params[103]; + } + } + } + } + double var9; + if (input[6] >= 7.5) { + if (input[0] >= -0.9916018) { + if (input[2] >= 3.729131) { + var9 = params[104]; + } else { + if (input[8] >= 0.5) { + var9 = params[105]; + } else { + var9 = params[106]; + } + } + } else { + var9 = params[107]; + } + } else { + if (input[5] >= 2.5) { + if (input[0] >= -0.72153133) { + if (input[8] >= 0.5) { + var9 = params[108]; + } else { + var9 = params[109]; + } + } else { + if (input[6] >= 3.5) { + var9 = params[110]; + } else { + var9 = params[111]; + } + } + } else { + if (input[6] >= 5.5) { + var9 = params[112]; + } else { + if (input[13] >= 0.5) { + var9 = params[113]; + } else { + var9 = params[114]; + } + } + } + } + double var10; + if (input[3] >= -5.835) { + if (input[0] >= -0.895688) { + if (input[5] >= 1.5) { + if (input[4] >= -0.5) { + var10 = params[115]; + } else { + var10 = params[116]; + } + } else { + if (input[6] >= 2.5) { + var10 = params[117]; + } else { + var10 = params[118]; + } + } + } else { + if (input[0] >= -0.9304292) { + var10 = params[119]; + } else { + if (input[3] >= 9.725) { + var10 = params[120]; + } else { + var10 = params[121]; + } + } + } + } else { + var10 = params[122]; + } + double var11; + if (input[2] >= 0.47914752) { + if (input[10] >= 0.5) { + if (input[5] >= 1.5) { + var11 = params[123]; + } else { + var11 = params[124]; + } + } else { + if (input[6] >= 6.5) { + var11 = params[125]; + } else { + if (input[6] >= 3.5) { + var11 = params[126]; + } else { + var11 = params[127]; + } + } + } + } else { + if (input[10] >= 0.5) { + if (input[5] >= 1.5) { + if (input[6] >= 1.5) { + var11 = params[128]; + } else { + var11 = params[129]; + } + } else { + if (input[3] >= 1.385) { + var11 = params[130]; + } else { + var11 = params[131]; + } + } + } else { + if (input[5] >= 1.5) { + var11 = params[132]; + } else { + if (input[6] >= 1.5) { + var11 = params[133]; + } else { + var11 = params[134]; + } + } + } + } + double var12; + if (input[9] >= 0.5) { + if (input[1] >= 0.60731596) { + if (input[0] >= 1.7070005) { + var12 = params[135]; + } else { + var12 = params[136]; + } + } else { + if (input[13] >= 0.5) { + if (input[0] >= 0.7755952) { + var12 = params[137]; + } else { + var12 = params[138]; + } + } else { + if (input[5] >= 3.5) { + var12 = params[139]; + } else { + var12 = params[140]; + } + } + } + } else { + if (input[13] >= 0.5) { + if (input[6] >= 2.5) { + var12 = params[141]; + } else { + if (input[3] >= 1.39) { + var12 = params[142]; + } else { + var12 = params[143]; + } + } + } else { + if (input[11] >= 0.5) { + var12 = params[144]; + } else { + if (input[3] >= 1.385) { + var12 = params[145]; + } else { + var12 = params[146]; + } + } + } + } + double var13; + if (input[1] >= 3.1527004) { + if (input[4] >= 0.5) { + var13 = params[147]; + } else { + if (input[1] >= 6.1341) { + var13 = params[148]; + } else { + if (input[3] >= -2.775) { + var13 = params[149]; + } else { + var13 = params[150]; + } + } + } + } else { + if (input[12] >= 0.5) { + var13 = params[151]; + } else { + if (input[6] >= 5.5) { + if (input[6] >= 6.5) { + var13 = params[152]; + } else { + var13 = params[153]; + } + } else { + var13 = params[154]; + } + } + } + double var14; + if (input[6] >= 3.5) { + if (input[13] >= 0.5) { + if (input[1] >= 2.060699) { + var14 = params[155]; + } else { + if (input[4] >= 2.5) { + var14 = params[156]; + } else { + var14 = params[157]; + } + } + } else { + if (input[1] >= 0.60731596) { + var14 = params[158]; + } else { + if (input[0] >= -0.8955879) { + var14 = params[159]; + } else { + var14 = params[160]; + } + } + } + } else { + if (input[13] >= 0.5) { + if (input[0] >= -1.1934414) { + if (input[4] >= 0.5) { + var14 = params[161]; + } else { + var14 = params[162]; + } + } else { + var14 = params[163]; + } + } else { + if (input[1] >= 0.60731596) { + if (input[0] >= 0.20576903) { + var14 = params[164]; + } else { + var14 = params[165]; + } + } else { + var14 = params[166]; + } + } + } + double var15; + if (input[0] >= -0.28436258) { + if (input[0] >= -0.20201486) { + if (input[7] >= 0.5) { + if (input[4] >= 0.5) { + var15 = params[167]; + } else { + var15 = params[168]; + } + } else { + if (input[1] >= -0.84868586) { + var15 = params[169]; + } else { + var15 = params[170]; + } + } + } else { + var15 = params[171]; + } + } else { + if (input[0] >= -0.4798946) { + var15 = params[172]; + } else { + if (input[1] >= -0.84868586) { + if (input[0] >= -1.3518293) { + var15 = params[173]; + } else { + var15 = params[174]; + } + } else { + if (input[7] >= 0.5) { + var15 = params[175]; + } else { + var15 = params[176]; + } + } + } + } + double var16; + if (input[5] >= 2.5) { + if (input[1] >= -0.48468542) { + if (input[7] >= 0.5) { + if (input[0] >= 1.2699318) { + var16 = params[177]; + } else { + var16 = params[178]; + } + } else { + var16 = params[179]; + } + } else { + if (input[0] >= -1.0003622) { + if (input[3] >= 5.5550003) { + var16 = params[180]; + } else { + var16 = params[181]; + } + } else { + var16 = params[182]; + } + } + } else { + if (input[0] >= -1.2026021) { + if (input[0] >= -1.1579993) { + if (input[0] >= -1.1423306) { + var16 = params[183]; + } else { + var16 = params[184]; + } + } else { + var16 = params[185]; + } + } else { + var16 = params[186]; + } + } + double var17; + if (input[3] >= -9.725) { + if (input[0] >= 2.9220424) { + var17 = params[187]; + } else { + if (input[5] >= 0.5) { + var17 = params[188]; + } else { + if (input[0] >= -1.0536754) { + var17 = params[189]; + } else { + var17 = params[190]; + } + } + } + } else { + var17 = params[191]; + } + double var18; + if (input[3] >= 15.275) { + var18 = params[192]; + } else { + if (input[9] >= 0.5) { + if (input[1] >= 1.3340075) { + var18 = params[193]; + } else { + var18 = params[194]; + } + } else { + if (input[1] >= 0.60731596) { + if (input[6] >= 2.5) { + var18 = params[195]; + } else { + var18 = params[196]; + } + } else { + var18 = params[197]; + } + } + } + double var19; + if (input[0] >= -1.3374121) { + if (input[0] >= -1.3175887) { + var19 = params[198]; + } else { + if (input[6] >= 2.5) { + var19 = params[199]; + } else { + if (input[1] >= -0.48468542) { + var19 = params[200]; + } else { + var19 = params[201]; + } + } + } + } else { + if (input[0] >= -1.3404157) { + var19 = params[202]; + } else { + var19 = params[203]; + } + } + double var20; + if (input[0] >= -0.39899862) { + if (input[0] >= -0.3775732) { + if (input[3] >= 8.335) { + var20 = params[204]; + } else { + var20 = params[205]; + } + } else { + if (input[0] >= -0.3868342) { + var20 = params[206]; + } else { + var20 = params[207]; + } + } + } else { + if (input[3] >= 5.975) { + var20 = params[208]; + } else { + if (input[3] >= 5.5550003) { + if (input[6] >= 2.5) { + var20 = params[209]; + } else { + var20 = params[210]; + } + } else { + if (input[3] >= 4.165) { + var20 = params[211]; + } else { + var20 = params[212]; + } + } + } + } + double var21; + if (input[3] >= -5.835) { + if (input[3] >= -2.775) { + var21 = params[213]; + } else { + if (input[0] >= 1.1943421) { + var21 = params[214]; + } else { + var21 = params[215]; + } + } + } else { + if (input[0] >= 0.8305104) { + var21 = params[216]; + } else { + var21 = params[217]; + } + } + double var22; + if (input[1] >= -0.84868586) { + if (input[5] >= 1.5) { + if (input[3] >= 1.385) { + if (input[8] >= 0.5) { + var22 = params[218]; + } else { + var22 = params[219]; + } + } else { + if (input[10] >= 0.5) { + var22 = params[220]; + } else { + var22 = params[221]; + } + } + } else { + if (input[8] >= 0.5) { + var22 = params[222]; + } else { + var22 = params[223]; + } + } + } else { + if (input[5] >= 1.5) { + if (input[0] >= -1.2628736) { + var22 = params[224]; + } else { + var22 = params[225]; + } + } else { + if (input[0] >= -1.0537255) { + var22 = params[226]; + } else { + if (input[4] >= 0.5) { + var22 = params[227]; + } else { + var22 = params[228]; + } + } + } + } + double var23; + if (input[1] >= -0.84868586) { + if (input[7] >= 0.5) { + if (input[0] >= -0.9870964) { + if (input[0] >= -0.10605099) { + var23 = params[229]; + } else { + var23 = params[230]; + } + } else { + var23 = params[231]; + } + } else { + if (input[0] >= -0.87711596) { + if (input[0] >= -0.84332585) { + var23 = params[232]; + } else { + var23 = params[233]; + } + } else { + if (input[0] >= -0.87846756) { + var23 = params[234]; + } else { + var23 = params[235]; + } + } + } + } else { + if (input[0] >= 1.6461782) { + if (input[7] >= 0.5) { + var23 = params[236]; + } else { + var23 = params[237]; + } + } else { + var23 = params[238]; + } + } + double var24; + if (input[6] >= 4.5) { + if (input[10] >= 0.5) { + var24 = params[239]; + } else { + if (input[8] >= 0.5) { + var24 = params[240]; + } else { + var24 = params[241]; + } + } + } else { + if (input[1] >= 4.607393) { + if (input[2] >= 2.1041393) { + if (input[4] >= -0.5) { + var24 = params[242]; + } else { + var24 = params[243]; + } + } else { + var24 = params[244]; + } + } else { + var24 = params[245]; + } + } + double var25; + if (input[0] >= -1.2263803) { + if (input[3] >= 1.385) { + var25 = params[246]; + } else { + if (input[0] >= -1.2086093) { + var25 = params[247]; + } else { + var25 = params[248]; + } + } + } else { + if (input[11] >= 0.5) { + if (input[0] >= -1.3157866) { + var25 = params[249]; + } else { + var25 = params[250]; + } + } else { + if (input[1] >= 0.60731596) { + var25 = params[251]; + } else { + if (input[13] >= 0.5) { + var25 = params[252]; + } else { + var25 = params[253]; + } + } + } + } + double var26; + if (input[3] >= 5.5550003) { + if (input[9] >= 0.5) { + var26 = params[254]; + } else { + var26 = params[255]; + } + } else { + if (input[3] >= 1.385) { + if (input[1] >= -0.84868586) { + if (input[5] >= 1.5) { + var26 = params[256]; + } else { + var26 = params[257]; + } + } else { + var26 = params[258]; + } + } else { + if (input[10] >= 0.5) { + if (input[5] >= 2.5) { + var26 = params[259]; + } else { + var26 = params[260]; + } + } else { + if (input[5] >= 1.5) { + var26 = params[261]; + } else { + var26 = params[262]; + } + } + } + } + double var27; + if (input[0] >= -1.0221381) { + if (input[0] >= -1.005168) { + if (input[6] >= 1.5) { + var27 = params[263]; + } else { + if (input[0] >= -0.9433446) { + var27 = params[264]; + } else { + var27 = params[265]; + } + } + } else { + if (input[11] >= 0.5) { + var27 = params[266]; + } else { + var27 = params[267]; + } + } + } else { + if (input[0] >= -1.0292464) { + if (input[1] >= -0.48468542) { + var27 = params[268]; + } else { + var27 = params[269]; + } + } else { + var27 = params[270]; + } + } + double var28; + if (input[0] >= -1.0642881) { + if (input[0] >= -1.0552773) { + var28 = params[271]; + } else { + var28 = params[272]; + } + } else { + var28 = params[273]; + } + double var29; + if (input[6] >= 1.5) { + var29 = params[274]; + } else { + if (input[13] >= 0.5) { + if (input[4] >= 0.5) { + var29 = params[275]; + } else { + var29 = params[276]; + } + } else { + if (input[5] >= 1.5) { + var29 = params[277]; + } else { + if (input[10] >= 0.5) { + var29 = params[278]; + } else { + var29 = params[279]; + } + } + } + } + return 0.5 + (var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22 + var23 + var24 + var25 + var26 + var27 + var28 + var29); + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_right_before_left.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_right_before_left.java new file mode 100644 index 00000000..db67559a --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_right_before_left.java @@ -0,0 +1,949 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_speedRelative_right_before_left implements FeatureRegressor { + + public static BerlinNetworkParams_speedRelative_right_before_left INSTANCE = new BerlinNetworkParams_speedRelative_right_before_left(); + public static final double[] DEFAULT_PARAMS = {0.8646015117982583, 0.8788410625723447, 0.8484615384615384, 0.945952380952381, 0.8242520350020349, 0.8464025000000001, 0.8659559502272193, 0.8851620039682541, 0.8854518342303758, 0.9036853232070694, 0.8808906070032868, 0.872854898457248, 0.9044877414925957, 0.8882173312737994, 0.8725341191417284, 0.8904124999999997, 0.8766650168909327, 0.95, 0.841978021978022, 0.9156062500000001, 0.7878571428571428, 0.8427712711265344, 0.8648233821407353, 0.8876901544401542, 0.883205103692242, 0.8646209972822875, 0.8866945551896072, 0.8473611111111112, 0.8831034482758621, 0.947572549019608, 0.9169444444444443, 0.858, 0.8815480769230769, 0.8442475052521007, 0.8791538686343874, 0.9170643939393941, 0.8552576260838972, 0.8228541666666666, 0.8655722718142072, 0.8228571428571427, 0.8846874505658122, 0.8803174156285094, 0.89547561762474, 0.8859449046872315, 0.9583333333333334, 0.8745461096443238, 0.81, 0.8613491295425671, 0.8801602372823522, 0.8972979242979244, 0.9307508116883118, 0.8521188716101303, 0.8238969696969697, 0.8798309523809525, 0.8591700823789435, 0.8233333333333333, 0.775, 0.89, 0.8530980392156863, 0.8833953014408202, 0.8859223703206229, 0.8855555555555557, 0.9439956896551724, 0.9228888888888889, 0.8783163410683079, 0.8604195804195804, 0.9267001262626261, 0.8281261581555698, 0.8477010869565219, 0.8666127761824998, 0.8062962962962963, 0.84, 0.83, 0.8183333333333334, 0.8853516286666312, 0.8805828454301285, 0.8871780218515735, 0.8768336002207475, 0.8638316796279627, 0.8226550733254063, 0.8773566710996508, 0.9227794011544013, 0.8507118505868506, 0.76, 0.867317187233316, 0.8889737274220032, 0.8850625631178106, 0.8704901477832513, 0.8791849007500389, 0.9340909090909091, 0.898711547291093, 0.9155819047619047, 0.8867853668262621, 0.8707731999800963, 0.8659184808203007, 0.88038522560916, 0.938935185185185, 0.8903836088154271, 0.8333437801833327, 0.76, 0.864311372655123, 0.8281666666666666, 0.7916666666666666, 0.8852040464273085, 0.8811688825317017, 0.9097142857142859, 0.9416666666666668, 0.8865754901134888, 0.835, 0.8557006531204645, 0.8779330792944756, 0.9231411152949612, 0.8818026315789473, 0.8398879629629631, 0.79, 0.8694108344163016, 0.7833333333333332, 0.8837289313753577, 0.887051019605796, 0.8555420168067227, 0.8775083476857672, 0.9176398467432951, 0.874, 0.97, 0.955, 0.8794895289863226, 0.8645938263125766, 0.8096666666666668, 0.9198954175905397, 0.9562499999999999, 0.918, 0.8626657599459774, 0.822037037037037, 0.8826614275944579, 0.8862027221096526, 0.8649898831327402, 0.8804261005414634, 0.9217642432653642, 0.8912820512820514, 0.97, 0.8868548356308275, 0.9259298245614033, 0.8635123963716513, 0.8782659865693775, 0.7993095238095239, 0.8433930386430386, 0.9460000000000001, 0.8666941731601728, 0.8322794117647059, 0.8844726660358417, 0.8703792582417583, 0.8853286661255411, 0.86, 0.9367663962136579, 0.975, 0.883190939869121, 0.8743693906754619, 0.8237655677655678, 0.9183613980716253, 0.8166904761904762, 0.8594422316924882, 0.8838009720684139, 0.806, 0.8853339766250385, 0.8812506179148929, 0.8628600185528758, 0.7999999999999999, 0.8878542845816493, 0.9633333333333333, 0.8777018713209191, 0.8266666666666668, 0.9316666666666666, 0.877054049516478, 0.8402930402930403, 0.9241172348484848, 0.945, 0.8337327999213593, 0.8649633698480658, 0.8134523809523808, 0.8840620595140162, 0.8572565864833905, 0.8876985803890554, 0.9355, 0.867561111111111, 0.8064285714285714, 0.9324999999999999, 0.8772805995015088, 0.8616292418980559, 0.8764349915696938, 0.8277216117216116, 0.9262029220779221, 0.846422560690943, 0.7988916666666667, 0.97, 0.8646500941575708, 0.8823639945193488, 0.8345238095238096, 0.7966666666666666, 0.8559901960784314, 0.8868004715687479, 0.9254051282051281, 0.9390000000000001, 0.8782161777941421, 0.8678469370796373, 0.8799823422307548, 0.8342978021978019, 0.8683570305983279, 0.75, 0.8839555839005792, 0.8864544178041903, 0.8099999999999999, 0.8647058823529412, 0.9041666666666667, 0.8816009852216748, 0.8980769230769231, 0.9506042780748661, 0.8869804203732776, 0.8543678750368408, 0.8785034662238783, 0.9150772357723577, 0.8510621882696062, 0.8648894198524483, 0.95, 0.8779582885785894, 0.8859811805275934, 0.853828125, 0.8772443936440636, 0.883097584153205, 0.9137179487179485, 0.8877334940237789, 0.868840953917877, 0.75}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 135.45585940281805) / 80.1533714259824; + data[1] = (ft.getDouble("speed") - 8.33240398799532) / 0.1138739274502052; + data[2] = (ft.getDouble("num_lanes") - 1.0053919324482425) / 0.07859221404615896; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[0] <= -0.8098955750465393) { + if (input[5] <= 2.5) { + if (input[11] <= 0.5) { + if (input[0] <= -1.4280853867530823) { + var0 = params[0]; + } else { + var0 = params[1]; + } + } else { + if (input[0] <= -1.4638917446136475) { + var0 = params[2]; + } else { + var0 = params[3]; + } + } + } else { + if (input[0] <= -1.2924079895019531) { + if (input[0] <= -1.3904076218605042) { + var0 = params[4]; + } else { + var0 = params[5]; + } + } else { + if (input[0] <= -0.8750830888748169) { + var0 = params[6]; + } else { + var0 = params[7]; + } + } + } + } else { + if (input[0] <= 0.2488871067762375) { + if (input[5] <= 2.5) { + if (input[6] <= 3.5) { + var0 = params[8]; + } else { + var0 = params[9]; + } + } else { + if (input[0] <= 0.18600765615701675) { + var0 = params[10]; + } else { + var0 = params[11]; + } + } + } else { + if (input[0] <= 2.8384850025177) { + if (input[0] <= 0.2687864452600479) { + var0 = params[12]; + } else { + var0 = params[13]; + } + } else { + if (input[6] <= 3.5) { + var0 = params[14]; + } else { + var0 = params[15]; + } + } + } + } + double var1; + if (input[0] <= -0.7619873881340027) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[13] <= 0.5) { + var1 = params[16]; + } else { + var1 = params[17]; + } + } else { + if (input[0] <= -1.3798653483390808) { + var1 = params[18]; + } else { + var1 = params[19]; + } + } + } else { + if (input[0] <= -1.2768753170967102) { + if (input[0] <= -1.4838534593582153) { + var1 = params[20]; + } else { + var1 = params[21]; + } + } else { + if (input[0] <= -0.8041565716266632) { + var1 = params[22]; + } else { + var1 = params[23]; + } + } + } + } else { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -0.029142373241484165) { + if (input[0] <= -0.04074512794613838) { + var1 = params[24]; + } else { + var1 = params[25]; + } + } else { + if (input[0] <= 4.404295444488525) { + var1 = params[26]; + } else { + var1 = params[27]; + } + } + } else { + if (input[5] <= 1.5) { + if (input[0] <= -0.6937432587146759) { + var1 = params[28]; + } else { + var1 = params[29]; + } + } else { + if (input[0] <= 0.5972816869616508) { + var1 = params[30]; + } else { + var1 = params[31]; + } + } + } + } + double var2; + if (input[0] <= -0.8362200856208801) { + if (input[5] <= 2.5) { + if (input[0] <= -1.4977643489837646) { + if (input[0] <= -1.5889021158218384) { + var2 = params[32]; + } else { + var2 = params[33]; + } + } else { + if (input[2] <= 6.293346848338842) { + var2 = params[34]; + } else { + var2 = params[35]; + } + } + } else { + if (input[0] <= -1.2901623249053955) { + if (input[0] <= -1.3366981148719788) { + var2 = params[36]; + } else { + var2 = params[37]; + } + } else { + if (input[0] <= -0.8462633192539215) { + var2 = params[38]; + } else { + var2 = params[39]; + } + } + } + } else { + if (input[0] <= 2.747970938682556) { + if (input[0] <= -0.1159135214984417) { + if (input[5] <= 2.5) { + var2 = params[40]; + } else { + var2 = params[41]; + } + } else { + if (input[0] <= -0.0778614692389965) { + var2 = params[42]; + } else { + var2 = params[43]; + } + } + } else { + if (input[5] <= 1.5) { + var2 = params[44]; + } else { + if (input[0] <= 4.5192625522613525) { + var2 = params[45]; + } else { + var2 = params[46]; + } + } + } + } + double var3; + if (input[0] <= -0.8377796113491058) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -1.4280853867530823) { + var3 = params[47]; + } else { + var3 = params[48]; + } + } else { + if (input[0] <= -1.2201714515686035) { + var3 = params[49]; + } else { + var3 = params[50]; + } + } + } else { + if (input[0] <= -1.1532372832298279) { + if (input[0] <= -1.1816204190254211) { + var3 = params[51]; + } else { + var3 = params[52]; + } + } else { + if (input[0] <= -0.9801940619945526) { + var3 = params[53]; + } else { + var3 = params[54]; + } + } + } + } else { + if (input[3] <= -2.7799999713897705) { + if (input[0] <= -0.16163835674524307) { + if (input[0] <= -0.46343477070331573) { + var3 = params[55]; + } else { + var3 = params[56]; + } + } else { + if (input[5] <= 1.5) { + var3 = params[57]; + } else { + var3 = params[58]; + } + } + } else { + if (input[11] <= 0.5) { + if (input[0] <= -0.11528971418738365) { + var3 = params[59]; + } else { + var3 = params[60]; + } + } else { + if (input[6] <= 3.5) { + var3 = params[61]; + } else { + var3 = params[62]; + } + } + } + } + double var4; + if (input[0] <= -0.8400876820087433) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -1.5900249481201172) { + var4 = params[63]; + } else { + var4 = params[64]; + } + } else { + if (input[0] <= -1.3598412871360779) { + var4 = params[65]; + } else { + var4 = params[66]; + } + } + } else { + if (input[0] <= -1.2901623249053955) { + if (input[0] <= -1.3904076218605042) { + var4 = params[67]; + } else { + var4 = params[68]; + } + } else { + if (input[0] <= -0.8460138142108917) { + var4 = params[69]; + } else { + var4 = params[70]; + } + } + } + } else { + if (input[8] <= 0.5) { + if (input[9] <= 0.5) { + if (input[0] <= 0.6279104650020599) { + var4 = params[71]; + } else { + var4 = params[72]; + } + } else { + var4 = params[73]; + } + } else { + if (input[0] <= 0.22405970096588135) { + if (input[5] <= 2.5) { + var4 = params[74]; + } else { + var4 = params[75]; + } + } else { + if (input[0] <= 2.757702350616455) { + var4 = params[76]; + } else { + var4 = params[77]; + } + } + } + } + double var5; + if (input[0] <= -0.7785182297229767) { + if (input[5] <= 2.5) { + if (input[0] <= -1.429208219051361) { + if (input[0] <= -1.449045181274414) { + var5 = params[78]; + } else { + var5 = params[79]; + } + } else { + if (input[2] <= 6.293346848338842) { + var5 = params[80]; + } else { + var5 = params[81]; + } + } + } else { + if (input[0] <= -1.2479931712150574) { + if (input[0] <= -1.2507379055023193) { + var5 = params[82]; + } else { + var5 = params[83]; + } + } else { + if (input[0] <= -0.7987294793128967) { + var5 = params[84]; + } else { + var5 = params[85]; + } + } + } + } else { + if (input[0] <= -0.11528971418738365) { + if (input[5] <= 2.5) { + if (input[0] <= -0.13082244247198105) { + var5 = params[86]; + } else { + var5 = params[87]; + } + } else { + if (input[4] <= 0.5) { + var5 = params[88]; + } else { + var5 = params[89]; + } + } + } else { + if (input[0] <= -0.09507846459746361) { + if (input[0] <= -0.09832224622368813) { + var5 = params[90]; + } else { + var5 = params[91]; + } + } else { + if (input[0] <= 3.716614007949829) { + var5 = params[92]; + } else { + var5 = params[93]; + } + } + } + } + double var6; + if (input[0] <= -0.838216245174408) { + if (input[5] <= 2.5) { + if (input[6] <= 3.5) { + if (input[0] <= -1.4280853867530823) { + var6 = params[94]; + } else { + var6 = params[95]; + } + } else { + if (input[5] <= 1.5) { + var6 = params[96]; + } else { + var6 = params[97]; + } + } + } else { + if (input[0] <= -1.3090012073516846) { + if (input[0] <= -1.3111221194267273) { + var6 = params[98]; + } else { + var6 = params[99]; + } + } else { + if (input[0] <= -0.8490080833435059) { + var6 = params[100]; + } else { + var6 = params[101]; + } + } + } + } else { + if (input[0] <= -0.062453508377075195) { + if (input[3] <= -2.7799999713897705) { + var6 = params[102]; + } else { + if (input[5] <= 2.5) { + var6 = params[103]; + } else { + var6 = params[104]; + } + } + } else { + if (input[0] <= -0.06101876124739647) { + if (input[0] <= -0.06226636841893196) { + var6 = params[105]; + } else { + var6 = params[106]; + } + } else { + if (input[0] <= 4.499675035476685) { + var6 = params[107]; + } else { + var6 = params[108]; + } + } + } + } + double var7; + if (input[0] <= -0.7750872671604156) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -1.5388729572296143) { + var7 = params[109]; + } else { + var7 = params[110]; + } + } else { + if (input[0] <= -1.0035867094993591) { + var7 = params[111]; + } else { + var7 = params[112]; + } + } + } else { + if (input[0] <= -1.2901623249053955) { + if (input[0] <= -1.2925951480865479) { + var7 = params[113]; + } else { + var7 = params[114]; + } + } else { + if (input[0] <= -0.7767715752124786) { + var7 = params[115]; + } else { + var7 = params[116]; + } + } + } + } else { + if (input[2] <= 6.293346848338842) { + if (input[0] <= 2.8364888429641724) { + if (input[0] <= 0.20759127289056778) { + var7 = params[117]; + } else { + var7 = params[118]; + } + } else { + if (input[0] <= 2.927688956260681) { + var7 = params[119]; + } else { + var7 = params[120]; + } + } + } else { + if (input[0] <= 1.0345683693885803) { + if (input[0] <= 0.5394550412893295) { + var7 = params[121]; + } else { + var7 = params[122]; + } + } else { + if (input[4] <= 1.5) { + var7 = params[123]; + } else { + var7 = params[124]; + } + } + } + } + double var8; + if (input[0] <= -0.8380291163921356) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -0.8648526966571808) { + var8 = params[125]; + } else { + var8 = params[126]; + } + } else { + if (input[0] <= -1.3985170722007751) { + var8 = params[127]; + } else { + var8 = params[128]; + } + } + } else { + if (input[6] <= 2.5) { + if (input[3] <= 2.7799999713897705) { + var8 = params[129]; + } else { + var8 = params[130]; + } + } else { + if (input[0] <= -0.8495071232318878) { + var8 = params[131]; + } else { + var8 = params[132]; + } + } + } + } else { + if (input[2] <= 6.293346848338842) { + if (input[0] <= 1.8170058131217957) { + if (input[0] <= -0.11528971418738365) { + var8 = params[133]; + } else { + var8 = params[134]; + } + } else { + if (input[0] <= 1.9167520999908447) { + var8 = params[135]; + } else { + var8 = params[136]; + } + } + } else { + if (input[0] <= 1.571164608001709) { + if (input[0] <= -0.10867739096283913) { + var8 = params[137]; + } else { + var8 = params[138]; + } + } else { + var8 = params[139]; + } + } + } + double var9; + if (input[0] <= -0.7557493448257446) { + if (input[5] <= 2.5) { + if (input[5] <= 1.5) { + if (input[6] <= 3.5) { + var9 = params[140]; + } else { + var9 = params[141]; + } + } else { + if (input[0] <= -1.3648940324783325) { + var9 = params[142]; + } else { + var9 = params[143]; + } + } + } else { + if (input[0] <= -1.2979598641395569) { + if (input[0] <= -1.4834167957305908) { + var9 = params[144]; + } else { + var9 = params[145]; + } + } else { + if (input[6] <= 2.5) { + var9 = params[146]; + } else { + var9 = params[147]; + } + } + } + } else { + if (input[11] <= 0.5) { + if (input[0] <= 2.6008156538009644) { + if (input[3] <= -2.7799999713897705) { + var9 = params[148]; + } else { + var9 = params[149]; + } + } else { + if (input[0] <= 3.5318431854248047) { + var9 = params[150]; + } else { + var9 = params[151]; + } + } + } else { + if (input[6] <= 3.0) { + var9 = params[152]; + } else { + if (input[6] <= 4.5) { + var9 = params[153]; + } else { + var9 = params[154]; + } + } + } + } + double var10; + if (input[0] <= -0.7560612857341766) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[6] <= 2.5) { + var10 = params[155]; + } else { + var10 = params[156]; + } + } else { + if (input[0] <= -1.4703169465065002) { + var10 = params[157]; + } else { + var10 = params[158]; + } + } + } else { + if (input[0] <= -0.8366567492485046) { + if (input[0] <= -1.4838534593582153) { + var10 = params[159]; + } else { + var10 = params[160]; + } + } else { + if (input[0] <= -0.7565603256225586) { + var10 = params[161]; + } else { + var10 = params[162]; + } + } + } + } else { + if (input[0] <= 0.1985461190342903) { + if (input[0] <= 0.18669383972883224) { + if (input[5] <= 2.5) { + var10 = params[163]; + } else { + var10 = params[164]; + } + } else { + if (input[0] <= 0.1982342153787613) { + var10 = params[165]; + } else { + var10 = params[166]; + } + } + } else { + if (input[0] <= 2.7108547687530518) { + if (input[0] <= 2.6998133659362793) { + var10 = params[167]; + } else { + var10 = params[168]; + } + } else { + if (input[0] <= 4.5192625522613525) { + var10 = params[169]; + } else { + var10 = params[170]; + } + } + } + } + double var11; + if (input[0] <= -0.838216245174408) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -1.6221508383750916) { + var11 = params[171]; + } else { + var11 = params[172]; + } + } else { + if (input[0] <= -1.4983881115913391) { + var11 = params[173]; + } else { + var11 = params[174]; + } + } + } else { + if (input[0] <= -1.2955893874168396) { + if (input[6] <= 2.5) { + var11 = params[175]; + } else { + var11 = params[176]; + } + } else { + if (input[0] <= -0.8438304960727692) { + var11 = params[177]; + } else { + var11 = params[178]; + } + } + } + } else { + if (input[0] <= 2.6652544736862183) { + if (input[0] <= -0.23618294298648834) { + if (input[0] <= -0.24510334432125092) { + var11 = params[179]; + } else { + var11 = params[180]; + } + } else { + if (input[2] <= 6.293346848338842) { + var11 = params[181]; + } else { + var11 = params[182]; + } + } + } else { + if (input[0] <= 2.910908579826355) { + if (input[0] <= 2.8960620164871216) { + var11 = params[183]; + } else { + var11 = params[184]; + } + } else { + if (input[0] <= 2.9170843362808228) { + var11 = params[185]; + } else { + var11 = params[186]; + } + } + } + } + double var12; + if (input[0] <= -0.838216245174408) { + if (input[5] <= 2.5) { + if (input[2] <= 6.293346848338842) { + if (input[0] <= -1.3799277544021606) { + var12 = params[187]; + } else { + var12 = params[188]; + } + } else { + if (input[0] <= -1.4403743743896484) { + var12 = params[189]; + } else { + var12 = params[190]; + } + } + } else { + if (input[0] <= -1.3081902861595154) { + if (input[0] <= -1.3366981148719788) { + var12 = params[191]; + } else { + var12 = params[192]; + } + } else { + if (input[0] <= -1.305882215499878) { + var12 = params[193]; + } else { + var12 = params[194]; + } + } + } + } else { + if (input[0] <= -0.2361205667257309) { + if (input[0] <= -0.24092385917901993) { + if (input[5] <= 3.5) { + var12 = params[195]; + } else { + var12 = params[196]; + } + } else { + if (input[0] <= -0.24030005186796188) { + var12 = params[197]; + } else { + var12 = params[198]; + } + } + } else { + if (input[0] <= 2.6360604763031006) { + if (input[2] <= 6.293346848338842) { + var12 = params[199]; + } else { + var12 = params[200]; + } + } else { + if (input[5] <= 1.5) { + var12 = params[201]; + } else { + var12 = params[202]; + } + } + } + } + double var13; + if (input[0] <= -0.8080865144729614) { + if (input[0] <= -0.8084608018398285) { + if (input[5] <= 2.5) { + if (input[0] <= -1.333890974521637) { + var13 = params[203]; + } else { + var13 = params[204]; + } + } else { + if (input[0] <= -1.4200383424758911) { + var13 = params[205]; + } else { + var13 = params[206]; + } + } + } else { + var13 = params[207]; + } + } else { + if (input[2] <= 6.293346848338842) { + if (input[1] <= 24.39185311924666) { + if (input[0] <= 0.2494485303759575) { + var13 = params[208]; + } else { + var13 = params[209]; + } + } else { + if (input[0] <= 0.32062457501888275) { + var13 = params[210]; + } else { + var13 = params[211]; + } + } + } else { + if (input[0] <= -0.4999273270368576) { + if (input[10] <= 0.5) { + var13 = params[212]; + } else { + var13 = params[213]; + } + } else { + if (input[4] <= -0.5) { + var13 = params[214]; + } else { + var13 = params[215]; + } + } + } + } + double var14; + if (input[0] <= -0.7786429822444916) { + if (input[5] <= 2.5) { + if (input[0] <= -1.4189778566360474) { + if (input[6] <= 2.5) { + var14 = params[216]; + } else { + var14 = params[217]; + } + } else { + if (input[2] <= 6.293346848338842) { + var14 = params[218]; + } else { + var14 = params[219]; + } + } + } else { + if (input[0] <= -0.8704045414924622) { + if (input[0] <= -1.1514906287193298) { + var14 = params[220]; + } else { + var14 = params[221]; + } + } else { + if (input[0] <= -0.868283599615097) { + var14 = params[222]; + } else { + var14 = params[223]; + } + } + } + } else { + if (input[0] <= 0.22337352484464645) { + if (input[5] <= 2.5) { + if (input[0] <= 0.2148897871375084) { + var14 = params[224]; + } else { + var14 = params[225]; + } + } else { + if (input[0] <= -0.20935937017202377) { + var14 = params[226]; + } else { + var14 = params[227]; + } + } + } else { + if (input[10] <= 0.5) { + if (input[0] <= 0.2297363206744194) { + var14 = params[228]; + } else { + var14 = params[229]; + } + } else { + if (input[3] <= 2.7799999713897705) { + var14 = params[230]; + } else { + var14 = params[231]; + } + } + } + } + return (var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14) * 0.06666666666666667; + } +} diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_traffic_light.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_traffic_light.java new file mode 100644 index 00000000..d1f38bb7 --- /dev/null +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_traffic_light.java @@ -0,0 +1,1551 @@ +package org.matsim.prepare.network; +import org.matsim.application.prepare.network.opt.FeatureRegressor; +import it.unimi.dsi.fastutil.objects.Object2DoubleMap; + +/** +* Generated model, do not modify. +*/ +public final class BerlinNetworkParams_speedRelative_traffic_light implements FeatureRegressor { + + public static BerlinNetworkParams_speedRelative_traffic_light INSTANCE = new BerlinNetworkParams_speedRelative_traffic_light(); + public static final double[] DEFAULT_PARAMS = {-0.009691463, 0.052806545, -0.007887105, 0.040375125, 0.08020092, 0.044737976, 0.10002494, 0.07672291, -0.073485434, -0.031119274, -0.0029490574, -0.04096618, -0.003189836, 0.051309492, -0.039599933, -0.002244698, -0.09188805, -0.03255971, -0.046271984, -0.0089371875, -0.034567412, 0.0095733525, 0.035447326, 0.0093019055, -0.014522874, -0.03195848, 0.0258405, 0.05134684, 0.026390059, 0.058743622, 0.044136044, 0.0, -0.05342304, -0.004916638, -0.03518663, 0.046198614, 0.03864144, 0.023041246, 0.0125265885, -0.0744131, -0.009136273, -0.02858817, -0.039193172, -0.003910333, 0.018595288, 0.053226132, -0.031997606, 0.017666463, -0.009177802, 0.013870448, -0.024133638, 0.0017637078, 0.013503278, 0.012302528, 0.022415783, -0.027985837, -0.009695222, 0.023504179, -0.04091435, -0.068559885, -0.023473417, 0.027454723, -0.0051399437, 0.044723466, 0.032068558, -0.055419356, 0.030762753, 0.016817205, 0.0049013947, 0.016444787, -0.0050147683, -0.017774953, 0.010770579, -0.007024835, -0.028456237, -0.04430385, -0.04920439, -0.014479365, -0.055298172, 0.003580703, 0.024280135, 0.00012065734, -0.015506362, 0.0, -0.023378937, -0.0037427654, 0.024222957, 0.02459689, 0.0070823175, -0.042305857, 0.048024807, 0.006686085, -0.010287019, -0.026067832, -0.071393386, 0.0010783518, -0.059132952, -0.005298848, -0.04494835, 0.021275008, 0.010835968, 8.2577106e-05, 0.010464311, -0.009353127, -0.0249503, -0.0072903493, 0.001235597, -0.020357493, 0.039757032, -0.022714151, 0.0, 0.0089792395, 0.021386923, -0.023778018, 0.0050843307, 0.0, -0.04394475, -0.009849588, -0.00014703265, 6.5884946e-05, -0.04002534, 0.017317673, -0.0039160196, -0.02059181, -0.0032235435, 0.004753312, -0.001508611, -0.017107166, -0.05112474, 0.022588141, 0.0028790687, 0.025551684, -0.028207319, 0.02195619, 0.0055198413, 0.00020586084, -0.019469675, -0.02347914, 0.012801895, 0.0009753697, -0.0072770226, 0.008765168, 0.0023732872, -0.017578049, 0.01648564, -0.010396203, 0.024333026, -0.01315347, 0.014487011, -0.006163603, 0.037203528, 0.0017512897, -0.020835035, -0.002548354, -0.026667723, 0.018359296, 0.0072020893, 0.0050423923, 0.00044790143, -0.027442059, -0.00096547365, -0.0069647734, 0.01001807, -0.009705856, -0.0052660042, 0.013949067, -0.026002107, -0.010855486, 0.025405338, -0.0033861094, -0.00031673856, -0.005639268, 0.0045916494, -0.0139834555, 0.036172427, 0.0060296264, -0.03260621, 0.012408854, -0.0016873477, -0.020022927, 0.007492209, -0.00090844306, -0.010700184, -0.0027465443, 0.004754536, -0.0020539644, -0.006757483, 0.025317531, -0.042646702, 0.006759128, 0.054740362, 0.008250882, 0.0046073906, 0.0036139812, -0.03549706, 0.021130577, 0.006828929, -0.0021696975, 0.0070812055, -0.002950563, -0.010785684, 0.0053102938, 0.024732364, 0.0005054463, -0.009463466, 0.00058466016, 0.01913217, -0.046123926, 0.004099381, 0.0002872889, -0.009742624, 0.07934595, 0.008971758, -0.044807564, 0.032934666, -0.0130616855, 0.042893715, 0.0, -0.05652076, 0.0001768227, 0.015892096, -0.00039065434, -0.019764507, -0.0064509115, 0.041617133, -0.0024496582, -0.009738962, -0.0037766302, 0.059347965, 0.019324142, -0.04831028, 0.0010182589, -0.0035932402, 0.07725186, -0.012348397, -0.000888707, -0.029118203, -0.0012476847, 0.009733933, -0.0015899612, 0.002954369, 0.00097563176, -0.037165143, -0.0014619974, 0.04074392, 0.004665218, 0.014222303, -0.020277845, 0.00023789848, 0.020044547, -0.0006568671, 0.038258757, -0.006738621, -0.01877156, 0.0031751285, -0.0027716074, 0.0038918837, -0.0045367656, 0.024126088, -0.0010834001, 0.0060397424, -0.00019711263, 0.053207103, -0.046372145, -0.007249567, 0.020201366, 0.00063026237, -0.0024504277, 0.0, -0.025623698, 0.026081556, 0.0026610843, 0.08195641, -0.014070673, 0.017456952, -0.0038943712, 0.01441529, 0.0037959935, -3.962708e-05, -0.0002599367, -0.010006913, 4.3176435e-05, 0.00028878148, -0.027744187, 0.0009405044, -0.009326682, 0.002973707, 0.014578586, 0.0025378715, -0.013808471, 0.0010386048, -0.008083755, -0.0008020814, 0.008065958, -0.0005759925, -0.01000639, 0.0058533046, -0.012963097, -0.0063678655, -0.00026994172, -0.0073991637, 0.0, -0.03400921, 0.09104042, -0.0051409546, 0.007422014, 0.0057841185, -0.006905834, 0.0003366733, -0.006027959, 0.0008941353, 0.000519069, -0.0005199342, 0.005894454, -0.008135738, -0.0039718575, 0.0015707628, -0.00075509364, 0.006195928, -0.015468669, 0.0067351935, -0.007824543, 0.016324313, 0.004857269, 0.0007449557, -0.006883453, 0.018816726, -0.047341812, 0.0, -0.00044907376, -0.024142545, 0.0013048442, 0.00924097, -0.00036043677, -0.0075887926, -0.00037642964, 0.016635275, 0.0030533548, -0.00055347156, 0.036696237, -0.0020395438, -0.011763727, 0.00069853663, 0.00029121758, -0.003924451, -1.7108683e-05, -0.012010769, 0.0024333575, -0.014091563, -0.0019432369, 0.08319307, 0.014988385, 0.0025857252, -0.0028567961, 0.024763905, 0.0, 0.0005542842, 0.0012215936, -0.0034549076, 0.010691001, 0.0022397253, -0.0066507044, 3.4034332e-05, -0.0055839876, 0.0015449949, -0.0020639682, 0.013047953, -0.000727456, -0.017532172, -0.0028941687, 0.0027559754, 0.029733252, -0.0012608962, 0.024209188, -0.034218468, 0.027198361, -0.01697907, 0.003973015, 0.0009875128, 0.0016746384, -0.02260061, 0.041699503, -0.0050081983, 0.012105348, -0.007477945, -0.010574549, -0.0032009913, 0.007871424, -0.0005993663, 0.020305945}; + + @Override + public double predict(Object2DoubleMap ft) { + return predict(ft, DEFAULT_PARAMS); + } + + @Override + public double[] getData(Object2DoubleMap ft) { + double[] data = new double[14]; + data[0] = (ft.getDouble("length") - 126.0499887471868) / 87.86859846568598; + data[1] = (ft.getDouble("speed") - 12.740663915978995) / 2.6516169764830786; + data[2] = (ft.getDouble("num_lanes") - 1.847336834208552) / 0.9858081652916906; + data[3] = ft.getDouble("change_speed"); + data[4] = ft.getDouble("change_num_lanes"); + data[5] = ft.getDouble("num_to_links"); + data[6] = ft.getDouble("junction_inc_lanes"); + data[7] = ft.getDouble("priority_lower"); + data[8] = ft.getDouble("priority_equal"); + data[9] = ft.getDouble("priority_higher"); + data[10] = ft.getDouble("is_secondary_or_higher"); + data[11] = ft.getDouble("is_primary_or_higher"); + data[12] = ft.getDouble("is_motorway"); + data[13] = ft.getDouble("is_link"); + + return data; + } + + @Override + public double predict(Object2DoubleMap ft, double[] params) { + + double[] data = getData(ft); + for (int i = 0; i < data.length; i++) + if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); + + return score(data, params); + } + public static double score(double[] input, double[] params) { + double var0; + if (input[0] >= -0.22351545) { + if (input[6] >= 6.5) { + if (input[0] >= 0.5079745) { + if (input[1] >= 0.95765567) { + var0 = params[0]; + } else { + var0 = params[1]; + } + } else { + if (input[1] >= -1.139178) { + var0 = params[2]; + } else { + var0 = params[3]; + } + } + } else { + if (input[1] >= -1.139178) { + if (input[0] >= 1.0604472) { + var0 = params[4]; + } else { + var0 = params[5]; + } + } else { + if (input[0] >= 0.60772574) { + var0 = params[6]; + } else { + var0 = params[7]; + } + } + } + } else { + if (input[6] >= 6.5) { + if (input[5] >= 2.5) { + if (input[1] >= -0.6149696) { + var0 = params[8]; + } else { + var0 = params[9]; + } + } else { + if (input[0] >= -0.6765214) { + var0 = params[10]; + } else { + var0 = params[11]; + } + } + } else { + if (input[0] >= -0.688528) { + if (input[1] >= -0.6149696) { + var0 = params[12]; + } else { + var0 = params[13]; + } + } else { + if (input[1] >= -0.6149696) { + var0 = params[14]; + } else { + var0 = params[15]; + } + } + } + } + double var1; + if (input[6] >= 6.5) { + if (input[6] >= 10.5) { + if (input[1] >= 2.0041869) { + var1 = params[16]; + } else { + if (input[11] >= 0.5) { + var1 = params[17]; + } else { + var1 = params[18]; + } + } + } else { + if (input[1] >= -0.6149696) { + if (input[10] >= 0.5) { + var1 = params[19]; + } else { + var1 = params[20]; + } + } else { + if (input[3] >= 2.78) { + var1 = params[21]; + } else { + var1 = params[22]; + } + } + } + } else { + if (input[1] >= -0.090761185) { + if (input[6] >= 4.5) { + if (input[9] >= 0.5) { + var1 = params[23]; + } else { + var1 = params[24]; + } + } else { + if (input[1] >= 0.95765567) { + var1 = params[25]; + } else { + var1 = params[26]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[11] >= 0.5) { + var1 = params[27]; + } else { + var1 = params[28]; + } + } else { + if (input[8] >= 0.5) { + var1 = params[29]; + } else { + var1 = params[30]; + } + } + } + } + double var2; + if (input[0] >= -0.33362305) { + if (input[1] >= 0.95765567) { + if (input[3] >= 1.385) { + if (input[2] >= 1.676455) { + var2 = params[31]; + } else { + var2 = params[32]; + } + } else { + if (input[4] >= -1.5) { + var2 = params[33]; + } else { + var2 = params[34]; + } + } + } else { + if (input[0] >= 0.22510898) { + if (input[3] >= 5.5550003) { + var2 = params[35]; + } else { + var2 = params[36]; + } + } else { + if (input[3] >= 5.5550003) { + var2 = params[37]; + } else { + var2 = params[38]; + } + } + } + } else { + if (input[1] >= -0.6149696) { + if (input[0] >= -0.5709661) { + if (input[13] >= 0.5) { + var2 = params[39]; + } else { + var2 = params[40]; + } + } else { + if (input[10] >= 0.5) { + var2 = params[41]; + } else { + var2 = params[42]; + } + } + } else { + if (input[0] >= -0.89246887) { + if (input[3] >= 2.78) { + var2 = params[43]; + } else { + var2 = params[44]; + } + } else { + if (input[11] >= 0.5) { + var2 = params[45]; + } else { + var2 = params[46]; + } + } + } + } + double var3; + if (input[4] >= -0.5) { + if (input[6] >= 8.5) { + if (input[11] >= 0.5) { + if (input[2] >= 1.676455) { + var3 = params[47]; + } else { + var3 = params[48]; + } + } else { + if (input[4] >= 2.5) { + var3 = params[49]; + } else { + var3 = params[50]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[1] >= -1.139178) { + var3 = params[51]; + } else { + var3 = params[52]; + } + } else { + if (input[1] >= -1.139178) { + var3 = params[53]; + } else { + var3 = params[54]; + } + } + } + } else { + if (input[6] >= 10.5) { + if (input[5] >= 2.5) { + if (input[1] >= -0.6149696) { + var3 = params[55]; + } else { + var3 = params[56]; + } + } else { + if (input[2] >= 1.676455) { + var3 = params[57]; + } else { + var3 = params[58]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[1] >= 2.0041869) { + var3 = params[59]; + } else { + var3 = params[60]; + } + } else { + if (input[2] >= 0.662059) { + var3 = params[61]; + } else { + var3 = params[62]; + } + } + } + } + double var4; + if (input[0] >= -0.16536042) { + if (input[0] >= 1.4692395) { + if (input[3] >= -6.95) { + if (input[0] >= 2.7091022) { + var4 = params[63]; + } else { + var4 = params[64]; + } + } else { + var4 = params[65]; + } + } else { + if (input[0] >= 0.3859742) { + if (input[2] >= 0.662059) { + var4 = params[66]; + } else { + var4 = params[67]; + } + } else { + if (input[5] >= 2.5) { + var4 = params[68]; + } else { + var4 = params[69]; + } + } + } + } else { + if (input[0] >= -0.8314687) { + if (input[5] >= 2.5) { + if (input[0] >= -0.49215522) { + var4 = params[70]; + } else { + var4 = params[71]; + } + } else { + if (input[9] >= 0.5) { + var4 = params[72]; + } else { + var4 = params[73]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[0] >= -0.9568832) { + var4 = params[74]; + } else { + var4 = params[75]; + } + } else { + if (input[13] >= 0.5) { + var4 = params[76]; + } else { + var4 = params[77]; + } + } + } + } + double var5; + if (input[6] >= 8.5) { + if (input[0] >= -0.111302435) { + if (input[1] >= 2.0041869) { + var5 = params[78]; + } else { + if (input[1] >= -1.139178) { + var5 = params[79]; + } else { + var5 = params[80]; + } + } + } else { + if (input[0] >= -0.6630354) { + if (input[2] >= 1.676455) { + var5 = params[81]; + } else { + var5 = params[82]; + } + } else { + if (input[2] >= 2.6908512) { + var5 = params[83]; + } else { + var5 = params[84]; + } + } + } + } else { + if (input[0] >= -0.43536586) { + if (input[0] >= 1.5625606) { + if (input[1] >= 2.0041869) { + var5 = params[85]; + } else { + var5 = params[86]; + } + } else { + if (input[2] >= 0.662059) { + var5 = params[87]; + } else { + var5 = params[88]; + } + } + } else { + if (input[1] >= 0.95765567) { + if (input[6] >= 2.5) { + var5 = params[89]; + } else { + var5 = params[90]; + } + } else { + if (input[2] >= 0.662059) { + var5 = params[91]; + } else { + var5 = params[92]; + } + } + } + } + double var6; + if (input[1] >= 2.0041869) { + if (input[0] >= -0.088370465) { + if (input[5] >= 2.5) { + if (input[2] >= 0.662059) { + var6 = params[93]; + } else { + var6 = params[94]; + } + } else { + var6 = params[95]; + } + } else { + if (input[0] >= -0.63327503) { + var6 = params[96]; + } else { + if (input[0] >= -1.0539031) { + var6 = params[97]; + } else { + var6 = params[98]; + } + } + } + } else { + if (input[0] >= -0.61278987) { + if (input[0] >= 0.7613643) { + if (input[2] >= -0.35233715) { + var6 = params[99]; + } else { + var6 = params[100]; + } + } else { + if (input[1] >= -1.139178) { + var6 = params[101]; + } else { + var6 = params[102]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[0] >= -0.9566556) { + var6 = params[103]; + } else { + var6 = params[104]; + } + } else { + if (input[6] >= 5.5) { + var6 = params[105]; + } else { + var6 = params[106]; + } + } + } + } + double var7; + if (input[0] >= -0.063674495) { + if (input[1] >= 0.95765567) { + if (input[0] >= 2.1382499) { + if (input[4] >= 0.5) { + var7 = params[107]; + } else { + var7 = params[108]; + } + } else { + if (input[5] >= 2.5) { + var7 = params[109]; + } else { + var7 = params[110]; + } + } + } else { + if (input[0] >= 0.99159443) { + if (input[0] >= 1.085257) { + var7 = params[111]; + } else { + var7 = params[112]; + } + } else { + if (input[5] >= 3.5) { + var7 = params[113]; + } else { + var7 = params[114]; + } + } + } + } else { + if (input[1] >= -1.139178) { + if (input[3] >= 4.165) { + if (input[0] >= -0.097759485) { + var7 = params[115]; + } else { + var7 = params[116]; + } + } else { + if (input[5] >= 2.5) { + var7 = params[117]; + } else { + var7 = params[118]; + } + } + } else { + if (input[3] >= 5.5550003) { + if (input[5] >= 1.5) { + var7 = params[119]; + } else { + var7 = params[120]; + } + } else { + if (input[0] >= -1.0416689) { + var7 = params[121]; + } else { + var7 = params[122]; + } + } + } + } + double var8; + if (input[6] >= 4.5) { + if (input[1] >= 2.0041869) { + var8 = params[123]; + } else { + if (input[2] >= -0.35233715) { + if (input[5] >= 2.5) { + var8 = params[124]; + } else { + var8 = params[125]; + } + } else { + if (input[7] >= 0.5) { + var8 = params[126]; + } else { + var8 = params[127]; + } + } + } + } else { + if (input[2] >= -0.35233715) { + if (input[8] >= 0.5) { + if (input[5] >= 3.5) { + var8 = params[128]; + } else { + var8 = params[129]; + } + } else { + if (input[6] >= 3.5) { + var8 = params[130]; + } else { + var8 = params[131]; + } + } + } else { + if (input[13] >= 0.5) { + if (input[6] >= 2.5) { + var8 = params[132]; + } else { + var8 = params[133]; + } + } else { + if (input[5] >= 2.5) { + var8 = params[134]; + } else { + var8 = params[135]; + } + } + } + } + double var9; + if (input[0] >= -0.7943678) { + if (input[5] >= 3.5) { + if (input[6] >= 4.5) { + var9 = params[136]; + } else { + if (input[8] >= 0.5) { + var9 = params[137]; + } else { + var9 = params[138]; + } + } + } else { + if (input[6] >= 11.5) { + if (input[0] >= 0.18760982) { + var9 = params[139]; + } else { + var9 = params[140]; + } + } else { + if (input[11] >= 0.5) { + var9 = params[141]; + } else { + var9 = params[142]; + } + } + } + } else { + if (input[4] >= 0.5) { + if (input[6] >= 6.5) { + if (input[0] >= -1.1542233) { + var9 = params[143]; + } else { + var9 = params[144]; + } + } else { + if (input[0] >= -1.041043) { + var9 = params[145]; + } else { + var9 = params[146]; + } + } + } else { + if (input[4] >= -0.5) { + if (input[0] >= -1.2862387) { + var9 = params[147]; + } else { + var9 = params[148]; + } + } else { + if (input[6] >= 3.5) { + var9 = params[149]; + } else { + var9 = params[150]; + } + } + } + } + double var10; + if (input[0] >= -0.7211335) { + if (input[1] >= 2.0041869) { + if (input[0] >= -0.05747205) { + if (input[2] >= -0.35233715) { + var10 = params[151]; + } else { + var10 = params[152]; + } + } else { + if (input[5] >= 2.5) { + var10 = params[153]; + } else { + var10 = params[154]; + } + } + } else { + if (input[0] >= 2.035767) { + if (input[6] >= 6.5) { + var10 = params[155]; + } else { + var10 = params[156]; + } + } else { + if (input[2] >= 0.662059) { + var10 = params[157]; + } else { + var10 = params[158]; + } + } + } + } else { + if (input[1] >= -0.6149696) { + if (input[0] >= -0.72602713) { + var10 = params[159]; + } else { + if (input[2] >= 0.662059) { + var10 = params[160]; + } else { + var10 = params[161]; + } + } + } else { + if (input[7] >= 0.5) { + if (input[2] >= -0.35233715) { + var10 = params[162]; + } else { + var10 = params[163]; + } + } else { + if (input[6] >= 7.5) { + var10 = params[164]; + } else { + var10 = params[165]; + } + } + } + } + double var11; + if (input[1] >= -1.139178) { + if (input[3] >= 1.385) { + if (input[5] >= 2.5) { + var11 = params[166]; + } else { + if (input[4] >= -1.5) { + var11 = params[167]; + } else { + var11 = params[168]; + } + } + } else { + if (input[5] >= 2.5) { + if (input[6] >= 4.5) { + var11 = params[169]; + } else { + var11 = params[170]; + } + } else { + if (input[7] >= 0.5) { + var11 = params[171]; + } else { + var11 = params[172]; + } + } + } + } else { + if (input[5] >= 2.5) { + if (input[5] >= 3.5) { + var11 = params[173]; + } else { + if (input[3] >= 9.725) { + var11 = params[174]; + } else { + var11 = params[175]; + } + } + } else { + if (input[10] >= 0.5) { + if (input[4] >= 0.5) { + var11 = params[176]; + } else { + var11 = params[177]; + } + } else { + if (input[5] >= 1.5) { + var11 = params[178]; + } else { + var11 = params[179]; + } + } + } + } + double var12; + if (input[6] >= 3.5) { + if (input[1] >= -0.090761185) { + if (input[2] >= -0.35233715) { + if (input[0] >= 0.17856222) { + var12 = params[180]; + } else { + var12 = params[181]; + } + } else { + if (input[6] >= 4.5) { + var12 = params[182]; + } else { + var12 = params[183]; + } + } + } else { + if (input[0] >= -0.9367964) { + if (input[5] >= 2.5) { + var12 = params[184]; + } else { + var12 = params[185]; + } + } else { + if (input[0] >= -1.2581854) { + var12 = params[186]; + } else { + var12 = params[187]; + } + } + } + } else { + if (input[10] >= 0.5) { + if (input[0] >= -1.0618126) { + if (input[5] >= 2.5) { + var12 = params[188]; + } else { + var12 = params[189]; + } + } else { + if (input[0] >= -1.1441514) { + var12 = params[190]; + } else { + var12 = params[191]; + } + } + } else { + if (input[0] >= -1.0707464) { + var12 = params[192]; + } else { + if (input[2] >= -0.35233715) { + var12 = params[193]; + } else { + var12 = params[194]; + } + } + } + } + double var13; + if (input[6] >= 5.5) { + if (input[0] >= 1.4313989) { + if (input[4] >= 1.5) { + var13 = params[195]; + } else { + var13 = params[196]; + } + } else { + if (input[2] >= 0.662059) { + if (input[6] >= 8.5) { + var13 = params[197]; + } else { + var13 = params[198]; + } + } else { + if (input[5] >= 2.5) { + var13 = params[199]; + } else { + var13 = params[200]; + } + } + } + } else { + if (input[4] >= -0.5) { + if (input[2] >= -0.35233715) { + if (input[0] >= -1.0624385) { + var13 = params[201]; + } else { + var13 = params[202]; + } + } else { + if (input[0] >= -0.98214823) { + var13 = params[203]; + } else { + var13 = params[204]; + } + } + } else { + if (input[10] >= 0.5) { + if (input[5] >= 2.5) { + var13 = params[205]; + } else { + var13 = params[206]; + } + } else { + if (input[13] >= 0.5) { + var13 = params[207]; + } else { + var13 = params[208]; + } + } + } + } + double var14; + if (input[0] >= -1.2804346) { + if (input[0] >= -1.1680508) { + if (input[0] >= -1.1546786) { + if (input[3] >= -1.39) { + var14 = params[209]; + } else { + var14 = params[210]; + } + } else { + if (input[0] >= -1.1575238) { + var14 = params[211]; + } else { + var14 = params[212]; + } + } + } else { + if (input[0] >= -1.1767571) { + var14 = params[213]; + } else { + if (input[6] >= 8.5) { + var14 = params[214]; + } else { + var14 = params[215]; + } + } + } + } else { + if (input[6] >= 7.5) { + if (input[1] >= -0.6149696) { + var14 = params[216]; + } else { + var14 = params[217]; + } + } else { + if (input[4] >= 0.5) { + if (input[6] >= 6.5) { + var14 = params[218]; + } else { + var14 = params[219]; + } + } else { + var14 = params[220]; + } + } + } + double var15; + if (input[1] >= 0.95765567) { + if (input[6] >= 2.5) { + if (input[6] >= 8.5) { + var15 = params[221]; + } else { + if (input[3] >= 1.385) { + var15 = params[222]; + } else { + var15 = params[223]; + } + } + } else { + var15 = params[224]; + } + } else { + if (input[6] >= 9.5) { + if (input[0] >= -1.1949091) { + if (input[5] >= 2.5) { + var15 = params[225]; + } else { + var15 = params[226]; + } + } else { + if (input[9] >= 0.5) { + var15 = params[227]; + } else { + var15 = params[228]; + } + } + } else { + if (input[2] >= 1.676455) { + if (input[0] >= -1.1116598) { + var15 = params[229]; + } else { + var15 = params[230]; + } + } else { + if (input[0] >= -0.92131877) { + var15 = params[231]; + } else { + var15 = params[232]; + } + } + } + } + double var16; + if (input[1] >= -0.090761185) { + if (input[3] >= 4.165) { + if (input[8] >= 0.5) { + if (input[13] >= 0.5) { + var16 = params[233]; + } else { + var16 = params[234]; + } + } else { + if (input[1] >= 2.0041869) { + var16 = params[235]; + } else { + var16 = params[236]; + } + } + } else { + if (input[2] >= 1.676455) { + if (input[6] >= 11.5) { + var16 = params[237]; + } else { + var16 = params[238]; + } + } else { + if (input[6] >= 3.5) { + var16 = params[239]; + } else { + var16 = params[240]; + } + } + } + } else { + if (input[3] >= 5.5550003) { + if (input[5] >= 1.5) { + var16 = params[241]; + } else { + if (input[6] >= 5.5) { + var16 = params[242]; + } else { + var16 = params[243]; + } + } + } else { + if (input[3] >= 1.39) { + var16 = params[244]; + } else { + var16 = params[245]; + } + } + } + double var17; + if (input[4] >= 1.5) { + if (input[9] >= 0.5) { + if (input[6] >= 7.5) { + var17 = params[246]; + } else { + var17 = params[247]; + } + } else { + if (input[0] >= 0.053830504) { + if (input[8] >= 0.5) { + var17 = params[248]; + } else { + var17 = params[249]; + } + } else { + if (input[0] >= -1.1640108) { + var17 = params[250]; + } else { + var17 = params[251]; + } + } + } + } else { + if (input[6] >= 7.5) { + if (input[3] >= 1.385) { + if (input[5] >= 2.5) { + var17 = params[252]; + } else { + var17 = params[253]; + } + } else { + if (input[2] >= 1.676455) { + var17 = params[254]; + } else { + var17 = params[255]; + } + } + } else { + if (input[2] >= -0.35233715) { + if (input[0] >= -0.9569402) { + var17 = params[256]; + } else { + var17 = params[257]; + } + } else { + if (input[3] >= 9.725) { + var17 = params[258]; + } else { + var17 = params[259]; + } + } + } + } + double var18; + if (input[0] >= 2.3857217) { + var18 = params[260]; + } else { + if (input[0] >= -1.2804346) { + if (input[0] >= -1.1570685) { + if (input[0] >= -1.1546786) { + var18 = params[261]; + } else { + var18 = params[262]; + } + } else { + if (input[3] >= 5.5550003) { + var18 = params[263]; + } else { + var18 = params[264]; + } + } + } else { + if (input[0] >= -1.3070652) { + var18 = params[265]; + } else { + var18 = params[266]; + } + } + } + double var19; + if (input[1] >= 0.95765567) { + if (input[6] >= 2.5) { + if (input[0] >= -0.7105495) { + var19 = params[267]; + } else { + if (input[4] >= -0.5) { + var19 = params[268]; + } else { + var19 = params[269]; + } + } + } else { + var19 = params[270]; + } + } else { + if (input[2] >= 0.662059) { + if (input[0] >= -1.1253735) { + if (input[0] >= -1.1170657) { + var19 = params[271]; + } else { + var19 = params[272]; + } + } else { + if (input[4] >= -1.5) { + var19 = params[273]; + } else { + var19 = params[274]; + } + } + } else { + if (input[6] >= 6.5) { + if (input[0] >= -1.0170867) { + var19 = params[275]; + } else { + var19 = params[276]; + } + } else { + if (input[4] >= 0.5) { + var19 = params[277]; + } else { + var19 = params[278]; + } + } + } + } + double var20; + if (input[6] >= 9.5) { + if (input[9] >= 0.5) { + if (input[1] >= -0.090761185) { + if (input[2] >= 1.676455) { + var20 = params[279]; + } else { + var20 = params[280]; + } + } else { + var20 = params[281]; + } + } else { + if (input[3] >= -2.78) { + var20 = params[282]; + } else { + var20 = params[283]; + } + } + } else { + if (input[2] >= -0.35233715) { + if (input[6] >= 5.5) { + if (input[0] >= -1.0520822) { + var20 = params[284]; + } else { + var20 = params[285]; + } + } else { + if (input[0] >= -1.0618126) { + var20 = params[286]; + } else { + var20 = params[287]; + } + } + } else { + if (input[6] >= 4.5) { + if (input[4] >= 0.5) { + var20 = params[288]; + } else { + var20 = params[289]; + } + } else { + if (input[0] >= -1.1441514) { + var20 = params[290]; + } else { + var20 = params[291]; + } + } + } + } + double var21; + if (input[2] >= 0.662059) { + if (input[6] >= 8.5) { + if (input[0] >= -0.57517695) { + if (input[5] >= 2.5) { + var21 = params[292]; + } else { + var21 = params[293]; + } + } else { + if (input[5] >= 2.5) { + var21 = params[294]; + } else { + var21 = params[295]; + } + } + } else { + if (input[0] >= -1.1248614) { + if (input[3] >= -1.39) { + var21 = params[296]; + } else { + var21 = params[297]; + } + } else { + var21 = params[298]; + } + } + } else { + if (input[0] >= -1.1234956) { + if (input[0] >= -1.1026123) { + if (input[5] >= 1.5) { + var21 = params[299]; + } else { + var21 = params[300]; + } + } else { + if (input[3] >= 2.78) { + var21 = params[301]; + } else { + var21 = params[302]; + } + } + } else { + if (input[0] >= -1.1262839) { + var21 = params[303]; + } else { + if (input[5] >= 2.5) { + var21 = params[304]; + } else { + var21 = params[305]; + } + } + } + } + double var22; + if (input[0] >= 2.7776704) { + var22 = params[306]; + } else { + if (input[1] >= -0.090761185) { + if (input[0] >= -0.8556526) { + if (input[3] >= 1.385) { + var22 = params[307]; + } else { + var22 = params[308]; + } + } else { + if (input[0] >= -1.0408154) { + var22 = params[309]; + } else { + var22 = params[310]; + } + } + } else { + if (input[3] >= 5.5550003) { + var22 = params[311]; + } else { + if (input[0] >= 0.19620219) { + var22 = params[312]; + } else { + var22 = params[313]; + } + } + } + } + double var23; + if (input[4] >= -1.5) { + if (input[5] >= 3.5) { + var23 = params[314]; + } else { + if (input[2] >= -0.35233715) { + if (input[4] >= 0.5) { + var23 = params[315]; + } else { + var23 = params[316]; + } + } else { + if (input[0] >= -1.1116598) { + var23 = params[317]; + } else { + var23 = params[318]; + } + } + } + } else { + if (input[4] >= -2.5) { + if (input[0] >= -0.19483626) { + var23 = params[319]; + } else { + if (input[0] >= -0.44794148) { + var23 = params[320]; + } else { + var23 = params[321]; + } + } + } else { + var23 = params[322]; + } + } + double var24; + if (input[0] >= 0.79379904) { + if (input[0] >= 0.82094187) { + if (input[4] >= 0.5) { + var24 = params[323]; + } else { + if (input[0] >= 0.90902793) { + var24 = params[324]; + } else { + var24 = params[325]; + } + } + } else { + var24 = params[326]; + } + } else { + if (input[0] >= 0.78657234) { + if (input[1] >= -0.6149696) { + var24 = params[327]; + } else { + var24 = params[328]; + } + } else { + if (input[3] >= -4.165) { + var24 = params[329]; + } else { + if (input[7] >= 0.5) { + var24 = params[330]; + } else { + var24 = params[331]; + } + } + } + } + double var25; + if (input[4] >= 1.5) { + if (input[3] >= 4.17) { + var25 = params[332]; + } else { + var25 = params[333]; + } + } else { + if (input[8] >= 0.5) { + if (input[0] >= -0.54939973) { + if (input[4] >= 0.5) { + var25 = params[334]; + } else { + var25 = params[335]; + } + } else { + if (input[3] >= 1.39) { + var25 = params[336]; + } else { + var25 = params[337]; + } + } + } else { + if (input[0] >= -1.2840763) { + var25 = params[338]; + } else { + if (input[5] >= 2.5) { + var25 = params[339]; + } else { + var25 = params[340]; + } + } + } + } + double var26; + if (input[6] >= 3.5) { + if (input[4] >= -1.5) { + if (input[2] >= -0.35233715) { + if (input[3] >= 6.9449997) { + var26 = params[341]; + } else { + var26 = params[342]; + } + } else { + if (input[5] >= 2.5) { + var26 = params[343]; + } else { + var26 = params[344]; + } + } + } else { + if (input[2] >= 1.676455) { + var26 = params[345]; + } else { + if (input[6] >= 6.5) { + var26 = params[346]; + } else { + var26 = params[347]; + } + } + } + } else { + if (input[13] >= 0.5) { + var26 = params[348]; + } else { + if (input[7] >= 0.5) { + if (input[4] >= -0.5) { + var26 = params[349]; + } else { + var26 = params[350]; + } + } else { + if (input[3] >= 5.5550003) { + var26 = params[351]; + } else { + var26 = params[352]; + } + } + } + } + double var27; + if (input[4] >= 2.5) { + if (input[6] >= 10.5) { + var27 = params[353]; + } else { + if (input[6] >= 6.5) { + var27 = params[354]; + } else { + var27 = params[355]; + } + } + } else { + if (input[6] >= 5.5) { + if (input[2] >= 0.662059) { + var27 = params[356]; + } else { + if (input[4] >= 0.5) { + var27 = params[357]; + } else { + var27 = params[358]; + } + } + } else { + if (input[2] >= -0.35233715) { + if (input[7] >= 0.5) { + var27 = params[359]; + } else { + var27 = params[360]; + } + } else { + if (input[11] >= 0.5) { + var27 = params[361]; + } else { + var27 = params[362]; + } + } + } + } + double var28; + if (input[6] >= 4.5) { + if (input[0] >= -0.72750664) { + if (input[1] >= 2.0041869) { + var28 = params[363]; + } else { + if (input[2] >= -0.35233715) { + var28 = params[364]; + } else { + var28 = params[365]; + } + } + } else { + if (input[4] >= 0.5) { + if (input[8] >= 0.5) { + var28 = params[366]; + } else { + var28 = params[367]; + } + } else { + if (input[0] >= -0.7412203) { + var28 = params[368]; + } else { + var28 = params[369]; + } + } + } + } else { + if (input[0] >= -0.9906837) { + if (input[5] >= 2.5) { + if (input[0] >= -0.9367964) { + var28 = params[370]; + } else { + var28 = params[371]; + } + } else { + if (input[0] >= -0.94550264) { + var28 = params[372]; + } else { + var28 = params[373]; + } + } + } else { + if (input[4] >= 0.5) { + if (input[0] >= -1.053391) { + var28 = params[374]; + } else { + var28 = params[375]; + } + } else { + if (input[5] >= 1.5) { + var28 = params[376]; + } else { + var28 = params[377]; + } + } + } + } + double var29; + if (input[0] >= 0.025378931) { + if (input[0] >= 0.032947052) { + if (input[3] >= -1.39) { + var29 = params[378]; + } else { + if (input[0] >= 0.7686479) { + var29 = params[379]; + } else { + var29 = params[380]; + } + } + } else { + if (input[9] >= 0.5) { + var29 = params[381]; + } else { + var29 = params[382]; + } + } + } else { + if (input[0] >= -0.22419828) { + if (input[11] >= 0.5) { + if (input[0] >= -0.14794806) { + var29 = params[383]; + } else { + var29 = params[384]; + } + } else { + if (input[6] >= 6.5) { + var29 = params[385]; + } else { + var29 = params[386]; + } + } + } else { + if (input[4] >= -2.5) { + if (input[0] >= -0.28901097) { + var29 = params[387]; + } else { + var29 = params[388]; + } + } else { + var29 = params[389]; + } + } + } + return 0.5 + (var0 + var1 + var2 + var3 + var4 + var5 + var6 + var7 + var8 + var9 + var10 + var11 + var12 + var13 + var14 + var15 + var16 + var17 + var18 + var19 + var20 + var21 + var22 + var23 + var24 + var25 + var26 + var27 + var28 + var29); + } +} diff --git a/src/main/java/org/matsim/prepare/network/FeatureRegressor.java b/src/main/java/org/matsim/prepare/network/FeatureRegressor.java index 9100859b..d7d4f715 100644 --- a/src/main/java/org/matsim/prepare/network/FeatureRegressor.java +++ b/src/main/java/org/matsim/prepare/network/FeatureRegressor.java @@ -5,6 +5,7 @@ /** * Predictor interface for regression. */ +@Deprecated public interface FeatureRegressor { diff --git a/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java b/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java index a4bdb254..808c24d7 100644 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java +++ b/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java @@ -1,11 +1,12 @@ package org.matsim.prepare.network; import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - + /** * Generated model, do not modify. */ +@Deprecated public final class Speedrelative_priority implements FeatureRegressor { - + public static Speedrelative_priority INSTANCE = new Speedrelative_priority(); public static final double[] DEFAULT_PARAMS = {0.8929842014268579, 0.8947034806870571, 0.8969997893375394, 0.8988690670884303, 0.8919660847748271, 0.898741523864776, 0.896932363265675, 0.8942835732422608, 0.8894293065747837, 0.8916650956941955, 0.8915898183047055, 0.8887579511683131, 0.893293460019746, 0.8935403651436455, 0.8891393883339468, 0.8968624721923842, 0.8916676123723914, 0.888741320626169, 0.8923453802464755, 0.8939105471430318, 0.892045777506383, 0.8884261914324344, 0.8942743321122739, 0.8897698102348497, 0.88992276348519, 0.88344088895989, 0.8864393596444606, 0.8959343964806725, 0.8939554190775862, 0.8942056855950486, 0.8886954872446198, 0.8946189865866182, 0.0035946893269604083, -0.00037586783071427075, 0.0014564712582525053, 0.004358285565462845, -0.0005278396452887324, 0.004656046665723653, 0.002944322242242215, 0.0002687904470097077, -0.009153251607334009, -0.0018077473617709285, -0.0014800508184662099, -0.0017572335150929548, -0.005491935295157103, -9.210054608028862e-05, -0.002050273646797897, -0.00023359793369099571, -0.004366236929616469, -0.0011748712003885934, -0.006171831121892263, -0.0007003414042384324, -0.0036582584558239196, 0.0001814143704377232, 0.0005819983416323589, -0.0031571570805645622, -0.0031019715266897094, -0.009091269706686212, -0.006316004107230821, -0.0021178458266022837, 0.0011072820189547872, -0.004692412549341147, 0.0009133385793177371, 0.0016291670039645452, 0.001652770594504699, 0.00012419473480936572, 0.004358261771246124, -0.00136580977681832, 0.004280427895951118, 0.002752180607391828, 0.0006402668741239056, -0.002526140848493023, -0.008237926283798129, -0.001584395256545445, 0.00028155339830497335, -0.0025667959346123664, -0.007432183609171929, -0.0012495981032841254, -0.0015821468717665326, -1.8938748549666314e-05, -0.0014916459430654467, 7.87662201520331e-05, -0.0038842575659068126, -0.0009597406080185134, -0.005276804077598788, -0.0018214055098514804, 0.0003132810424659884, 0.0006007128713591621, -0.002841441479325621, -0.0027917744765271445, -0.008182142830764128, -0.005684403738227719, -0.003939677840110654, 0.00014074448453617043, 0.0008220047838962739, 0.0014662503306650575, 0.0009219550427784281, -0.004847338271363609, -0.0004030102797075952, -0.0001589834323679818, -0.004537988706511653, 0.003793907323163718, 0.0021194390792565665, -0.001091439812143751, -0.004437441640132822, -0.0016651135136554881, -8.427309692555543e-05, 0.0006845262328391876, -0.008206764201645093, -0.004255284730273494, -0.002778032482514706, -0.007541810796945412, -0.0002807222251177917, -0.0028795331805234357, -0.007969414577631, -0.0038314047381011527, -0.0009824674902464145, 0.0031918677323852017, -0.003559420328913629, -0.0001524865811498478, -0.007274666777568249, 0.0014409376320593736, -0.0015506394854850865, 0.00042483618519344684, -0.00020276328969557613, -0.004012701158608532, 0.0007261924564426816, 0.0013251461948861787, -0.0005851052012524379, 0.0008438854491559348, 0.002682671386129795, -0.00018669483116696926, -0.0028742893987572446, 0.0029090553203494126, 0.001918147029125722, -0.002145687753667822, -0.001271767929665785, -0.0007716068297369867, -0.0032542896816599937, -1.377675524664698e-05, -0.0012189209591586976, 8.732410065335718e-05, -0.0031892019371381726, 0.0027330893756310395, -0.0036368353978987627, -0.0008450129386268499, -0.00043499994359050693, -0.0030779015060099, 0.00022458334085280335, 0.0004825938651956326, -0.007523951579291139, 0.001648097497955805, -0.002394607433016095, -0.00541476657598326, -0.004421717198469776, -0.00021176566181567007, 0.0012629031457715382, -0.000666677033032405, 0.0008708766532030403, 0.0012299148924191578, -0.0012278861079410642, 0.003156789018261936, -0.001648592385600456, -0.00042295589231925536, 0.0031904609749212245, 0.001740654912153055, 0.0008235092529067739, -0.0018306365198825587, -0.0006575762881680733, -0.0030503413245326974, -0.0014631217007757544, 0.0003738617724366614, -0.0026296688048073552, -0.006128947761257038, -0.0027633495935472352, -0.006988527620462874, -0.0015263414153428706, -0.007302009079288266, -0.0032393715567955806, -0.0006451792348851753, 0.002916122917112838, -0.002999270415220012, -5.223151948174142e-05, -0.006430633053745329, 0.0013735492347603752, -0.0013221200705708612, 0.0021486424582700323, 0.00022632882375074354, 2.1968672279220188e-05, -0.0034944829694279183, 0.000604063330381504, 0.001098428913942466, -0.0005312875755322732, 0.0006413306407620539, 0.0021998002204766504, -0.00021368015505860392, -0.00279214764873075, 0.0018424470228973753, -0.005885404542648929, -0.0035685818630842208, -0.0007600464037238111, -0.003162483815919417, -0.0011766261456155804, -0.00517864586038667, -0.0009144736312343811, -0.0005982734118695661, -0.0027059562647969706, -0.0001941600993402244, -0.0026189520071341005, -0.0006697562930759481, 0.0001959225634984838, 1.100380204047289e-05, -0.0027165518031688884, 0.00044005140327862523, -0.006696589436244804, -0.0007719561764204463, -0.0028438656300014483, -0.004893818947924601, -0.006253032810655326, -0.0011559555373227568, 0.0010973031569336837, -0.0008209567858038394, 0.0007137379247819497, 0.001034685390941133, 0.0021135971068710446, 0.0005042045951812604, -0.0022486840637737423, 0.0011274972106418628, -0.0009631093840322659, 0.0022300345173954183, 0.000612595054772382, 0.0009090122310770721, 0.002815953380963201, -0.0023916732888923774, -0.0012765360755545175, 7.837554093010669e-05, 0.00133042329835432, -0.0013806108893186881, -0.006042484158066969, -0.004504017631982265, -0.000841071364687062, 0.002609536733701188, 0.00022527899788642183, 0.002222998668323341, 0.00014475240505091948, -0.005179480430109434, -0.0016477633006311385, -0.0006122974647876724, -0.00016992457588491038, -0.0003512265007903106, -0.00662229506688598, -0.0031345056764943875, 0.0007279580263152467, -2.9018376539293742e-05, 0.0011228357856237813, -0.00031250222610473187, -0.0010201841322743722, 0.0025765900626661085, -0.004987953528160748, 0.0016450026919441264, -0.001442820546918389, 0.0017809630721995085, -0.0006005209607052864, 0.0006175223924028811, -0.0008705249666996861, 0.0012766528192895866, -0.004852559211078187, -0.0012213612651037942, -0.000664619271638752, -0.0021934305100990486, -0.0006965747845645402, 0.00017400688224515374, -0.0014944499318476378, -0.006464869595827621, -0.0001789825048940695, -0.0014381865497085306, 0.00047872923560289847, -0.005589679688677513, -0.00017387237324346843, -0.002117882646894224, -0.004116631155479588, -0.00013648503741375722, -0.0030583935862099334, 0.0004683588334904857, 0.0010105522490347738, -0.0007578563465091826, -0.005741674816348256, 0.0005361467433880649, 0.0017227803799302211, -0.0010597394858117657, -0.0047647283659613075, 0.000939412522228994, -0.0007795879023538469, 0.0010249817815307645, 0.0012123057511939281, -0.0001809903243364967, 0.0006932116130126914, -6.528284124522851e-05, -0.0022528705759192066, -0.000900240071821331, 0.00034257326538389725, 0.0024791980311524697, -0.0027061793031368615, -0.004144560232811441, 0.0019297265225927274, -0.005077553794506504, 0.004563919875706374, 0.0011666348101275698, 0.00026019176177812263, -0.005009143877322564, -0.005951379184993129, -0.0011873269638275783, -0.0005591700633344619, -2.714078935388578e-05, -0.0029329514593271727, -0.0021865483274683233, 0.00010182870469751154, -4.792457786013138e-05, -0.005421556478201636, -0.002562699783922168, 0.0023065582502376563, -0.0044935978445075665, 0.0022975793850694664, -0.0003218694237517478, 0.0008609108747799414, -0.0036480026103118167, -0.0005480733797422501, -0.0011179488625795654, 0.0014399005807338731, -0.0003748210508752406, 0.001462424636644217, -0.002855213711376316, -0.001021211355789432, -0.0027825476187352035, -0.0023700228856700957, -0.0004457948130434087, -0.0016890177231013007, 0.0014656834275651699, -0.00308413551690543, 0.0012716402365587597, 0.00020857804849154965, -0.00012377556799413132, -6.314804663710229e-05, -0.004901266667635024, -0.006977706196747566, -0.0023805111812674894, -1.4154462968598829e-05, -0.0021391926542325104, 0.0004024184172526005, 0.0014579942782765461, -0.0013685105864333783, 0.00042637869590616396, 0.0020759024228549547, -0.004044238043174619, -0.0004673470678984133, -0.0007614489741621794, 0.0017160331928642342, 0.00045098751729422213, -0.002751915740093021, -7.58478226104142e-05, 0.0014452242343456342, 0.0020194658385057915, -0.002591137814039712, -0.004714303682515909, -0.0008658400044970883, -0.0005695236412090362, -0.000919914739518763, -0.00047138748214523246, 0.003221371141426401, 0.00010946398822912357, -0.0006313881754263677, 0.00028675514870511997, -0.004242783124500892, -0.0006059141641506576, -0.00037978559380092314, 0.0005018695924861565, -0.005277603157000345, -0.002823982482228995, -0.0003661808101977544, -0.002447569929623637, 0.0002899334177787877, 0.0013121948146408578, -0.0012316595988830538, 0.00038374078509299125, 0.0019261300658640825, 0.00060404460022287, 0.0018916888366632637, -0.00048133738531045073, -0.0006689718118152455, 0.0020771317174005303, -0.00029771362273803997, 0.00019203470397180899, 0.0009730803566888332, -0.0010785764039548164, -0.0030212189286750644, -0.002227608762060374, -0.00047795255681549434, 0.003388020714684464, -0.0004019306890992964, -0.0017445686838821455, 8.712659864944575e-05, -2.392590566498285e-05, -0.005002815240769641, -0.0015982671861405004, 0.0014176584792663788, 0.00024264137891374102, -1.8581158680176262e-05, -1.5142192658539736e-05, -0.004101132432692541, -0.0021218756544280895, -0.004946513613018059, -0.0008919220509942529, 0.0006224296975045222, 0.0005977526226154771, -0.0004531349416936618, 0.0006393982110620405, 0.001997324211645017, -0.0041189525993420035, 0.002015479348912021, -0.002200247025987949, -3.870243194306074e-06, 0.0012800444197168925, -0.005283784434171608, -0.00039327358204286505, -0.003330551695361645, 0.00015716166914817232, 0.0005092893066194595, 0.0012522634007137868, -0.001392203704336637, 0.0002871200871369374, -0.00024520884375703946, -0.0014372707881021576, 3.883250587326714e-05, 0.0008303101058975327, -0.0005576243562405236, -0.004788509299076939, -0.0011845797367818958, -0.004649032320007146, -0.0030062665952377333, -0.0005233344726748654, -0.003983094500423801, -0.0034293018351513466, -0.000295159596800945, -0.00012444762175908437, -0.0009654469441292314, -0.0056743449637678125, 0.00028710265596348076, -0.002511927530065599, -0.0029786217170417904, 0.0012127794500719857, -0.0003695458562401879, 0.0018071337224504248, -0.002890199582888331, 0.0009534936459175485, -0.005170729927347737, 6.03661519060518e-05, 0.000878157108550888, 0.0043671090055617005, 0.0008697451218208351, -9.65619912183889e-05, 0.002274836970740852, 0.0009407875046723186, -0.0015439916918232898, 1.3232240309950676e-06, -0.001234959962218228, -0.0014243761394037546, -0.0024881557764527065, 0.00013132611120749536, -0.002510629243167608, 0.0018806146646936786, 0.0002923941403538209, -0.0008264528022539357, -0.003753365375315758, -0.0030276019450231396, -0.003324825975657231, -0.0004262652626107844, 0.0005369303620401132, -0.0017768173072849063, 7.280571343440225e-05, 0.000547983275646389, 0.0012050976733727079, 0.0015802596122967871, -0.002469937071941724, 0.004363771757697576, 0.0015523222932550273, -0.0007962916185175952, -0.0005855547466840779, 0.002877534344071026, -0.00022194174904751983, 0.0015440240739653087, 0.00027071296524107315, -0.0009701947478661, 0.00021017635825398124, -0.001650040202845742, 0.0006201092001679992, -0.002858489481784231, -0.0004293877737742847, 0.001113840783985749, -0.0006926370938856859, 0.0034680529958351206, -0.0041327719272129864, -0.0010055915190450453, -0.0004124731680538096, -0.0029186886820710876, -0.0003005701799831656, -0.00014193447448066786, -0.004613265719108652, -0.0014532375391892566, 0.00011055787105790887, -0.002138567345744761, -0.0020096608776732704, -5.5450382378167845e-05, 0.0018654663047373615, -0.0015867457571954826, 0.0003794906353587839, 0.0004300410848480099, -0.00026266061658361566, -0.004499548956305928, -0.000902788710478985, 0.0020803541733895032, -0.000293647577017551, 0.0010963985139188193, -0.000273989443206432, -0.0038307912183812715, 0.00023285402496777048, -0.00033467431023730094, 0.0005434885326987351, -0.002980380184188683, -0.00041277729995545037, -0.004577299620025222, -0.0006207832297724465, -0.0025239270644549757, -0.006624671299510327, -0.000632725083396809, 0.000258530235643995, -0.003708128887636277, -0.000533519895509034, -0.004756165847664406, -0.0005998462094402033, 0.0011963265920507393, 9.665521935084084e-05, -0.0018959939308395117, -0.00203640468157127, -0.0001568229065146378, 0.0016789196752502698, -0.0022051895409365874, 0.0001752667250997519, -0.0014519567049288552, 0.0006688298685532914, 0.0004434874894654633, 0.0015089042000864478, -0.00023639457064097134, -0.004049594015989349, -0.00081250979396651, 0.0018723188062314334, -0.00026428279957191103, 0.0009867586649815834, -0.0010093576499873985, 0.00016583787652050982, 0.0004124403063131259, -0.0005117998136605029, -0.0013599157448429351, 0.0013268565122866584, 0.00017748262902119114, -0.0009452150726843276, -0.00411956961846869, -0.00046710411100514136, -0.002444199689245525, -0.0031114069750769087, -0.00029398964289011124, 0.0020481582815502285, 8.497237125327916e-05, -0.002412989399689751, -0.0008970222374408241, -0.0018327641592305495, -0.0001411405923762223, -0.0002631094481007655, -0.002375024256568494, 0.0010309494478712743, -0.0004521664329725374, -0.0008319602633530625, 0.0011699467752930009, -8.830604561592948e-05, -0.0028763465107334, 0.00041392918061441064, 0.00012769892843216872, -0.0017872333693898853, 0.0004602853005102099, -0.00036224954528652723, 0.0008870000309195433, -0.0006615457709247749, 0.002980810555620287, -0.0014976676345733843, -0.0025698950398455054, 0.0002783655830385584, -0.005333250805514374, -0.002984087351429051, 0.002193776929344003, -0.0040338637995449055, -0.0005836389779224523, -0.00038440948154040586, -0.002970809322356312, 7.025315009043306e-05, -0.0023646857819432836, -0.0006447612529800775, -0.0015867448222346395, -0.0011756819957299298, 0.0001078960645319549, 0.00034639587441448433, 0.00016500408364573786, -0.0010494001662197138, 0.002235899676554094, -0.0019015126543677052, -0.005247232384543711, -0.0040140655089406915, -0.00014289969126538696, 0.0007942960678680859, -0.0038083523043029328, -0.0004932095187147019, -0.004347737418693299, -0.0006928804912560788, -0.003317111501317441, -0.0014505775088429248, -0.0024476693211668197, -0.0006771351605631143, -3.224485465209122e-05, -0.002443173183147365, 0.0007084345033374862, -0.0006543980239472653, -0.004628165489139404, 0.0021575353121933423, -0.0009173562217516436, -0.0048691877295241265, -0.00029480962211080313, 0.00013701893456009035, 0.00032861140608864516, 0.0004630639790038107, 0.0009013041157162646, -0.0019365349586619417, -0.00040187215426655684, 0.0007610652862833785, -0.0017269885975011669, 0.0012879637895324486, -0.0002986716277904944, 0.0002046710963817436, -0.001751365779036051, 0.0004315294590789092, -0.0002947335693452577, 0.0006138804278849974, 0.00046863979375319075, 0.0022012091565167366, -0.004497344824888875, -0.0019231859940072498, 0.0005143160423461737, -0.0009795582387279996, -0.0024239239835029667, -0.0018114894556864342, 0.002228793031959012, 0.00045262966448005585, -0.002311334089299748, -0.000244399189213861, -0.000398000040176715, -0.0016494288611425736, -0.00015450494613730424, 0.0009616942324039929, -0.0036372508965378937, 0.0019835491582428136, -0.0016752249448832937, 4.228192242720207e-05, -0.0014679159972705604, -0.0013531973727877586, 5.646988075778849e-05, -0.002557275172047046, 3.238720169057063e-05, 0.0009926401550071353, -0.0006372001490567615, 0.0001558074672795215, -0.0015762291663560986, 0.00010858097362190217, 0.0005524924006706657, 0.0004217758157085475, -0.001572793139849574, 0.002098606230894445, -0.004103667443380322, -0.0005889178725194165, -0.0021815315338149593, 0.0004777342408543388, -0.0019930714978629942, -0.0002271274559412271, 0.0018634493820859667, -0.0004743682193561049, -0.0013690559544774026, -0.0019888431644020477, -3.308178577289721e-05, 0.0003684159458676641, -0.004721126566714064, -0.0010476555972045642, -0.004898227602030358, -0.0005754476982447466, 0.002050736987703373, -7.804400724822047e-05, -0.0013211243929719101, -0.0012178776581605005, 5.0822866481579286e-05, 0.0004900347910343666, -0.0014169213735355961, -0.000608022803259355, 8.006467544616768e-05, 0.00027913071570168064, -0.0014313753049631243, 0.0007153703245745153, 0.0018975775498113754, -0.00215498107682944, -0.00035327187870654573, -0.003925253060244796, -0.0026607674764743358, 0.0010765239669353122, -0.0021886446212807135, -0.00020796576553769645, -0.00012028398469539448, -0.0018050462385249281, 0.00032972473332263904, -0.003239409469057797, -0.0002769755742464304, 0.00015158084159170614, 0.0008157606323021635, 0.0010828573441005187, -0.0005763313996695805, 0.00026402711256285374, 0.0019865806054997276, -0.0015857846066245703, -0.00015801720402600978, -9.536438544877041e-05, -0.0014817322163817453, 0.0003695347384406354, 0.00020515024242062524, -0.0023721962750720173, 0.0006129312319102138, -0.0005420447415056607, 0.00013070863924552522, -0.002256681328421381, 6.664878555680441e-05, -0.00025324734489062215, -0.005376534606511116, -0.002439427369418069, -0.0007247857221672852, -0.0028332328297223453, 0.0011897280294338836, -0.0008041461872859576, -0.0038619648444764587, 0.0006204491808700723, 0.0010314914984430167, -0.0025558956712712416, -0.0003212411910850811, 0.0018984992523579589, -0.0010526267898045801, -0.0005571343566592745, 0.0020834722727040736, -0.0011493708071032467, 0.0014423669718582543, 0.00044769616854447496, -0.0019651443890431187, 0.00022469292922066257, -0.0008853933172750293, 0.000913338803224837, -0.0003570429495917677, -0.0033751538724344347, 7.327709847976499e-05, -0.0039062124342022775, -0.0007971009218506154, -0.0019218387683571352, -4.0039284168783896e-05, 0.0030400216461339835, 0.0006176156853279432, -0.002347003224692862, 0.00017160850266587492, -0.00042193509775274933, 0.00029714957254781696, 0.00022623493718570872, -0.004530122807863264, -0.0019184689012933477, -0.0025499095762526085, -0.004532061200288242, -0.0023763978348809393, 0.001165761990967983, -0.0029724674667834746, 5.384999067611472e-05, 0.001167423180270441, -0.0006730831434014501, -0.0030276162056105237, 0.0036284447773815387, 0.0014613130663393872, 0.0003168368728617045, -0.0003037009544858498, -0.0018657186283644032, 0.00018671171692936776, 0.0010229679955779216, -0.0007707839826074391, -0.005113134064821313, -0.00037434713856608745, 0.0002065442169227503, 0.0008717432618122509, -0.0019448147333784823, -0.0054899303127898735, -0.0011809376163653212, 0.0005303218009070949, 0.00043927355080290243, -0.0024238636141119814, -0.0009890361232854608, 0.0006849152315372759, 0.00024373234227373028, -0.00176661319799823, -0.004680618864645413, -0.0009262587539811918, 0.001201525974330795, -4.4802255672805636e-05, -0.0019806362787574564, -0.0017216580075793183, -0.0004003367783351657, -0.0022515169247091, -0.00018566322469166117, 0.0009197209883154399, 0.0012171475321542157, 5.766368392089925e-05, 0.00029045538010404634, -0.0016430464179818809, -0.0001485993394711273, -0.0010358076600735673, 0.0005870045752463214, -0.001033503000142661, -0.0009987448927459579, 0.00015479446220258874, -0.0013820639056553537, -0.0020999968978724598, -0.004808529401460508, 0.0014417886748721428, -0.000563142174534198, 0.0004122560935559283, -0.0015112426704853086, -6.965616440621149e-05, 0.002757341804435501, 0.00016275087744050846, -0.001287008842897859, -0.0005351631915063359, 0.0010302128689216419, -0.0022156593520597867, 0.000154624194965164, -0.0029410986938570335, -0.0005407743470675683, 0.00013393672109301684, -0.00412046028147495, 0.00022407833514272377, -0.001495499945373689, 0.0002811269719231851, 0.0033164700825247246, -9.256620680495258e-05, -0.0009908310253067443, -0.0037154644352613096, -0.00012332398085409082, -0.0029700261214825035, -0.00018983325698347447, 8.275486776255085e-06, 0.0010157357522517514, 0.00031052327275918844, 0.0001772898112201941, -0.0017784738811216555, -0.0015064550664692672, -0.0015514727584590457, 0.0012672231337400868, -0.0010532961454194933, -0.004077122128995964, 0.0017886233244073858, 0.0004593072169792452, -0.001929160642718586, -0.00019725211005503288, -0.00038119323143035464, 0.0017795253936850502, -0.00031106686650251344, 0.0019856521713986263, -0.0014505449062938462, -0.004980466538278226, -0.0024694108857360266, 0.00017936641168055212, -0.001842214104887857, 0.0032293144986253047, -0.00015575552599947622, -0.0038081849997693984, -0.00042090225570454897, -7.042423772697952e-05, 0.00018104570246564407, 0.0005536448630447914, 0.0007296210307090124, -0.001157196967252281, -0.0013766655834767665, 0.00010945421576707119, 0.0009536988195713713, -0.0020998878654396643, 0.0010188903383336555, -0.0024249624229271518, -0.0001626240073644725, -0.00409651583436116, 0.0017220217962253485, -7.080498174986765e-05, 0.001505818971092063, -0.0012634505110719462, 0.0008337735296075332, 0.0031530862411922977, -0.0014889629100513025, 0.0011163474056372837, 0.0002476606253812845, -0.00283849846474017, -0.0007627870183321586, 0.0002962592778091484, 0.0009588340117547865, 0.0009075685619896021, -0.0010594475439306373, 0.0001344907769660714, -0.00015887210386992184, 0.0011131146524338672, -0.0004772017810051617, -0.002655774977174731, 0.0001823581010914221, -0.0014968176140166712, -0.0002973844220526317, 7.689250981180622e-05, -0.0009567073200500778, 0.003947427620740371, 0.0008960709292974939, -0.0020334769131698754, 1.5670284492507508e-05, 0.00024387515816520368, 0.00023840398191539056, 0.00120666189599229, -0.0009364799784715213, -0.003817476744325584, -0.00010973197040718348, 0.00010523673280311091, -0.004537753706361943, 0.00013260143998813071, -0.0013638095859172265, 0.0007431988527584119, -0.0007079502380609999, -0.004668403424186416, -0.00260623418445159, 0.0009711100494124215, -0.0015978547154228947, 0.00046869676037388213, -0.00010061215713961955, -0.001453682614015893, -0.0038509801218192478, -0.0006283655447869773, 0.0029788011583838357, 0.00021276190625175783, -0.00045705704813246413, -0.0015911736295777087, 0.0007563021826535679, 0.0006909336816221423, -0.0021396747763328602, -0.0003862720604434276, 0.0004187363132067}; @@ -13,7 +14,7 @@ public final class Speedrelative_priority implements FeatureRegressor { public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -34,14 +35,14 @@ public double[] getData(Object2DoubleMap ft) { return data; } - + @Override public double predict(Object2DoubleMap ft, double[] params) { double[] data = getData(ft); for (int i = 0; i < data.length; i++) if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - + return score(data, params); } public static double score(double[] input, double[] params) { diff --git a/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java b/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java index ad217180..ff85f16f 100644 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java +++ b/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java @@ -1,11 +1,12 @@ package org.matsim.prepare.network; import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - + /** * Generated model, do not modify. */ +@Deprecated public final class Speedrelative_right_before_left implements FeatureRegressor { - + public static Speedrelative_right_before_left INSTANCE = new Speedrelative_right_before_left(); public static final double[] DEFAULT_PARAMS = {0.8963104890604893, 0.907779780107761, 0.9657777777777777, 0.9390178571428571, 0.8976287001287001, 0.8780142118863049, 0.8887809250136831, 0.825, 0.9178789873780846, 0.9118619338974725, 0.8633333333333333, 0.8988143023581764, 0.8620000000000001, 0.9060461051236138, 0.9125183877611075, 0.9289101037851039, 0.86, 0.8830906593406594, 0.90612800068587, 0.9417142857142856, 0.9073636363636365, 0.8774057457693821, 0.8917696504884008, 0.9224348574237957, 0.8724999999999999, 0.8942378151260503, 0.9119517494603098, 0.8995305004135644, 0.81, 0.906801705037773, 0.9127536984823196, 0.8988636363636364, 0.9315416065416066, 0.9349062049062049, 0.8969890335444526, 0.9348571428571428, 0.8980857142857145, 0.8856666666666667, 0.8736043689320387, 0.9128539042140267, 0.8522222222222222, 0.8728571428571428, 0.8957270063048499, 0.81, 0.9057298460517382, 0.9119159948649355, 0.923600529100529, 0.8955372363557295, 0.8474999999999999, 0.9111714922048996, 0.9140597667638484, 0.8940000000000001, 0.8817649456521732, 0.8923656604072576, 0.9115526965460413, 0.9063091992909768, 0.9278564102564104, 0.9116596143892381, 0.8369444444444444, 0.9533333333333334, 0.9179887755102042, 0.8961407076719574, 0.9065209235209234, 0.9053174603174603, 0.8755526210484196, 0.9266666666666664, 0.8903952437777016, 0.9126892319168844, 0.9060949275362316, 0.94375, 0.9279761904761904, 0.8872294372294374, 0.905262565112545, 0.9335344827586207, 0.9117431057774061, 0.9133333333333334, 0.9624999999999999, 0.9205203634085211, 0.9046606919921524, 0.885290738837501, 0.9462499999999999, 0.9050396825396825, 0.8938604921077065, 0.9306392632524707, 0.9115489742058761, 0.9015513059544803, 0.9097905589449835, 0.8355555555555555, 0.9115875715365513, 0.9463898412698414, 0.8869117216117216, 0.920287356321839, 0.8915902876001878, 0.912917748917749, 0.8812435897435896, 0.8908123114259477, 0.9134191437851321, 0.8608, 0.925595238095238, 0.9428900112233443, 0.8983750112097563, 0.9066231157184487, 0.9185284455128196, 0.9111929377013993, 0.9156882190184944, 0.9618518518518518, 0.8480000000000001, 0.9034016996972196, 0.9089377289377286, 0.9450000000000001, 0.8411111111111111, 0.8852724694005188, 0.9275840455840455, 0.9115927977152296, 0.95, 0.9016370911621433, 0.8932330896397288, 0.9073952380057445, 0.858, 0.9240311059907833, 0.9065454324586977, 0.9539506172839507, 0.8913375992063499, 0.8720893719806763, 0.8978113316960016, 0.8754740740740743, 0.9241414141414144, 0.97, 0.9134333965063667, 0.9332121212121212, 0.896646095484826, 0.9048114248624498, 0.9179519979573592, 0.9096654880059047, 0.9114651707205671, 0.9353006535947712, 0.9017669906570216, 0.8225, 0.888325396825397, 0.9155204872646732, 0.8477083333333333, 0.88645889623455, 0.9138631499519039, 0.9069037807430658, 0.8760732323232324, 0.9133333333333334, 0.8987480607120432, 0.83, 0.9065239779355977, 0.9118807043650808, 0.9261224489795917, 0.8964603174603176, 0.9724999999999999, 0.8635093167701863, 0.8968705868205864, 0.8710444444444442, 0.8864712389380531, 0.913670796731158, 0.83, 0.8801234567901235, 0.9064023487773486, 0.8966307979602087, 0.8468181818181819, 0.9067232056921173, 0.9121806805399314, 0.9164756097560975, 0.8997246216315977, 0.9264285714285715, 0.9604444444444444, 0.9023615160349855, 0.8667811224489795, 0.9209126984126983, 0.8912381796690306, 0.9131125601456902, 0.8758333333333331, 0.8491666666666666, 0.95, 0.9003444986294373, 0.9089710496249118, 0.84, 0.9137755102040817, 0.8479166666666668, 0.9460000000000001, 0.9131474108769188, 0.9006687988628284, 0.85125, 0.9233333333333332, 0.8871921846187221, 0.9128130849019936, 0.82, 0.8994898294098979, 0.9065283439133278, 0.9270833333333333, 0.9470370370370369, 0.9176040208590636, 0.9102188855452498, 0.9077810348537008, 0.8616666666666667, 0.952888888888889, 0.9195555555555556, 0.955, 0.8721872082166194, 0.9058176190476189, 0.8892145779752149, 0.9197197674418602, 0.97, 0.9114728738100862, 0.9575, 0.9233571428571428, 0.8994351212279782, 0.9121506653469709, 0.9063740332759166, 0.9168739177489179, 0.9409811875367432, 0.8930322510822511, 0.9079232991857105, 0.8975975422427037, 0.9173449735449737, 0.8767065527065526, 0.8904209252806806, 0.9025109270761444, 0.9151556198525614, 0.8965180991095627, 0.9102292539165499, 0.9000625828324853, 0.9071489459661338, 0.9146306074877499, 0.9078297424948234, 0.9538461538461538, 0.9235871546149326, 0.9095966386554623, 0.88685, 0.9036226333907056, 0.8761461412151064, 0.8875914918414916, 0.82, 0.9043749999999999, 0.913229965839154, 0.8966499118165784, 0.8963636527800346, 0.81, 0.9144076211853991, 0.9069250171640673, 0.859375, 0.9123046707054904, 0.8663888888888889, 0.8832426406926406, 0.8535416666666668, 0.9062405372405371, 0.8921325471698108, 0.9130257648749901, 0.9066011383678083, 0.98, 0.9127431685188195, 0.8403030303030303, 0.8686054421768706, 0.9020917508417506, 0.9575, 0.8817531975600162, 0.9521904761904764, 0.9, 0.975, 0.8998432744231712, 0.9128722973772332, 0.91125, 0.9404676767676766, 0.8961609560652104, 0.94, 0.9055938359214272, 0.9118614953127417, 0.9026623376623375, 0.9124921522673196, 0.9376174603174602, 0.91625, 0.8791836734693877, 0.91704609929078, 0.8764207650273224, 0.8900302810077519, 0.8514285714285714, 0.9320639880952379, 0.9120123720933075, 0.9458333333333332, 0.932607843137255, 0.9008569007850045, 0.9144233992140552, 0.9076185406350459, 0.9087216457204349, 0.8698809523809523, 0.9504575163398695, 0.9168253968253968, 0.9575, 0.9113914910226386, 0.8742735042735044, 0.8892988178878105, 0.9186808201058205, 0.9413000000000002, 0.9127886733946768, 0.90525048590865, 0.9117047340165935, 0.9040737698312573, 0.9342436974789914, 0.9124143956634909, 0.9629166666666668, 0.9166075268817203, 0.900836701734957, 0.8590476190476192, 0.9549999999999998, 0.9583333333333334, 0.8835339947089947, 0.9173510689990282, 0.9105930717949452, 0.9267499999999999, 0.9537037037037037, 0.8965379354544167, 0.81, 0.9057372513233752, 0.9117025676937486, 0.9289152661064425, 0.9072296813462226, 0.9461693121693122, 0.88, 0.9021743915343915, 0.8525, 0.8773258145363407, 0.8899619229371141, 0.9145110071291122, 0.9034828192640693, 0.8982925824175823, 0.914337398373984, 0.8986023000827502, 0.9065549852824765, 0.9303571428571429, 0.9129700650682545, 0.9085714285714286, 0.8844444444444446, 0.9530769230769232, 0.9159847655537314, 0.8586607142857143, 0.9047658359293874, 0.8796229508196718, 0.8946043247344458, 0.9733333333333333, 0.9256361231361232, 0.9124370733198691, 0.9077759551495022, 0.9011375404530748, 0.906432943165566, 0.9138637566137569, 0.90588351594325, 0.9039004054520362, 0.859, 0.9348684371184373, 0.8893333333333334, 0.9223529411764707, 0.8875427948957362, 0.8343750000000001, 0.8802500000000002, 0.9146802030000676, 0.9044582378405911, 0.9494366744366745, 0.9238461538461539, 0.8990830986322339, 0.8680769230769231, 0.9067528832624594, 0.9124966462445298, 0.9488461538461539, 0.916897838568051, 0.9037300505050504, 0.855, 0.8762508116883115, 0.8175, 0.9170204081632654, 0.888842857142857, 0.9131314199147661, 0.8588888888888889, 0.8639087301587302, 0.9011538461538464, 0.9139651062970262, 0.8813333333333334, 0.9029880629154616, 0.910469066515498, 0.9142822352685367, 0.9044583640473731, 0.8587499999999999, 0.8925146825396825, 0.8746021062271059, 0.9314285714285713, 0.8920663446873409, 0.9266163623344076, 0.9121442636126181, 0.9118387142537488, 0.8522222222222222, 0.8998732867435937, 0.8653333333333333, 0.9061258978611965, 0.9115514565598496, 0.94125, 0.9156936605918088, 0.8885156249999999, 0.9072331390370802, 0.9575, 0.9061148459383753, 0.8818014264264258, 0.8927877544614837, 0.9007142857142857, 0.9328092970521545, 0.9123191792416646, 0.8586666666666666, 0.9000817379685306, 0.9060046016957547, 0.9276495726495727, 0.9118913255910112, 0.9158933410762681, 0.9033565335583049, 0.9161445845666372, 0.82, 0.9031756756756758, 0.8734375, 0.9633333333333334, 0.9082225294985248, 0.9574999999999999, 0.908732409381663, 0.8717295597484276, 0.8932220652501507, 0.909896473265074, 0.9047709940822045, 0.9375892857142859, 0.9102582220465107, 0.923735229276896, 0.98, 0.882116883116883, 0.9073649772408962, 0.8809014136904761, 0.8924398057548741, 0.8752380952380951, 0.845, 0.9165307017543857, 0.9412380952380952, 0.911517294727134, 0.932104700854701, 0.900056958056958, 0.81, 0.9120916666666661, 0.9067132328896942, 0.9570000000000001, 0.9011841527939084, 0.9121304824561406, 0.9374074074074075, 0.908556628056628, 0.8730658914728682, 0.8848747334754794, 0.9181322620032301, 0.9114789302991948, 0.879422619047619, 0.9041666666666666, 0.8944099216710178, 0.9008846493013155, 0.9147012195121947, 0.9070592602316181}; @@ -13,7 +14,7 @@ public final class Speedrelative_right_before_left implements FeatureRegressor { public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -34,14 +35,14 @@ public double[] getData(Object2DoubleMap ft) { return data; } - + @Override public double predict(Object2DoubleMap ft, double[] params) { double[] data = getData(ft); for (int i = 0; i < data.length; i++) if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - + return score(data, params); } public static double score(double[] input, double[] params) { diff --git a/src/main/java/org/matsim/prepare/network/Speedrelative_traffic_light.java b/src/main/java/org/matsim/prepare/network/Speedrelative_traffic_light.java index f6919245..e39b6dbb 100644 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_traffic_light.java +++ b/src/main/java/org/matsim/prepare/network/Speedrelative_traffic_light.java @@ -1,11 +1,12 @@ package org.matsim.prepare.network; import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - + /** * Generated model, do not modify. */ +@Deprecated public final class Speedrelative_traffic_light implements FeatureRegressor { - + public static Speedrelative_traffic_light INSTANCE = new Speedrelative_traffic_light(); public static final double[] DEFAULT_PARAMS = {0.02672967, 0.081900865, 0.053034972, 0.08446151, 0.03276493, 0.071407326, -0.023928678, 0.03410692, -0.042862535, 0.007113333, 0.0023266017, 0.042514097, -0.058245804, -0.013689547, 0.0049403505, -0.021806315, 0.039555844, 0.012205355, 0.055683292, 0.040495906, -0.018197138, 0.012440386, 0.032121252, 0.008326337, -0.042096734, -0.020887302, 0.0044887, -0.035267785, 0.010093981, -0.016060995, 0.022857327, -0.0062540593, 0.017679192, 0.04323236, -0.009998074, 0.036675263, -0.034326367, -0.0027236857, -0.029326094, 0.023139749, -0.02400434, 0.009349212, -0.06401877, 0.00803626, -0.03857581, -0.011204823, -0.05182662, -0.01122764, -0.04997249, 0.0016140289, 0.01590757, 0.03240009, -0.048695743, -0.025288235, -0.015816864, -0.0008354368, 0.028008368, 0.04024639, 0.00086700777, 0.025649697, -0.017507378, 0.015326313, 0.041393295, -0.045492128, -0.0139780585, 0.018288834, -0.007137278, 0.019313008, 0.006469012, 0.0047062146, 0.023600647, -0.010110819, -0.023493957, 0.010161423, -0.015696606, -0.03562217, 0.006692773, -0.018435616, 0.0038985629, -0.016864264, -0.001187908, 0.011493373, 0.0018385139, -0.016310629, 0.0013226686, -0.027069269, -0.011383642, -0.023405619, -0.009091406, 0.0012356937, -0.02051276, -0.0016820772, -0.037399866, 0.013381466, -0.03972806, 0.006310406, -0.004882459, -0.00018265756, 0.014005854, -0.0049224123, -0.019507458, -0.010337537, 0.019420264, -0.043424454, 0.01803482, -0.012511946, 0.029618748, -0.00330452, -0.024241628, 0.020220226, -0.0012113304, 0.0060021942, -0.010335434, -0.022662979, 0.008070686, -0.007909735, 0.0061049, -0.00754677, 0.009248198, 0.00042798033, -0.016113643, -0.004144019, -0.015797436, -0.036987927, 0.0052333786, -0.007865147, -0.00038512584, -0.019125879, 0.006921055, -0.004053284, 0.036284827, 0.013979893, -0.00031446968, -0.0014063935, -0.020877214, 0.008057659, -0.00344305, 0.0037369246, 0.030612065, -0.0050245672, 0.013907017, 0.014756328, -0.010173623, -0.011990903, 0.016641164, -0.023504745, 0.010938932, -0.04214916, 0.017000519, -0.031579223, -0.014754095, -0.0056909057, 0.0115929125, 0.0033608908, -0.0012129244, -0.006745956, 0.0005271181, 0.024115793, -0.002309813, -0.019186174, 0.004995935, -0.0032075713, -0.018796884, -0.005572311, -0.012635144, 0.014109028, 0.001250176, 0.0057716053, -0.020501874, -0.0006526424, 0.008763132, 0.012876768, -0.008461759, 0.004772153, -0.01012048, -0.0018596641, 0.0, 0.022573654, -0.01835205, 0.0046745646, 0.0, -0.03536958, 0.008444654, 0.0017268299, -0.011742718, 0.006219295, 0.015834937, -0.014433121, -0.0054902495, 0.012779403, -0.009488669, 0.00030039944, 0.00042476412, 0.0054790135, -0.0031896585, -0.021349462, 0.011214811, 0.036101967, -0.011064748, 0.00026978576, 0.020780737, 0.0021785772, 0.0032453018, -0.0124553535, 0.0061376505, -0.021886118, -0.009512777, 0.015981643, -0.008499147, -0.0005367195, -0.011721236, 0.0020560187, 0.017658614, 0.0069867484, -0.009386386, -0.001393256, -0.006149292, 0.008796969, 0.00023590519, -0.005488677, 0.011950189, -0.04180444, -0.010375813, -0.0049798763, 0.019866657, -0.0043466855, 0.00602803, 0.02591866, 0.019801212, -0.0017350526, 0.0052215727, -0.00015579026, -0.007276478, 0.011183358, 0.0064067603, 0.0061288537, -0.0071214447, 0.0020716758, -0.01603627, 0.0076239635, -0.017927235, 0.014956552, 0.010882739, -0.011055113, 0.01847202, -0.015520886, 0.005722581, -0.00868443, -0.010827428, 0.006549411, -0.014514054, -0.0024962898, 0.00061903097, -0.003289423, 0.003863995, -0.0015401262, 0.005169729, -0.00041814084, -0.007748396, 0.0011531163, 0.012569849, 0.016971465, 0.0018450491, -0.0008069037, -0.004156409, -0.024098692, -0.008196066, 0.0009979605, -0.032654915, 0.007038396, -0.017315391, -0.0065580253, 0.0149074355, 0.02341699, -0.0004702245, -0.018915761, 0.002015762, 5.8807153e-05, -0.010585102, 0.041828405, 0.0, -0.0355101, -0.010269751, 0.014998806, 0.018291168, -0.0028743467, 0.0174826, -0.0004413311, -0.017520329, -0.00425402, -0.019582683, 0.004545165, -0.01844734, 0.0005263567, 0.007093741, 0.0023567427, -0.0038803825, 0.016031163, -0.00978845, 0.014525503, 0.0007352337, -0.0077979243, 0.0023218181, -0.017925201, 0.0012097007, -0.0006081959, -0.00069398317, -0.03405387, -0.0055578984, 0.0010618606, -0.005371819, -0.023276644, -0.02600419, -0.002633595, -0.00010532885, -0.0028377676, 0.012748503, -0.00203033, -0.017263561, 0.0005562401, -0.017590124, 0.0006730753, 0.004691983, 0.012806608, -0.02300126, -0.0036971956, 0.0024646786, -0.0027914767, 0.0048576733, 0.0020022457, -0.0036141973, 0.00035840302, -0.0017047703, -0.008714578, -0.00038072825, -0.01033011, 0.00611105, -0.008052845, 0.0018109282, 0.0066358177, 0.03232777, -0.009639772, 0.021862363, -0.017429113, -0.01042969, -0.0016700295, 0.0001407893, -0.0031154866, 0.0017336892, -0.008227171, 0.007140533, -0.012689197, 0.0051840413, -0.0012753225, -0.0076941233, 0.005221435, 0.03517991, 0.008712071, -0.024997069, 0.0131085245, 0.0005197675, -0.0002524971, -0.016701791, 0.020968925, -0.0039766366, -0.03530954, 0.024028504, 0.016613068, -0.0052661067, 0.05225834, 9.833425e-05, 0.008169875, -0.0008635007, 0.005399532, -0.014806244, 0.0015388669, -0.010500554, -0.020747289, -0.0069364654, 0.002613798, 0.00013274471, 0.026170686, -0.029559238, 0.005938267, -0.006929883, 0.0002942946, 0.00029299964, -0.0084923105, 0.0016527828, 0.028015409, -0.016085954, 0.006183133, 0.033776708, 0.004530843, -0.011248405, 0.0039703366, 0.0019399134, -0.0075180284}; @@ -13,7 +14,7 @@ public final class Speedrelative_traffic_light implements FeatureRegressor { public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -34,14 +35,14 @@ public double[] getData(Object2DoubleMap ft) { return data; } - + @Override public double predict(Object2DoubleMap ft, double[] params) { double[] data = getData(ft); for (int i = 0; i < data.length; i++) if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - + return score(data, params); } public static double score(double[] input, double[] params) {