diff --git a/Makefile b/Makefile index 440de6f5..dcc73593 100644 --- a/Makefile +++ b/Makefile @@ -87,11 +87,11 @@ $p/berlin-$V-network.xml.gz: input/sumo.net.xml $(sc) prepare clean-network $@ --output $@ --modes car - #$(sc) prepare sample-network --network $@ + $(sc) prepare apply-network-params freespeed capacity\ + --network $@ --output $@\ + --input-features $p/berlin-$V-network-ft.csv.gz\ + --model org.matsim.prepare.network.BerlinNetworkParams\ - # 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 $@ $p/berlin-$V-network-with-pt.xml.gz: $p/berlin-$V-network.xml.gz $(sc) prepare transit-from-gtfs --network $< --output=$p\ @@ -103,7 +103,7 @@ $p/berlin-$V-counts-vmz.xml.gz: $p/berlin-$V-network.xml.gz $(sc) prepare counts-from-vmz\ --excel ../shared-svn/projects/matsim-berlin/berlin-v5.5/original_data/vmz_counts_2018/Datenexport_2018_TU_Berlin.xlsx\ --network $<\ - --network-geometries $p/berlin-v6.2-network-linkGeometries.csv\ + --network-geometries $p/berlin-$V-network-linkGeometries.csv\ --output $p/\ --version berlin-$(V)\ --input-crs EPSG:31468\ diff --git a/pom.xml b/pom.xml index de7ffc0b..8067ec3e 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ 4.0.0 com.github.matsim-scenarios matsim-berlin - 6.1-SNAPSHOT + 6.2-SNAPSHOT MATSim Open Berlin scenario MATSim Open Berlin scenario diff --git a/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java b/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java index 7f1afd10..608dcff6 100644 --- a/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java +++ b/src/main/java/org/matsim/prepare/RunOpenBerlinCalibration.java @@ -16,6 +16,7 @@ import org.matsim.application.prepare.freight.tripExtraction.ExtractRelevantFreightTrips; import org.matsim.application.prepare.network.CleanNetwork; import org.matsim.application.prepare.network.CreateNetworkFromSumo; +import org.matsim.application.prepare.network.params.ApplyNetworkParams; import org.matsim.application.prepare.population.*; import org.matsim.application.prepare.pt.CreateTransitScheduleFromGtfs; import org.matsim.contrib.cadyts.car.CadytsCarModule; @@ -49,10 +50,6 @@ import org.matsim.prepare.counts.CreateCountsFromVMZ; import org.matsim.prepare.counts.CreateCountsFromVMZOld; import org.matsim.prepare.download.DownloadCommuterStatistic; -import org.matsim.prepare.network.FixNetworkV5; -import org.matsim.prepare.network.FreeSpeedOptimizer; -import org.matsim.prepare.network.PrepareNetworkParams; -import org.matsim.prepare.network.SampleNetwork; import org.matsim.prepare.opt.RunCountOptimization; import org.matsim.prepare.opt.SelectPlansFromIndex; import org.matsim.prepare.population.*; @@ -80,12 +77,12 @@ CreateLandUseShp.class, CreateBerlinPopulation.class, CreateBrandenburgPopulation.class, MergePopulations.class, LookupRegioStaR.class, ExtractFacilityShp.class, DownSamplePopulation.class, DownloadCommuterStatistic.class, RunActitopp.class, CreateNetworkFromSumo.class, CreateTransitScheduleFromGtfs.class, - CleanNetwork.class, SampleNetwork.class, CreateMATSimFacilities.class, InitLocationChoice.class, FilterRelevantAgents.class, + CleanNetwork.class, CreateMATSimFacilities.class, InitLocationChoice.class, FilterRelevantAgents.class, CreateCountsFromGeoPortalBerlin.class, CreateCountsFromVMZOld.class, CreateCountsFromVMZ.class, ReprojectNetwork.class, RunActivitySampling.class, MergePlans.class, SplitActivityTypesDuration.class, CleanPopulation.class, CleanAttributes.class, - GenerateSmallScaleCommercialTrafficDemand.class, RunCountOptimization.class, SelectPlansFromIndex.class, FixNetworkV5.class, + GenerateSmallScaleCommercialTrafficDemand.class, RunCountOptimization.class, SelectPlansFromIndex.class, ExtractRelevantFreightTrips.class, CheckCarAvailability.class, FixSubtourModes.class, ComputeTripChoices.class, ComputePlanChoices.class, - PrepareNetworkParams.class, FreeSpeedOptimizer.class, SetCarAvailabilityByAge.class + ApplyNetworkParams.class, SetCarAvailabilityByAge.class }) public class RunOpenBerlinCalibration extends MATSimApplication { diff --git a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java index 0d05d420..2c089349 100644 --- a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams.java @@ -1,8 +1,9 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; -import org.matsim.application.prepare.network.opt.NetworkModel; +import org.matsim.application.prepare.network.params.FeatureRegressor; +import org.matsim.application.prepare.network.params.NetworkModel; +@SuppressWarnings("unused") public class BerlinNetworkParams implements NetworkModel { @Override public FeatureRegressor capacity(String 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 index d18252ba..bb1f682d 100644 --- a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_priority.java @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_capacity_priority implements FeatureRegre public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/BerlinNetworkParams_capacity_right_before_left.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_right_before_left.java index df34336d..2caa9cf0 100644 --- 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 @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_capacity_right_before_left implements Fea public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/BerlinNetworkParams_capacity_traffic_light.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_capacity_traffic_light.java index ecf7e42e..124df860 100644 --- 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 @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_capacity_traffic_light implements Feature public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/BerlinNetworkParams_speedRelative_priority.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java index 03825016..0005b536 100644 --- a/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java +++ b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_priority.java @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_speedRelative_priority implements Feature public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/BerlinNetworkParams_speedRelative_right_before_left.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_right_before_left.java index db67559a..e40488d3 100644 --- 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 @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_speedRelative_right_before_left implement public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/BerlinNetworkParams_speedRelative_traffic_light.java b/src/main/java/org/matsim/prepare/network/BerlinNetworkParams_speedRelative_traffic_light.java index d1f38bb7..a21cba8c 100644 --- 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 @@ -1,12 +1,12 @@ package org.matsim.prepare.network; -import org.matsim.application.prepare.network.opt.FeatureRegressor; +import org.matsim.application.prepare.network.params.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}; @@ -14,7 +14,7 @@ public final class BerlinNetworkParams_speedRelative_traffic_light implements Fe public double predict(Object2DoubleMap ft) { return predict(ft, DEFAULT_PARAMS); } - + @Override public double[] getData(Object2DoubleMap ft) { double[] data = new double[14]; @@ -35,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/Capacity_priority.java b/src/main/java/org/matsim/prepare/network/Capacity_priority.java deleted file mode 100644 index aefcc8c3..00000000 --- a/src/main/java/org/matsim/prepare/network/Capacity_priority.java +++ /dev/null @@ -1,1587 +0,0 @@ -package org.matsim.prepare.network; -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - -/** -* Generated model, do not modify. -*/ -public class Capacity_priority implements FeatureRegressor { - - @Override - public double predict(Object2DoubleMap ft) { - double[] data = new double[14]; - data[0] = (ft.getDouble("length") - 148.0745794277257) / 111.09738260925752; - data[1] = (ft.getDouble("speed") - 14.667442032560434) / 5.4536411840395225; - data[2] = (ft.getDouble("numFoes") - 1.1944992599901332) / 1.1479306507188651; - data[3] = (ft.getDouble("numLanes") - 1.2444499259990134) / 0.6166874690379405; - data[4] = (ft.getDouble("junctionSize") - 6.785273803650715) / 4.8225180177060665; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - for (int i = 0; i < data.length; i++) - if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - - return score(data); - } - public static double score(double[] input) { - double var0; - if (input[13] >= -0.5) { - if (input[1] >= -0.90718144) { - if (input[7] >= 0.5) { - if (input[3] >= 2.0359585) { - var0 = 528.2315; - } else { - var0 = 678.9136; - } - } else { - if (input[2] >= -0.60500103) { - var0 = 545.95953; - } else { - var0 = 513.5971; - } - } - } else { - if (input[7] >= 0.5) { - if (input[0] >= -0.053012766) { - var0 = 532.0486; - } else { - var0 = 551.90857; - } - } else { - if (input[4] >= -0.8885968) { - var0 = 530.28046; - } else { - var0 = 490.33154; - } - } - } - } else { - if (input[3] >= 2.0359585) { - if (input[3] >= 3.6575255) { - if (input[3] >= 5.2790923) { - var0 = 329.68658; - } else { - var0 = 407.84097; - } - } else { - if (input[1] >= 1.8946164) { - var0 = 551.58856; - } else { - var0 = 463.95148; - } - } - } else { - var0 = 344.90738; - } - } - double var1; - if (input[13] >= -0.5) { - if (input[1] >= -0.90718144) { - if (input[7] >= 0.5) { - if (input[3] >= 2.0359585) { - var1 = 351.37134; - } else { - var1 = 452.8441; - } - } else { - if (input[2] >= -0.60500103) { - var1 = 362.52734; - } else { - var1 = 341.0468; - } - } - } else { - if (input[3] >= 2.0359585) { - var1 = 244.8547; - } else { - if (input[7] >= 0.5) { - var1 = 364.16348; - } else { - var1 = 349.63425; - } - } - } - } else { - if (input[9] >= 0.5) { - var1 = 229.99834; - } else { - if (input[3] >= 3.6575255) { - if (input[13] >= -1.5) { - var1 = 276.54538; - } else { - var1 = 232.33159; - } - } else { - if (input[1] >= 1.8946164) { - var1 = 367.8001; - } else { - var1 = 304.73376; - } - } - } - } - double var2; - if (input[13] >= -0.5) { - if (input[1] >= -0.90718144) { - if (input[7] >= 0.5) { - if (input[4] >= 0.5629271) { - var2 = 267.97882; - } else { - var2 = 303.57843; - } - } else { - if (input[0] >= -0.7527142) { - var2 = 236.92879; - } else { - var2 = 251.3941; - } - } - } else { - if (input[0] >= -0.37489253) { - if (input[4] >= -1.0959573) { - var2 = 234.57248; - } else { - var2 = 172.93842; - } - } else { - if (input[0] >= -1.0727037) { - var2 = 252.1177; - } else { - var2 = 216.38428; - } - } - } - } else { - if (input[3] >= 2.0359585) { - if (input[3] >= 3.6575255) { - if (input[13] >= -1.5) { - var2 = 183.27914; - } else { - var2 = 160.37532; - } - } else { - if (input[1] >= 0.62115526) { - var2 = 244.39363; - } else { - var2 = 199.57362; - } - } - } else { - if (input[7] >= 0.5) { - var2 = 153.73575; - } else { - var2 = 126.66589; - } - } - } - double var3; - if (input[13] >= -0.5) { - if (input[1] >= -0.39743024) { - if (input[3] >= 3.6575255) { - if (input[0] >= -0.9738265) { - var3 = 10.114798; - } else { - var3 = 74.12102; - } - } else { - if (input[6] >= 0.5) { - var3 = 182.49957; - } else { - var3 = 205.18987; - } - } - } else { - if (input[6] >= 0.5) { - if (input[3] >= 0.41439155) { - var3 = 50.8256; - } else { - var3 = 156.43225; - } - } else { - if (input[0] >= -1.0977719) { - var3 = 171.65904; - } else { - var3 = 138.68129; - } - } - } - } else { - if (input[3] >= 2.0359585) { - if (input[3] >= 3.6575255) { - if (input[3] >= 5.2790923) { - var3 = 83.71184; - } else { - var3 = 122.21861; - } - } else { - if (input[0] >= -0.08721699) { - var3 = 160.40189; - } else { - var3 = 144.6932; - } - } - } else { - if (input[8] >= 0.5) { - var3 = 76.86066; - } else { - var3 = 102.30043; - } - } - } - double var4; - if (input[7] >= 0.5) { - if (input[13] >= -0.5) { - if (input[1] >= -0.39743024) { - if (input[0] >= -1.0632976) { - var4 = 137.5552; - } else { - var4 = 98.03021; - } - } else { - if (input[0] >= -0.6347996) { - var4 = 104.684204; - } else { - var4 = 120.135826; - } - } - } else { - if (input[9] >= 0.5) { - var4 = 68.47832; - } else { - if (input[1] >= 1.8946164) { - var4 = 105.024254; - } else { - var4 = 82.94903; - } - } - } - } else { - if (input[2] >= -0.60500103) { - if (input[5] >= 0.5) { - if (input[0] >= -1.187963) { - var4 = 101.44326; - } else { - var4 = 42.216213; - } - } else { - if (input[1] >= -0.65230584) { - var4 = 154.08447; - } else { - var4 = 111.6845; - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -0.8885968) { - var4 = 124.653305; - } else { - var4 = 38.009064; - } - } else { - if (input[11] >= 0.5) { - var4 = 99.03142; - } else { - var4 = 33.777233; - } - } - } - } - double var5; - if (input[13] >= -0.5) { - if (input[3] >= 2.0359585) { - if (input[4] >= -0.47387564) { - if (input[3] >= 3.6575255) { - var5 = -52.25111; - } else { - var5 = 43.67992; - } - } else { - if (input[3] >= 3.6575255) { - var5 = -28.815895; - } else { - var5 = 46.78004; - } - } - } else { - if (input[10] >= 0.5) { - if (input[8] >= 0.5) { - var5 = -10.979303; - } else { - var5 = 63.3409; - } - } else { - if (input[7] >= 0.5) { - var5 = 90.672165; - } else { - var5 = 64.64078; - } - } - } - } else { - if (input[3] >= 2.0359585) { - if (input[4] >= -0.68123615) { - if (input[3] >= 5.2790923) { - var5 = 25.173052; - } else { - var5 = 54.33675; - } - } else { - if (input[3] >= 3.6575255) { - var5 = 49.93983; - } else { - var5 = 71.85198; - } - } - } else { - if (input[7] >= 0.5) { - if (input[8] >= 0.5) { - var5 = 24.934956; - } else { - var5 = 45.695312; - } - } else { - var5 = 19.088688; - } - } - } - double var6; - if (input[3] >= 0.41439155) { - if (input[0] >= -1.0631626) { - if (input[9] >= 0.5) { - if (input[13] >= -0.5) { - var6 = -269.20898; - } else { - var6 = 30.201042; - } - } else { - if (input[3] >= 2.0359585) { - var6 = 34.990143; - } else { - var6 = 67.52307; - } - } - } else { - if (input[2] >= -0.60500103) { - if (input[13] >= -0.5) { - var6 = -137.58873; - } else { - var6 = 38.572998; - } - } else { - if (input[0] >= -1.2234273) { - var6 = -8.754881; - } else { - var6 = -176.93155; - } - } - } - } else { - if (input[2] >= 1.1372645) { - if (input[12] >= 0.5) { - if (input[1] >= -0.65230584) { - var6 = 73.2211; - } else { - var6 = 43.449955; - } - } else { - if (input[1] >= -0.65230584) { - var6 = 10.302028; - } else { - var6 = 39.984016; - } - } - } else { - if (input[7] >= 0.5) { - if (input[1] >= -0.39743024) { - var6 = 66.583626; - } else { - var6 = 48.81097; - } - } else { - if (input[0] >= -0.7527142) { - var6 = 44.597507; - } else { - var6 = 53.671276; - } - } - } - } - double var7; - if (input[3] >= 0.41439155) { - if (input[0] >= -1.1372867) { - if (input[8] >= 0.5) { - if (input[3] >= 3.6575255) { - var7 = 7.308279; - } else { - var7 = 37.1175; - } - } else { - if (input[13] >= -0.5) { - var7 = -128.86482; - } else { - var7 = 20.46987; - } - } - } else { - if (input[8] >= 0.5) { - if (input[3] >= 2.0359585) { - var7 = 21.48796; - } else { - var7 = -70.786705; - } - } else { - var7 = 33.37381; - } - } - } else { - if (input[2] >= 1.1372645) { - if (input[12] >= 0.5) { - if (input[1] >= -0.65230584) { - var7 = 49.545773; - } else { - var7 = 28.931652; - } - } else { - if (input[1] >= -0.65230584) { - var7 = 7.2723947; - } else { - var7 = 27.238398; - } - } - } else { - if (input[7] >= 0.5) { - if (input[1] >= -0.39743024) { - var7 = 44.53098; - } else { - var7 = 33.792645; - } - } else { - if (input[2] >= -0.60500103) { - var7 = 33.040085; - } else { - var7 = 16.181316; - } - } - } - } - double var8; - if (input[0] >= -1.1373768) { - if (input[10] >= 0.5) { - if (input[0] >= -1.0084357) { - if (input[1] >= -0.39743024) { - var8 = 8.954352; - } else { - var8 = 24.357721; - } - } else { - if (input[6] >= 0.5) { - var8 = -2.263031; - } else { - var8 = -71.02918; - } - } - } else { - if (input[3] >= 0.41439155) { - if (input[8] >= 0.5) { - var8 = 23.2148; - } else { - var8 = 5.490529; - } - } else { - if (input[0] >= 0.47796285) { - var8 = 19.852242; - } else { - var8 = 30.092987; - } - } - } - } else { - if (input[9] >= 0.5) { - if (input[10] >= 0.5) { - if (input[6] >= 0.5) { - var8 = -2.0775354; - } else { - var8 = -63.5745; - } - } else { - if (input[0] >= -1.1523635) { - var8 = -2.125128; - } else { - var8 = 25.38647; - } - } - } else { - if (input[0] >= -1.1417873) { - var8 = -146.80832; - } else { - if (input[0] >= -1.1794119) { - var8 = 6.429794; - } else { - var8 = -66.40415; - } - } - } - } - double var9; - if (input[2] >= 1.1372645) { - if (input[12] >= 0.5) { - if (input[3] >= 3.6575255) { - var9 = -48.911915; - } else { - if (input[7] >= 0.5) { - var9 = 18.719929; - } else { - var9 = -19.283041; - } - } - } else { - if (input[8] >= 0.5) { - var9 = -66.93798; - } else { - if (input[4] >= 3.2586143) { - var9 = -31.181293; - } else { - var9 = 4.2541704; - } - } - } - } else { - if (input[3] >= 0.41439155) { - if (input[10] >= 0.5) { - if (input[8] >= 0.5) { - var9 = -57.253754; - } else { - var9 = 44.259327; - } - } else { - if (input[4] >= 0.77028763) { - var9 = 34.63077; - } else { - var9 = 10.169308; - } - } - } else { - if (input[7] >= 0.5) { - if (input[4] >= -0.8885968) { - var9 = 22.80177; - } else { - var9 = 14.995254; - } - } else { - if (input[2] >= -0.60500103) { - var9 = 14.998435; - } else { - var9 = 4.0855465; - } - } - } - } - double var10; - if (input[1] >= 0.112320915) { - if (input[3] >= 0.41439155) { - if (input[10] >= 0.5) { - var10 = 57.883648; - } else { - if (input[2] >= -0.60500103) { - var10 = -4.4244; - } else { - var10 = 10.891248; - } - } - } else { - if (input[13] >= 1.5) { - if (input[11] >= 0.5) { - var10 = 16.430185; - } else { - var10 = 28.339996; - } - } else { - if (input[12] >= 0.5) { - var10 = 23.248491; - } else { - var10 = 19.238781; - } - } - } - } else { - if (input[12] >= 0.5) { - if (input[2] >= -0.60500103) { - if (input[1] >= -0.65230584) { - var10 = 17.401398; - } else { - var10 = 4.569379; - } - } else { - if (input[3] >= 0.41439155) { - var10 = -38.15419; - } else { - var10 = -52.68213; - } - } - } else { - if (input[13] >= 0.5) { - if (input[2] >= -0.60500103) { - var10 = 3.4235497; - } else { - var10 = 16.195328; - } - } else { - if (input[9] >= 0.5) { - var10 = 6.5853243; - } else { - var10 = -0.56392515; - } - } - } - } - double var11; - if (input[0] >= -1.1373768) { - if (input[0] >= 0.55411226) { - if (input[1] >= 0.112320915) { - if (input[1] >= 2.9132018) { - var11 = 0.62620103; - } else { - var11 = 14.878931; - } - } else { - if (input[7] >= 0.5) { - var11 = -2.5142908; - } else { - var11 = 6.8762465; - } - } - } else { - if (input[2] >= 1.1372645) { - if (input[0] >= -0.8838154) { - var11 = 6.8013735; - } else { - var11 = -15.94711; - } - } else { - if (input[1] >= -0.90718144) { - var11 = 10.624735; - } else { - var11 = 5.6352816; - } - } - } - } else { - if (input[3] >= 0.41439155) { - if (input[6] >= 0.5) { - if (input[0] >= -1.1603746) { - var11 = 8.050981; - } else { - var11 = -116.49522; - } - } else { - if (input[0] >= -1.1650553) { - var11 = -34.69784; - } else { - var11 = 6.8808713; - } - } - } else { - if (input[0] >= -1.1523635) { - if (input[10] >= 0.5) { - var11 = -87.16453; - } else { - var11 = -13.80964; - } - } else { - if (input[2] >= 0.2661317) { - var11 = -9.089337; - } else { - var11 = 11.343403; - } - } - } - } - double var12; - if (input[3] >= 3.6575255) { - if (input[13] >= -0.5) { - if (input[0] >= -0.9738265) { - if (input[3] >= 5.2790923) { - var12 = -119.68611; - } else { - var12 = -42.352478; - } - } else { - var12 = 16.52595; - } - } else { - if (input[13] >= -1.5) { - if (input[3] >= 5.2790923) { - var12 = -30.987036; - } else { - var12 = 5.687293; - } - } else { - if (input[1] >= 0.8760308) { - var12 = 11.329675; - } else { - var12 = -29.204445; - } - } - } - } else { - if (input[0] >= -1.0579419) { - if (input[0] >= 0.0083748195) { - if (input[1] >= 0.112320915) { - var12 = 10.043247; - } else { - var12 = 0.8739378; - } - } else { - if (input[3] >= 2.0359585) { - var12 = -4.389075; - } else { - var12 = 7.804355; - } - } - } else { - if (input[8] >= 0.5) { - if (input[4] >= -0.68123615) { - var12 = -56.314365; - } else { - var12 = 1.5425118; - } - } else { - if (input[10] >= 0.5) { - var12 = -25.511044; - } else { - var12 = 5.712395; - } - } - } - } - double var13; - if (input[12] >= 0.5) { - if (input[2] >= -0.60500103) { - if (input[0] >= -1.0002449) { - if (input[0] >= -0.86824346) { - var13 = 6.2731028; - } else { - var13 = 18.373245; - } - } else { - if (input[3] >= 0.41439155) { - var13 = -39.403736; - } else { - var13 = 5.872574; - } - } - } else { - if (input[4] >= -0.8885968) { - if (input[4] >= -0.68123615) { - var13 = -12.1119375; - } else { - var13 = 27.933044; - } - } else { - if (input[0] >= -0.28290117) { - var13 = 13.355004; - } else { - var13 = -157.3527; - } - } - } - } else { - if (input[4] >= -0.68123615) { - if (input[0] >= -1.1889081) { - if (input[0] >= -1.1485381) { - var13 = 0.27297387; - } else { - var13 = 32.984024; - } - } else { - if (input[9] >= 0.5) { - var13 = -13.410682; - } else { - var13 = -76.172905; - } - } - } else { - if (input[4] >= -0.8885968) { - if (input[0] >= -1.1870629) { - var13 = 8.722857; - } else { - var13 = 37.79114; - } - } else { - if (input[0] >= -0.8034355) { - var13 = 0.74079645; - } else { - var13 = 6.788251; - } - } - } - } - double var14; - if (input[0] >= -1.1613197) { - if (input[0] >= -1.1592944) { - if (input[0] >= -1.1579443) { - if (input[3] >= 2.0359585) { - var14 = -2.9327502; - } else { - var14 = 2.4178932; - } - } else { - var14 = -66.88381; - } - } else { - var14 = 62.04901; - } - } else { - if (input[0] >= -1.16393) { - var14 = -163.3757; - } else { - if (input[10] >= 0.5) { - if (input[5] >= 0.5) { - var14 = -43.509354; - } else { - var14 = 17.002201; - } - } else { - if (input[1] >= -0.65230584) { - var14 = -5.082277; - } else { - var14 = 25.77814; - } - } - } - } - double var15; - if (input[1] >= 0.112320915) { - if (input[0] >= -1.179322) { - if (input[0] >= -1.1613197) { - if (input[0] >= -1.1573143) { - var15 = 3.3508396; - } else { - var15 = 65.48243; - } - } else { - if (input[0] >= -1.1664953) { - var15 = -109.310425; - } else { - var15 = -35.480015; - } - } - } else { - if (input[5] >= 0.5) { - var15 = 67.554756; - } else { - if (input[4] >= -0.68123615) { - var15 = 38.588894; - } else { - var15 = 18.756956; - } - } - } - } else { - if (input[3] >= 5.2790923) { - var15 = -61.343594; - } else { - if (input[0] >= -1.2025898) { - if (input[0] >= -0.28114593) { - var15 = -0.42895037; - } else { - var15 = 2.6195402; - } - } else { - if (input[0] >= -1.2156863) { - var15 = -47.398; - } else { - var15 = -1.7252911; - } - } - } - } - double var16; - if (input[13] >= 2.5) { - if (input[4] >= -0.47387564) { - if (input[10] >= 0.5) { - var16 = 19.59329; - } else { - var16 = 70.468575; - } - } else { - if (input[1] >= 0.112320915) { - var16 = 11.641106; - } else { - var16 = 6.0238376; - } - } - } else { - if (input[4] >= 1.1850088) { - if (input[13] >= 0.5) { - if (input[4] >= 2.014451) { - var16 = 8.684455; - } else { - var16 = 22.966534; - } - } else { - if (input[4] >= 1.3923693) { - var16 = -2.7507231; - } else { - var16 = -77.75282; - } - } - } else { - if (input[3] >= 0.41439155) { - if (input[4] >= 0.77028763) { - var16 = 16.853094; - } else { - var16 = -2.1627543; - } - } else { - if (input[4] >= -0.8885968) { - var16 = 2.7756567; - } else { - var16 = -0.7487754; - } - } - } - } - double var17; - if (input[0] >= 2.6104612) { - if (input[2] >= 1.1372645) { - if (input[0] >= 2.8206823) { - if (input[11] >= 0.5) { - var17 = -38.839565; - } else { - var17 = -62.620193; - } - } else { - var17 = 7.287822; - } - } else { - if (input[0] >= 2.6351695) { - if (input[6] >= 0.5) { - var17 = 6.541465; - } else { - var17 = -4.9654703; - } - } else { - var17 = -41.533714; - } - } - } else { - if (input[1] >= 0.112320915) { - if (input[0] >= -1.1831024) { - if (input[0] >= -1.1613197) { - var17 = 2.9192882; - } else { - var17 = -36.10568; - } - } else { - if (input[5] >= 0.5) { - var17 = 43.377895; - } else { - var17 = 16.026234; - } - } - } else { - if (input[5] >= 0.5) { - if (input[6] >= 0.5) { - var17 = -0.56135464; - } else { - var17 = 5.624888; - } - } else { - if (input[0] >= -1.2654626) { - var17 = -0.8403878; - } else { - var17 = 31.056335; - } - } - } - } - double var18; - if (input[3] >= 3.6575255) { - if (input[11] >= 0.5) { - if (input[4] >= -0.68123615) { - if (input[0] >= -1.0060055) { - var18 = -13.423488; - } else { - var18 = 48.401585; - } - } else { - if (input[0] >= -1.0651429) { - var18 = 0.15271015; - } else { - var18 = -8.452369; - } - } - } else { - var18 = -38.282375; - } - } else { - if (input[8] >= 0.5) { - if (input[10] >= 0.5) { - if (input[0] >= 0.031237647) { - var18 = -91.87799; - } else { - var18 = -27.677452; - } - } else { - if (input[0] >= -1.0598772) { - var18 = 5.6159496; - } else { - var18 = -13.98993; - } - } - } else { - if (input[3] >= 0.41439155) { - if (input[2] >= -0.60500103) { - var18 = -27.822721; - } else { - var18 = -2.6279118; - } - } else { - if (input[0] >= -0.8071709) { - var18 = 0.06455274; - } else { - var18 = 3.1713042; - } - } - } - } - double var19; - if (input[0] >= 2.6839554) { - if (input[4] >= 1.4960496) { - if (input[0] >= 2.8206823) { - var19 = -45.474518; - } else { - var19 = 3.229492; - } - } else { - if (input[3] >= 0.41439155) { - if (input[3] >= 2.0359585) { - var19 = 1.8878864; - } else { - var19 = 14.81505; - } - } else { - if (input[4] >= 0.6666074) { - var19 = 23.195015; - } else { - var19 = -6.715007; - } - } - } - } else { - if (input[4] >= -0.68123615) { - if (input[0] >= -1.0604622) { - if (input[3] >= 2.0359585) { - var19 = -9.758646; - } else { - var19 = 0.86491394; - } - } else { - if (input[13] >= 0.5) { - var19 = -46.288296; - } else { - var19 = -2.084998; - } - } - } else { - if (input[0] >= -0.9702261) { - if (input[10] >= 0.5) { - var19 = 13.765902; - } else { - var19 = 0.071049064; - } - } else { - if (input[1] >= -0.39743024) { - var19 = 3.4194317; - } else { - var19 = 33.17832; - } - } - } - } - double var20; - if (input[0] >= -1.0579419) { - if (input[3] >= 5.2790923) { - if (input[13] >= -0.5) { - var20 = -69.22155; - } else { - if (input[13] >= -1.5) { - var20 = -13.856637; - } else { - var20 = 0.12842758; - } - } - } else { - if (input[8] >= 0.5) { - if (input[3] >= 2.0359585) { - var20 = -1.250055; - } else { - var20 = 5.624028; - } - } else { - if (input[3] >= 0.41439155) { - var20 = -6.4796576; - } else { - var20 = 0.14111054; - } - } - } - } else { - if (input[1] >= 2.9132018) { - var20 = 78.854515; - } else { - if (input[0] >= -1.0641077) { - if (input[9] >= 0.5) { - var20 = -11.734342; - } else { - var20 = -150.81587; - } - } else { - if (input[6] >= 0.5) { - var20 = 4.1645727; - } else { - var20 = -7.5857835; - } - } - } - } - double var21; - if (input[13] >= -0.5) { - if (input[3] >= 2.0359585) { - if (input[3] >= 3.6575255) { - if (input[3] >= 5.2790923) { - var21 = -46.729935; - } else { - var21 = -20.255753; - } - } else { - if (input[0] >= -1.074099) { - var21 = -9.346616; - } else { - var21 = 18.665245; - } - } - } else { - if (input[9] >= 0.5) { - if (input[3] >= 0.41439155) { - var21 = -147.08301; - } else { - var21 = 0.3073819; - } - } else { - if (input[0] >= -1.010776) { - var21 = 4.6676335; - } else { - var21 = -10.136607; - } - } - } - } else { - if (input[0] >= -1.0566819) { - if (input[10] >= 0.5) { - var21 = -29.316162; - } else { - if (input[4] >= -0.68123615) { - var21 = 7.7767005; - } else { - var21 = 1.0589573; - } - } - } else { - if (input[11] >= 0.5) { - if (input[0] >= -1.1779718) { - var21 = 14.425096; - } else { - var21 = -0.71505195; - } - } else { - var21 = 41.934597; - } - } - } - double var22; - if (input[0] >= -1.1028125) { - if (input[0] >= -1.1013722) { - if (input[0] >= -1.0604622) { - if (input[0] >= -1.0407948) { - var22 = 0.36555678; - } else { - var22 = 9.767401; - } - } else { - if (input[0] >= -1.0641077) { - var22 = -45.325027; - } else { - var22 = -4.7544327; - } - } - } else { - var22 = -175.64833; - } - } else { - if (input[1] >= 2.9132018) { - var22 = 76.40113; - } else { - if (input[0] >= -1.1373768) { - if (input[9] >= 0.5) { - var22 = 8.45536; - } else { - var22 = 31.564167; - } - } else { - if (input[0] >= -1.1423724) { - var22 = -36.197815; - } else { - var22 = 2.8641822; - } - } - } - } - double var23; - if (input[13] >= 2.5) { - if (input[0] >= -0.75563955) { - if (input[0] >= -0.39190465) { - if (input[0] >= 0.7170324) { - var23 = 2.352394; - } else { - var23 = 17.483053; - } - } else { - var23 = -8.217469; - } - } else { - var23 = 68.741554; - } - } else { - if (input[1] >= 2.1494918) { - if (input[0] >= -1.0704535) { - if (input[0] >= -1.0414249) { - var23 = 2.6117754; - } else { - var23 = -85.30798; - } - } else { - if (input[3] >= 0.41439155) { - var23 = 54.56402; - } else { - var23 = 7.834694; - } - } - } else { - if (input[0] >= 0.96159256) { - if (input[0] >= 0.9669933) { - var23 = -1.7996783; - } else { - var23 = -64.47756; - } - } else { - if (input[0] >= 0.92792845) { - var23 = 21.341352; - } else { - var23 = -0.177293; - } - } - } - } - double var24; - if (input[4] >= 3.2586143) { - if (input[0] >= -0.8377297) { - if (input[0] >= 0.25869575) { - if (input[0] >= 1.0008824) { - var24 = -25.567339; - } else { - var24 = 14.744424; - } - } else { - if (input[0] >= 0.11539804) { - var24 = -58.946354; - } else { - var24 = 4.666309; - } - } - } else { - var24 = -65.78561; - } - } else { - if (input[12] >= 0.5) { - if (input[4] >= 0.77028763) { - if (input[1] >= -0.65230584) { - var24 = 6.796015; - } else { - var24 = -3.8748004; - } - } else { - if (input[1] >= -0.65230584) { - var24 = 1.5722843; - } else { - var24 = -5.0968976; - } - } - } else { - if (input[0] >= -1.2044351) { - if (input[0] >= -1.1927786) { - var24 = -0.2537231; - } else { - var24 = 13.428278; - } - } else { - if (input[8] >= 0.5) { - var24 = -47.856255; - } else { - var24 = -1.6130934; - } - } - } - } - double var25; - if (input[5] >= 0.5) { - if (input[4] >= -1.0959573) { - if (input[0] >= 0.8400326) { - if (input[0] >= 0.9067308) { - var25 = -1.2772002; - } else { - var25 = -22.573118; - } - } else { - if (input[6] >= 0.5) { - var25 = 0.16855976; - } else { - var25 = 4.5786915; - } - } - } else { - var25 = -46.09022; - } - } else { - if (input[2] >= 1.1372645) { - if (input[11] >= 0.5) { - var25 = 63.907482; - } else { - if (input[12] >= 0.5) { - var25 = 6.5244155; - } else { - var25 = -12.243132; - } - } - } else { - if (input[4] >= -0.26651508) { - if (input[0] >= -1.1603296) { - var25 = -2.693653; - } else { - var25 = -46.41377; - } - } else { - if (input[2] >= -0.60500103) { - var25 = 4.54096; - } else { - var25 = -0.46053287; - } - } - } - } - double var26; - if (input[1] >= 0.112320915) { - if (input[4] >= -0.8885968) { - if (input[13] >= -0.5) { - if (input[11] >= 0.5) { - var26 = -4.120392; - } else { - var26 = 1.8585286; - } - } else { - if (input[2] >= -0.60500103) { - var26 = 9.289226; - } else { - var26 = 2.014836; - } - } - } else { - if (input[7] >= 0.5) { - if (input[2] >= -0.60500103) { - var26 = -22.293093; - } else { - var26 = 4.087899; - } - } else { - var26 = 50.089314; - } - } - } else { - if (input[4] >= -0.8885968) { - if (input[4] >= -0.68123615) { - if (input[3] >= 0.41439155) { - var26 = -4.367316; - } else { - var26 = -0.08913819; - } - } else { - if (input[7] >= 0.5) { - var26 = 3.4653053; - } else { - var26 = 22.376299; - } - } - } else { - if (input[2] >= -0.60500103) { - if (input[7] >= 0.5) { - var26 = 4.639402; - } else { - var26 = 32.232265; - } - } else { - if (input[12] >= 0.5) { - var26 = -75.83786; - } else { - var26 = -2.4805021; - } - } - } - } - double var27; - if (input[10] >= 0.5) { - if (input[1] >= -0.90718144) { - if (input[2] >= 1.1372645) { - if (input[0] >= -0.5392978) { - var27 = -65.09315; - } else { - var27 = -23.705198; - } - } else { - if (input[0] >= -1.1443976) { - var27 = -3.8233435; - } else { - var27 = -47.873787; - } - } - } else { - if (input[13] >= 0.5) { - if (input[0] >= -1.0881857) { - var27 = 6.3074617; - } else { - var27 = 48.21055; - } - } else { - if (input[0] >= -1.2313483) { - var27 = 3.3293352; - } else { - var27 = 63.340492; - } - } - } - } else { - if (input[7] >= 0.5) { - if (input[5] >= 0.5) { - if (input[1] >= -0.65230584) { - var27 = 3.2068865; - } else { - var27 = -6.119835; - } - } else { - if (input[0] >= -1.2661376) { - var27 = 0.26134154; - } else { - var27 = 35.127155; - } - } - } else { - if (input[13] >= 0.5) { - var27 = 43.92848; - } else { - if (input[0] >= -1.009786) { - var27 = -7.3419294; - } else { - var27 = 18.001553; - } - } - } - } - double var28; - if (input[0] >= -1.220052) { - if (input[0] >= -1.211996) { - if (input[0] >= -1.0113611) { - if (input[0] >= -0.9522239) { - var28 = -0.04635202; - } else { - var28 = 7.458867; - } - } else { - if (input[0] >= -1.0132064) { - var28 = -78.54606; - } else { - var28 = -1.7559289; - } - } - } else { - if (input[0] >= -1.2156863) { - var28 = -72.64668; - } else { - var28 = -3.2740362; - } - } - } else { - if (input[0] >= -1.2272528) { - if (input[0] >= -1.2240574) { - var28 = 48.41117; - } else { - var28 = 64.93376; - } - } else { - if (input[0] >= -1.2413396) { - if (input[0] >= -1.2332835) { - var28 = -13.813472; - } else { - var28 = 57.241142; - } - } else { - if (input[0] >= -1.2436349) { - var28 = -81.38212; - } else { - var28 = 3.4469526; - } - } - } - } - double var29; - if (input[0] >= 3.157864) { - var29 = -20.65781; - } else { - if (input[9] >= 0.5) { - if (input[0] >= -1.1677555) { - if (input[0] >= -1.1532637) { - var29 = -0.20954037; - } else { - var29 = 21.08421; - } - } else { - if (input[0] >= -1.1792319) { - var29 = -27.783361; - } else { - var29 = 0.8293829; - } - } - } else { - if (input[0] >= -1.1218048) { - if (input[0] >= -1.0119011) { - var29 = 1.6578834; - } else { - var29 = -15.785636; - } - } else { - if (input[4] >= -0.47387564) { - var29 = 52.502968; - } else { - var29 = -2.1309283; - } - } - } - } - 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/Capacity_right_before_left.java b/src/main/java/org/matsim/prepare/network/Capacity_right_before_left.java deleted file mode 100644 index f9734e1f..00000000 --- a/src/main/java/org/matsim/prepare/network/Capacity_right_before_left.java +++ /dev/null @@ -1,1127 +0,0 @@ -package org.matsim.prepare.network; -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - -/** -* Generated model, do not modify. -*/ -public class Capacity_right_before_left implements FeatureRegressor { - - @Override - public double predict(Object2DoubleMap ft) { - double[] data = new double[14]; - data[0] = (ft.getDouble("length") - 143.2389153599584) / 82.89404850064653; - data[1] = (ft.getDouble("speed") - 8.335057610673134) / 0.16560556934846477; - data[2] = (ft.getDouble("numFoes") - 2.2646625660573507) / 0.5530393650197418; - data[3] = (ft.getDouble("numLanes") - 1.001732651823616) / 0.04742831736799205; - data[4] = (ft.getDouble("junctionSize") - 10.911721389586763) / 3.6843422614733417; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - for (int i = 0; i < data.length; i++) - if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - - return score(data); - } - public static double score(double[] input) { - double var0; - if (input[6] >= 0.5) { - if (input[0] >= -1.5304345) { - if (input[0] >= -0.8743561) { - var0 = 543.02203; - } else { - if (input[0] >= -1.358649) { - var0 = 551.5959; - } else { - var0 = 537.0214; - } - } - } else { - var0 = 490.56137; - } - } else { - if (input[7] >= 0.5) { - if (input[5] >= 0.5) { - if (input[0] >= -1.4772341) { - var0 = 562.7193; - } else { - var0 = 508.44012; - } - } else { - if (input[2] >= -1.3826549) { - var0 = 481.01984; - } else { - var0 = 552.8317; - } - } - } else { - if (input[2] >= -1.3826549) { - var0 = 406.14957; - } else { - if (input[4] >= -2.2831) { - var0 = 423.45297; - } else { - var0 = 532.2111; - } - } - } - } - double var1; - if (input[6] >= 0.5) { - if (input[0] >= 0.11612516) { - var1 = 354.51038; - } else { - var1 = 358.45264; - } - } else { - if (input[7] >= 0.5) { - if (input[5] >= 0.5) { - var1 = 368.85345; - } else { - if (input[4] >= -1.4688432) { - var1 = 316.52917; - } else { - var1 = 365.6316; - } - } - } else { - if (input[4] >= -2.011681) { - var1 = 268.80936; - } else { - var1 = 360.54126; - } - } - } - double var2; - if (input[0] >= -1.5846001) { - if (input[0] >= -0.06452714) { - if (input[0] >= 2.3802202) { - if (input[0] >= 2.3961442) { - var2 = 227.44934; - } else { - var2 = 195.80382; - } - } else { - var2 = 233.4072; - } - } else { - if (input[0] >= -1.4278337) { - if (input[5] >= 0.5) { - var2 = 239.41277; - } else { - var2 = 234.45143; - } - } else { - if (input[4] >= -0.11174896) { - var2 = 196.45692; - } else { - var2 = 221.93068; - } - } - } - } else { - var2 = 170.41333; - } - double var3; - if (input[6] >= 0.5) { - if (input[0] >= -0.9497535) { - if (input[0] >= 2.3870964) { - if (input[0] >= 2.4688876) { - var3 = 150.76233; - } else { - var3 = 134.64958; - } - } else { - if (input[4] >= -0.6545867) { - var3 = 153.18239; - } else { - var3 = 157.96965; - } - } - } else { - if (input[0] >= -1.3503251) { - if (input[0] >= -1.2762547) { - var3 = 157.86868; - } else { - var3 = 167.71962; - } - } else { - if (input[0] >= -1.375719) { - var3 = 135.61624; - } else { - var3 = 152.26018; - } - } - } - } else { - if (input[7] >= 0.5) { - if (input[0] >= 0.20069094) { - if (input[4] >= -0.6545867) { - var3 = 153.88422; - } else { - var3 = 138.51962; - } - } else { - if (input[0] >= -1.4451449) { - var3 = 162.93457; - } else { - var3 = 131.97504; - } - } - } else { - if (input[0] >= -1.0968087) { - if (input[4] >= -2.011681) { - var3 = 89.50018; - } else { - var3 = 155.0651; - } - } else { - var3 = 119.29793; - } - } - } - double var4; - if (input[4] >= -0.6545867) { - if (input[6] >= 0.5) { - if (input[4] >= 0.838217) { - if (input[0] >= -1.5008787) { - var4 = 100.17956; - } else { - var4 = 125.07426; - } - } else { - if (input[0] >= -1.5846001) { - var4 = 101.55701; - } else { - var4 = 33.580494; - } - } - } else { - if (input[4] >= -0.38316783) { - if (input[0] >= -0.45767957) { - var4 = 104.90588; - } else { - var4 = 75.31006; - } - } else { - if (input[0] >= -0.33577698) { - var4 = 101.95027; - } else { - var4 = 110.16751; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -1.6045527) { - if (input[0] >= -0.6972625) { - var4 = 104.37561; - } else { - var4 = 96.292656; - } - } else { - if (input[7] >= 0.5) { - var4 = 116.222946; - } else { - var4 = 105.27524; - } - } - } else { - if (input[4] >= -2.011681) { - if (input[7] >= 0.5) { - var4 = 92.31727; - } else { - var4 = 62.111286; - } - } else { - if (input[0] >= -0.8903403) { - var4 = 113.45996; - } else { - var4 = 98.70161; - } - } - } - } - double var5; - if (input[0] >= -1.6262195) { - if (input[0] >= -1.5846001) { - if (input[0] >= -0.8740545) { - if (input[0] >= -0.84691143) { - var5 = 66.37503; - } else { - var5 = 57.4509; - } - } else { - if (input[4] >= -1.061715) { - var5 = 70.12865; - } else { - var5 = 62.45739; - } - } - } else { - var5 = 15.395686; - } - } else { - var5 = 101.0086; - } - double var6; - if (input[5] >= 0.5) { - if (input[6] >= 0.5) { - if (input[0] >= -1.3524363) { - if (input[0] >= -1.2760134) { - var6 = 43.219643; - } else { - var6 = 61.00119; - } - } else { - if (input[0] >= -1.3763222) { - var6 = -16.218624; - } else { - var6 = 41.674767; - } - } - } else { - if (input[0] >= 0.5568082) { - if (input[0] >= 0.57478297) { - var6 = 40.5038; - } else { - var6 = 17.24149; - } - } else { - if (input[7] >= 0.5) { - var6 = 49.03576; - } else { - var6 = 25.952227; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[0] >= -0.92671204) { - if (input[0] >= -0.7916602) { - var6 = 42.48562; - } else { - var6 = 38.10122; - } - } else { - if (input[4] >= -1.6045527) { - var6 = 46.721798; - } else { - var6 = 63.55647; - } - } - } else { - if (input[4] >= -1.4688432) { - if (input[0] >= -0.45044142) { - var6 = 36.77849; - } else { - var6 = 0.25321835; - } - } else { - if (input[0] >= -0.6943673) { - var6 = 55.99813; - } else { - var6 = 37.537594; - } - } - } - } - double var7; - if (input[4] >= -1.7402622) { - if (input[0] >= -1.3696872) { - if (input[0] >= -0.5538868) { - if (input[0] >= 2.8411098) { - var7 = 22.419878; - } else { - var7 = 28.323011; - } - } else { - if (input[4] >= -1.061715) { - var7 = 30.736572; - } else { - var7 = 24.638706; - } - } - } else { - if (input[0] >= -1.3775889) { - var7 = -9.827128; - } else { - if (input[0] >= -1.4211384) { - var7 = 19.67911; - } else { - var7 = 26.064049; - } - } - } - } else { - if (input[0] >= -1.3551506) { - if (input[7] >= 0.5) { - if (input[0] >= 1.2156613) { - var7 = 16.103474; - } else { - var7 = 36.99192; - } - } else { - if (input[0] >= -0.92671204) { - var7 = 28.380285; - } else { - var7 = 20.853481; - } - } - } else { - var7 = 47.911446; - } - } - double var8; - if (input[3] >= 10.505693) { - var8 = -1.3740605; - } else { - if (input[2] >= -1.3826549) { - if (input[4] >= -1.061715) { - if (input[0] >= -1.4658943) { - var8 = 19.018583; - } else { - var8 = 9.421148; - } - } else { - if (input[6] >= 0.5) { - var8 = 22.61962; - } else { - var8 = 2.840992; - } - } - } else { - if (input[0] >= -1.2745054) { - if (input[0] >= -1.2036319) { - var8 = 22.45902; - } else { - var8 = -3.9138093; - } - } else { - if (input[0] >= -1.4386306) { - var8 = 31.737265; - } else { - var8 = 44.07152; - } - } - } - } - double var9; - if (input[0] >= 0.5568082) { - if (input[0] >= 0.56284) { - if (input[0] >= 2.8411098) { - if (input[4] >= -0.92600554) { - var9 = 9.682289; - } else { - var9 = -4.70924; - } - } else { - if (input[0] >= 2.476005) { - var9 = 14.64853; - } else { - var9 = 11.442158; - } - } - } else { - var9 = -20.384542; - } - } else { - if (input[3] >= 10.505693) { - var9 = -13.706076; - } else { - if (input[8] >= 0.5) { - if (input[0] >= -0.58766484) { - var9 = 23.868244; - } else { - var9 = 37.65763; - } - } else { - if (input[0] >= -1.6226003) { - var9 = 12.734839; - } else { - var9 = 31.730734; - } - } - } - } - double var10; - if (input[2] >= -1.3826549) { - if (input[0] >= -1.4278337) { - if (input[0] >= -1.4233701) { - if (input[4] >= -0.6545867) { - var10 = 8.150048; - } else { - var10 = 0.9488669; - } - } else { - var10 = 45.64961; - } - } else { - if (input[4] >= -0.92600554) { - if (input[0] >= -1.4402592) { - var10 = -15.72133; - } else { - var10 = 5.2316422; - } - } else { - var10 = -28.511341; - } - } - } else { - if (input[0] >= -1.3562965) { - if (input[0] >= -1.2368671) { - if (input[0] >= -1.0021698) { - var10 = 10.42216; - } else { - var10 = 19.795193; - } - } else { - if (input[0] >= -1.2951945) { - var10 = -5.035073; - } else { - var10 = -15.515878; - } - } - } else { - if (input[4] >= -1.7402622) { - var10 = 28.46493; - } else { - var10 = 15.796429; - } - } - } - double var11; - if (input[6] >= 0.5) { - if (input[0] >= -1.6146384) { - if (input[0] >= -1.5304345) { - if (input[0] >= -1.5124598) { - var11 = 5.0131564; - } else { - var11 = 27.167768; - } - } else { - var11 = -23.874939; - } - } else { - var11 = 35.637455; - } - } else { - if (input[0] >= 0.21221167) { - if (input[5] >= 0.5) { - if (input[0] >= 0.3298317) { - var11 = 4.202126; - } else { - var11 = 9.688707; - } - } else { - if (input[0] >= 0.7130317) { - var11 = 10.963935; - } else { - var11 = -36.82294; - } - } - } else { - if (input[3] >= 10.505693) { - var11 = -20.268118; - } else { - if (input[0] >= -1.2059842) { - var11 = 8.79956; - } else { - var11 = 3.1335795; - } - } - } - } - double var12; - if (input[8] >= 0.5) { - if (input[4] >= -1.7402622) { - var12 = 34.82415; - } else { - if (input[0] >= -0.38409168) { - var12 = -0.02732322; - } else { - var12 = 3.823143; - } - } - } else { - if (input[0] >= -1.6343021) { - if (input[0] >= -1.5936477) { - if (input[0] >= -1.5440061) { - var12 = 3.3823683; - } else { - var12 = 17.747597; - } - } else { - var12 = -34.317272; - } - } else { - var12 = 25.036434; - } - } - double var13; - if (input[8] >= 0.5) { - if (input[3] >= 10.505693) { - var13 = 23.745955; - } else { - if (input[4] >= -2.011681) { - var13 = 9.957307; - } else { - var13 = 2.5570643; - } - } - } else { - if (input[5] >= 0.5) { - if (input[2] >= 0.42553467) { - if (input[4] >= -0.11174896) { - var13 = 1.8485298; - } else { - var13 = -4.337325; - } - } else { - if (input[7] >= 0.5) { - var13 = 3.8602858; - } else { - var13 = 2.2540298; - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -1.6045527) { - var13 = 1.7718652; - } else { - var13 = 4.742608; - } - } else { - if (input[4] >= -2.2831) { - var13 = -9.571589; - } else { - var13 = 12.383347; - } - } - } - } - double var14; - if (input[3] >= 10.505693) { - var14 = -10.783418; - } else { - if (input[0] >= -1.6343021) { - if (input[0] >= -1.5846001) { - if (input[0] >= -1.5285044) { - var14 = 1.5586574; - } else { - var14 = 16.950235; - } - } else { - var14 = -18.127615; - } - } else { - var14 = 15.967343; - } - } - double var15; - if (input[3] >= 10.505693) { - var15 = -15.85842; - } else { - if (input[0] >= -1.6110797) { - if (input[0] >= -1.5304345) { - if (input[0] >= -1.5166218) { - var15 = 0.9036607; - } else { - var15 = 21.02109; - } - } else { - if (input[0] >= -1.5474442) { - var15 = -10.50429; - } else { - var15 = -21.103048; - } - } - } else { - var15 = 21.620377; - } - } - double var16; - if (input[0] >= -1.366611) { - if (input[0] >= -1.3592522) { - if (input[2] >= -3.1908445) { - if (input[5] >= 0.5) { - var16 = 0.9689615; - } else { - var16 = -0.1255827; - } - } else { - if (input[8] >= 0.5) { - var16 = 4.1350226; - } else { - var16 = 17.781046; - } - } - } else { - var16 = 31.038706; - } - } else { - if (input[0] >= -1.3758999) { - var16 = -26.341656; - } else { - if (input[0] >= -1.6218766) { - if (input[2] >= 0.42553467) { - var16 = -10.234127; - } else { - var16 = 0.55429405; - } - } else { - var16 = -15.756909; - } - } - } - double var17; - if (input[8] >= 0.5) { - if (input[4] >= -1.7402622) { - var17 = 26.483034; - } else { - var17 = 0.117565565; - } - } else { - if (input[4] >= 0.838217) { - if (input[4] >= 1.5167642) { - if (input[0] >= -0.21031564) { - var17 = -6.698242; - } else { - var17 = 6.0077324; - } - } else { - if (input[0] >= -1.1696728) { - var17 = -0.32344314; - } else { - var17 = 6.0142803; - } - } - } else { - if (input[2] >= 0.42553467) { - if (input[0] >= -0.84854) { - var17 = 0.42032775; - } else { - var17 = -23.634436; - } - } else { - if (input[0] >= -1.5846001) { - var17 = 0.8066593; - } else { - var17 = -20.790316; - } - } - } - } - double var18; - if (input[3] >= 10.505693) { - var18 = -15.158027; - } else { - if (input[0] >= -1.6157844) { - if (input[0] >= -1.5050406) { - if (input[0] >= -1.4601038) { - var18 = 0.11258989; - } else { - var18 = 14.442382; - } - } else { - if (input[0] >= -1.5142694) { - var18 = -35.922295; - } else { - var18 = 1.2593673; - } - } - } else { - var18 = -20.33668; - } - } - double var19; - if (input[8] >= 0.5) { - if (input[3] >= 10.505693) { - var19 = 23.921568; - } else { - var19 = 0.49384382; - } - } else { - if (input[9] >= 0.5) { - if (input[5] >= 0.5) { - if (input[4] >= -0.6545867) { - var19 = 0.12744687; - } else { - var19 = 2.4686174; - } - } else { - if (input[6] >= 0.5) { - var19 = 0.22484401; - } else { - var19 = -6.859681; - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= 3.1452775) { - var19 = 0.34566537; - } else { - var19 = 4.5314803; - } - } else { - var19 = 7.110166; - } - } - } - double var20; - if (input[0] >= -1.6110797) { - if (input[0] >= -1.5474442) { - if (input[0] >= -1.5328473) { - if (input[0] >= -1.5237997) { - var20 = 0.13573115; - } else { - var20 = -21.876308; - } - } else { - var20 = 14.282313; - } - } else { - var20 = -19.858559; - } - } else { - if (input[0] >= -1.6343021) { - var20 = 25.054792; - } else { - var20 = 19.373396; - } - } - double var21; - if (input[0] >= -1.1005484) { - if (input[0] >= -1.0699673) { - if (input[0] >= 2.6892893) { - if (input[0] >= 2.7411628) { - var21 = -1.8941181; - } else { - var21 = -16.262783; - } - } else { - if (input[2] >= -3.1908445) { - var21 = 0.07606414; - } else { - var21 = 6.7022796; - } - } - } else { - if (input[0] >= -1.0818498) { - if (input[0] >= -1.0771451) { - var21 = -19.556412; - } else { - var21 = -41.727806; - } - } else { - if (input[0] >= -1.0968087) { - var21 = 5.044799; - } else { - var21 = -22.938114; - } - } - } - } else { - if (input[0] >= -1.1656919) { - if (input[0] >= -1.1409011) { - if (input[0] >= -1.1366789) { - var21 = 5.7243176; - } else { - var21 = -7.8977947; - } - } else { - if (input[0] >= -1.1557393) { - var21 = 9.533543; - } else { - var21 = 14.563201; - } - } - } else { - if (input[0] >= -1.1700348) { - var21 = -26.660381; - } else { - if (input[0] >= -1.1798666) { - var21 = 13.019152; - } else { - var21 = 1.886038; - } - } - } - } - double var22; - if (input[4] >= -1.061715) { - if (input[0] >= -1.5846001) { - if (input[2] >= 0.42553467) { - if (input[0] >= -1.3445346) { - var22 = -0.22792563; - } else { - var22 = -11.211833; - } - } else { - if (input[0] >= -1.5285044) { - var22 = 0.23592049; - } else { - var22 = 29.51904; - } - } - } else { - var22 = -13.298237; - } - } else { - if (input[7] >= 0.5) { - if (input[6] >= 0.5) { - if (input[0] >= -0.061511233) { - var22 = -3.6082382; - } else { - var22 = 3.9404857; - } - } else { - if (input[0] >= 2.105291) { - var22 = -14.739092; - } else { - var22 = 6.560977; - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -2.2831) { - var22 = 3.27665; - } else { - var22 = -6.206473; - } - } else { - if (input[4] >= -2.011681) { - var22 = -16.98648; - } else { - var22 = -2.0693188; - } - } - } - } - double var23; - if (input[0] >= -1.6110797) { - if (input[0] >= -1.5304345) { - if (input[0] >= -1.4247575) { - if (input[0] >= -1.4069637) { - var23 = 0.0058279335; - } else { - var23 = -12.574236; - } - } else { - if (input[0] >= -1.4281353) { - var23 = 28.729404; - } else { - var23 = 1.0624564; - } - } - } else { - if (input[0] >= -1.5441871) { - var23 = -21.719168; - } else { - var23 = -6.0660253; - } - } - } else { - if (input[0] >= -1.6262195) { - var23 = 8.824266; - } else { - var23 = 17.930897; - } - } - double var24; - if (input[0] >= -1.2988136) { - if (input[0] >= -1.2829499) { - if (input[9] >= 0.5) { - if (input[4] >= -1.061715) { - var24 = 0.078482985; - } else { - var24 = -2.069406; - } - } else { - if (input[4] >= -1.7402622) { - var24 = 2.6634102; - } else { - var24 = 10.424127; - } - } - } else { - if (input[5] >= 0.5) { - var24 = 11.484903; - } else { - var24 = 4.8381333; - } - } - } else { - if (input[0] >= -1.3074391) { - var24 = -24.193026; - } else { - if (input[0] >= -1.3154614) { - var24 = 11.129827; - } else { - if (input[4] >= 0.023960479) { - var24 = 3.2866764; - } else { - var24 = -2.8106174; - } - } - } - } - double var25; - if (input[3] >= 10.505693) { - var25 = -13.873767; - } else { - if (input[0] >= -1.0870372) { - if (input[0] >= -1.0699673) { - if (input[0] >= -0.9522869) { - var25 = -0.12327542; - } else { - var25 = 1.7734003; - } - } else { - if (input[2] >= 0.42553467) { - var25 = -27.763315; - } else { - var25 = -4.3645062; - } - } - } else { - if (input[0] >= -1.0944563) { - var25 = 11.844988; - } else { - if (input[0] >= -1.0986183) { - var25 = -14.054545; - } else { - var25 = 1.4738897; - } - } - } - } - double var26; - if (input[3] >= 10.505693) { - var26 = -12.905225; - } else { - if (input[13] >= 0.5) { - if (input[8] >= 0.5) { - var26 = -8.218271; - } else { - var26 = -2.7714384; - } - } else { - if (input[2] >= -3.1908445) { - if (input[5] >= 0.5) { - var26 = 0.1919713; - } else { - var26 = -0.34239304; - } - } else { - var26 = 13.057341; - } - } - } - double var27; - if (input[0] >= -1.6110797) { - if (input[5] >= 0.5) { - if (input[0] >= -1.3544871) { - if (input[4] >= 0.838217) { - var27 = -0.28236327; - } else { - var27 = 0.49259615; - } - } else { - if (input[4] >= -1.061715) { - var27 = -6.032808; - } else { - var27 = 6.1769953; - } - } - } else { - if (input[0] >= -0.27232254) { - if (input[6] >= 0.5) { - var27 = 0.30610603; - } else { - var27 = 7.8584433; - } - } else { - if (input[6] >= 0.5) { - var27 = -0.79939336; - } else { - var27 = -9.435571; - } - } - } - } else { - var27 = 11.286037; - } - double var28; - if (input[3] >= 10.505693) { - var28 = 7.1790824; - } else { - if (input[4] >= -1.7402622) { - if (input[13] >= 0.5) { - var28 = -4.953042; - } else { - if (input[7] >= 0.5) { - var28 = 0.11932213; - } else { - var28 = -0.42846715; - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -2.2831) { - var28 = 6.0286536; - } else { - var28 = -3.695003; - } - } else { - if (input[4] >= -2.2831) { - var28 = -3.099296; - } else { - var28 = 4.8989415; - } - } - } - } - double var29; - if (input[4] >= -0.38316783) { - if (input[0] >= -1.5389395) { - if (input[0] >= -1.463361) { - if (input[0] >= -1.0731037) { - var29 = -0.045030884; - } else { - var29 = 4.8160086; - } - } else { - var29 = -14.874015; - } - } else { - var29 = 22.95401; - } - } else { - if (input[0] >= -1.6187401) { - if (input[0] >= -1.4884533) { - if (input[0] >= -1.4665577) { - var29 = -0.22108805; - } else { - var29 = -22.836859; - } - } else { - if (input[0] >= -1.5106503) { - var29 = 20.822256; - } else { - var29 = 3.0943563; - } - } - } else { - var29 = -25.067308; - } - } - 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/Capacity_traffic_light.java b/src/main/java/org/matsim/prepare/network/Capacity_traffic_light.java deleted file mode 100644 index 70b8269e..00000000 --- a/src/main/java/org/matsim/prepare/network/Capacity_traffic_light.java +++ /dev/null @@ -1,1619 +0,0 @@ -package org.matsim.prepare.network; -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - -/** -* Generated model, do not modify. -*/ -public class Capacity_traffic_light implements FeatureRegressor { - - @Override - public double predict(Object2DoubleMap ft) { - double[] data = new double[14]; - data[0] = (ft.getDouble("length") - 129.80599755865998) / 93.91484389753218; - data[1] = (ft.getDouble("speed") - 12.726744879967448) / 3.0571847342843816; - data[2] = (ft.getDouble("numFoes") - 2.4327953343279534) / 0.6498808003630541; - data[3] = (ft.getDouble("numLanes") - 1.8202902482029024) / 0.9477667668865584; - data[4] = (ft.getDouble("junctionSize") - 13.943035399430354) / 4.355585031201389; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - for (int i = 0; i < data.length; i++) - if (Double.isNaN(data[i])) throw new IllegalArgumentException("Invalid data at index: " + i); - - return score(data); - } - public static double score(double[] input) { - double var0; - if (input[13] >= -0.5) { - if (input[4] >= 0.5870542) { - if (input[13] >= 0.5) { - if (input[3] >= -0.33794206) { - var0 = 367.50482; - } else { - var0 = 424.35815; - } - } else { - if (input[9] >= 0.5) { - var0 = 206.34163; - } else { - var0 = 364.96725; - } - } - } else { - if (input[12] >= 0.5) { - if (input[4] >= -0.5608972) { - var0 = 462.75888; - } else { - var0 = 541.3571; - } - } else { - if (input[5] >= 0.5) { - var0 = 423.2037; - } else { - var0 = 484.65845; - } - } - } - } else { - if (input[4] >= 0.12787366) { - if (input[9] >= 0.5) { - if (input[3] >= 0.7171699) { - var0 = 147.20288; - } else { - var0 = 192.373; - } - } else { - if (input[13] >= -1.5) { - var0 = 270.54285; - } else { - var0 = 219.35835; - } - } - } else { - if (input[9] >= 0.5) { - if (input[3] >= 0.7171699) { - var0 = 185.97235; - } else { - var0 = 272.20184; - } - } else { - if (input[13] >= -1.5) { - var0 = 396.2951; - } else { - var0 = 305.99268; - } - } - } - } - double var1; - if (input[3] >= -0.33794206) { - if (input[9] >= 0.5) { - if (input[6] >= 0.5) { - if (input[3] >= 0.7171699) { - var1 = 88.558716; - } else { - var1 = 123.2088; - } - } else { - if (input[0] >= -0.88001) { - var1 = 194.34872; - } else { - var1 = 101.6791; - } - } - } else { - if (input[3] >= 0.7171699) { - if (input[6] >= 0.5) { - var1 = 195.41751; - } else { - var1 = 278.5694; - } - } else { - if (input[0] >= -0.9177569) { - var1 = 304.28644; - } else { - var1 = 219.76962; - } - } - } - } else { - if (input[4] >= -0.5608972) { - if (input[10] >= 0.5) { - if (input[0] >= -0.9436314) { - var1 = 252.97453; - } else { - var1 = 198.98586; - } - } else { - if (input[0] >= -0.67690045) { - var1 = 286.61203; - } else { - var1 = 250.8239; - } - } - } else { - if (input[7] >= 0.5) { - if (input[0] >= -0.89715314) { - var1 = 384.269; - } else { - var1 = 262.40286; - } - } else { - if (input[0] >= -0.9429393) { - var1 = 287.37; - } else { - var1 = 192.14041; - } - } - } - } - double var2; - if (input[13] >= -0.5) { - if (input[1] >= -0.9835012) { - if (input[4] >= 0.5870542) { - if (input[13] >= 0.5) { - var2 = 181.357; - } else { - var2 = 126.57919; - } - } else { - if (input[7] >= 0.5) { - var2 = 203.57613; - } else { - var2 = 150.32642; - } - } - } else { - if (input[4] >= -0.5608972) { - if (input[12] >= 0.5) { - var2 = 96.03897; - } else { - var2 = 140.53992; - } - } else { - if (input[2] >= -1.4353329) { - var2 = 171.74016; - } else { - var2 = 230.64528; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[4] >= -0.10171662) { - if (input[4] >= 1.275825) { - var2 = 103.24647; - } else { - var2 = 66.63641; - } - } else { - if (input[7] >= 0.5) { - var2 = 123.71024; - } else { - var2 = 85.63842; - } - } - } else { - if (input[8] >= 0.5) { - if (input[13] >= -1.5) { - var2 = 173.88304; - } else { - var2 = 111.6038; - } - } else { - if (input[4] >= -1.0200777) { - var2 = 59.0332; - } else { - var2 = 135.35942; - } - } - } - } - double var3; - if (input[13] >= -0.5) { - if (input[4] >= 0.12787366) { - if (input[3] >= -0.33794206) { - if (input[9] >= 0.5) { - var3 = 11.842827; - } else { - var3 = 91.307655; - } - } else { - if (input[1] >= -0.5288346) { - var3 = 114.71714; - } else { - var3 = 86.89338; - } - } - } else { - if (input[12] >= 0.5) { - if (input[7] >= 0.5) { - var3 = 140.3354; - } else { - var3 = 45.98516; - } - } else { - if (input[3] >= -0.33794206) { - var3 = 75.785545; - } else { - var3 = 120.961426; - } - } - } - } else { - if (input[4] >= 0.35746396) { - if (input[4] >= 1.275825) { - if (input[13] >= -1.5) { - var3 = 72.557045; - } else { - var3 = 29.454908; - } - } else { - if (input[13] >= -1.5) { - var3 = 42.771923; - } else { - var3 = 24.680012; - } - } - } else { - if (input[9] >= 0.5) { - if (input[6] >= 0.5) { - var3 = 54.55675; - } else { - var3 = 81.069145; - } - } else { - if (input[13] >= -1.5) { - var3 = 104.61941; - } else { - var3 = 63.19876; - } - } - } - } - double var4; - if (input[3] >= -0.33794206) { - if (input[9] >= 0.5) { - if (input[13] >= -0.5) { - if (input[4] >= 0.5870542) { - var4 = 10.065217; - } else { - var4 = -63.55682; - } - } else { - if (input[3] >= 0.7171699) { - var4 = 12.907462; - } else { - var4 = 37.413372; - } - } - } else { - if (input[4] >= 0.5870542) { - if (input[8] >= 0.5) { - var4 = 42.821278; - } else { - var4 = -51.201416; - } - } else { - if (input[3] >= 1.7722819) { - var4 = 39.46324; - } else { - var4 = 86.999664; - } - } - } - } else { - if (input[2] >= 0.10341075) { - if (input[4] >= 2.079391) { - if (input[1] >= -0.5288346) { - var4 = -50.248425; - } else { - var4 = -97.71123; - } - } else { - if (input[1] >= 1.7428633) { - var4 = -55.380566; - } else { - var4 = 62.089447; - } - } - } else { - if (input[10] >= 0.5) { - if (input[4] >= -1.0200777) { - var4 = 78.4107; - } else { - var4 = 51.70315; - } - } else { - if (input[1] >= 0.83516544) { - var4 = 25.73279; - } else { - var4 = 103.682045; - } - } - } - } - double var5; - if (input[0] >= -0.8952365) { - if (input[13] >= -0.5) { - if (input[1] >= -0.9835012) { - if (input[6] >= 0.5) { - var5 = 50.868576; - } else { - var5 = 91.90699; - } - } else { - if (input[13] >= 0.5) { - var5 = 47.022156; - } else { - var5 = 18.278261; - } - } - } else { - if (input[1] >= -0.07416786) { - if (input[4] >= 0.35746396) { - var5 = 17.759998; - } else { - var5 = 34.367268; - } - } else { - if (input[13] >= -1.5) { - var5 = -2.7607558; - } else { - var5 = -42.612473; - } - } - } - } else { - if (input[0] >= -1.062356) { - if (input[0] >= -0.98590374) { - if (input[0] >= -0.8997086) { - var5 = -122.39893; - } else { - var5 = 14.461245; - } - } else { - if (input[1] >= -0.5288346) { - var5 = -96.585014; - } else { - var5 = 5.1462226; - } - } - } else { - if (input[12] >= 0.5) { - if (input[0] >= -1.1253918) { - var5 = -24.820234; - } else { - var5 = 22.29909; - } - } else { - if (input[1] >= 1.7428633) { - var5 = -63.869198; - } else { - var5 = 47.73467; - } - } - } - } - double var6; - if (input[3] >= -0.33794206) { - if (input[8] >= 0.5) { - if (input[0] >= -0.77262545) { - if (input[4] >= 0.5870542) { - var6 = 18.032515; - } else { - var6 = 55.521206; - } - } else { - if (input[0] >= -1.1238478) { - var6 = -8.596528; - } else { - var6 = 44.01731; - } - } - } else { - if (input[13] >= -0.5) { - if (input[12] >= 0.5) { - var6 = -56.772415; - } else { - var6 = -3.060491; - } - } else { - if (input[1] >= 2.6505613) { - var6 = -55.203384; - } else { - var6 = 12.321973; - } - } - } - } else { - if (input[2] >= 0.10341075) { - if (input[4] >= 2.079391) { - if (input[0] >= -0.21568474) { - var6 = -72.007034; - } else { - var6 = -48.37604; - } - } else { - if (input[1] >= 0.83516544) { - var6 = -54.694817; - } else { - var6 = 24.901882; - } - } - } else { - if (input[0] >= -0.9593371) { - if (input[1] >= -0.9835012) { - var6 = 49.22337; - } else { - var6 = 26.828186; - } - } else { - if (input[0] >= -1.0187526) { - var6 = -68.58256; - } else { - var6 = 26.439283; - } - } - } - } - double var7; - if (input[0] >= -0.81649494) { - if (input[1] >= -0.07416786) { - if (input[13] >= -0.5) { - if (input[4] >= 0.35746396) { - var7 = 20.20199; - } else { - var7 = 35.359833; - } - } else { - if (input[4] >= -0.79048747) { - var7 = 3.465759; - } else { - var7 = 17.98743; - } - } - } else { - if (input[12] >= 0.5) { - if (input[8] >= 0.5) { - var7 = -28.217916; - } else { - var7 = -5.8268604; - } - } else { - if (input[13] >= 1.5) { - var7 = 43.058315; - } else { - var7 = 8.249209; - } - } - } - } else { - if (input[3] >= 0.7171699) { - if (input[0] >= -0.9773854) { - if (input[4] >= -0.10171662) { - var7 = 7.316835; - } else { - var7 = -31.032711; - } - } else { - if (input[0] >= -1.0923831) { - var7 = -98.45283; - } else { - var7 = -29.935713; - } - } - } else { - if (input[0] >= -1.0580436) { - if (input[0] >= -0.9774386) { - var7 = 6.3834796; - } else { - var7 = -47.006844; - } - } else { - if (input[0] >= -1.3048097) { - var7 = 21.243135; - } else { - var7 = -110.55501; - } - } - } - } - double var8; - if (input[4] >= -1.7088487) { - if (input[1] >= 0.83516544) { - if (input[7] >= 0.5) { - if (input[4] >= -1.2496681) { - var8 = 1.5170248; - } else { - var8 = -33.17703; - } - } else { - if (input[9] >= 0.5) { - var8 = -35.911354; - } else { - var8 = -76.122894; - } - } - } else { - if (input[5] >= 0.5) { - if (input[13] >= 1.5) { - var8 = 26.433702; - } else { - var8 = 6.529245; - } - } else { - if (input[3] >= 1.7722819) { - var8 = -37.337563; - } else { - var8 = 20.534056; - } - } - } - } else { - if (input[4] >= -2.3976195) { - if (input[7] >= 0.5) { - if (input[4] >= -2.1680293) { - var8 = 39.35434; - } else { - var8 = -10.004152; - } - } else { - if (input[10] >= 0.5) { - var8 = 78.96174; - } else { - var8 = 33.651665; - } - } - } else { - if (input[2] >= -2.9740767) { - if (input[10] >= 0.5) { - var8 = 1.8065205; - } else { - var8 = -99.45925; - } - } else { - if (input[3] >= -0.33794206) { - var8 = 33.425495; - } else { - var8 = 61.353897; - } - } - } - } - double var9; - if (input[0] >= -0.77816236) { - if (input[0] >= 1.1071093) { - if (input[1] >= -0.9835012) { - if (input[0] >= 3.8216429) { - var9 = -37.22993; - } else { - var9 = 24.57778; - } - } else { - if (input[0] >= 1.1284053) { - var9 = 0.3728113; - } else { - var9 = 66.340096; - } - } - } else { - if (input[13] >= -1.5) { - if (input[1] >= -0.9835012) { - var9 = 9.357347; - } else { - var9 = 0.60598314; - } - } else { - if (input[3] >= 2.8273938) { - var9 = 3.6079726; - } else { - var9 = -16.304659; - } - } - } - } else { - if (input[13] >= 2.5) { - var9 = -92.2187; - } else { - if (input[1] >= 1.7428633) { - if (input[0] >= -1.0156115) { - var9 = -87.49487; - } else { - var9 = -10.97046; - } - } else { - if (input[0] >= -1.1236882) { - var9 = -6.368576; - } else { - var9 = 12.208469; - } - } - } - } - double var10; - if (input[4] >= 2.6533668) { - var10 = -88.87163; - } else { - if (input[4] >= 1.7350056) { - if (input[12] >= 0.5) { - if (input[0] >= -0.57963145) { - var10 = 34.971157; - } else { - var10 = 104.556496; - } - } else { - if (input[0] >= 0.056317) { - var10 = -37.35852; - } else { - var10 = 14.457261; - } - } - } else { - if (input[13] >= 1.5) { - if (input[0] >= -0.83342516) { - var10 = 24.28627; - } else { - var10 = -11.021199; - } - } else { - if (input[4] >= -0.5608972) { - var10 = -0.095924966; - } else { - var10 = 6.294528; - } - } - } - } - double var11; - if (input[4] >= -1.7088487) { - if (input[0] >= -1.2990066) { - if (input[2] >= -2.9740767) { - if (input[6] >= 0.5) { - var11 = 0.9681548; - } else { - var11 = 11.654723; - } - } else { - if (input[3] >= 1.7722819) { - var11 = -112.22902; - } else { - var11 = -4.612288; - } - } - } else { - var11 = -103.43151; - } - } else { - if (input[6] >= 0.5) { - if (input[0] >= -1.0409536) { - if (input[0] >= -0.6289314) { - var11 = 28.585384; - } else { - var11 = 76.80479; - } - } else { - var11 = -41.350395; - } - } else { - if (input[2] >= -2.9740767) { - if (input[4] >= -2.3976195) { - var11 = 2.070047; - } else { - var11 = -54.752262; - } - } else { - if (input[0] >= -1.1103783) { - var11 = 54.594933; - } else { - var11 = 6.3451734; - } - } - } - } - double var12; - if (input[1] >= 1.7428633) { - if (input[0] >= -1.1630856) { - if (input[7] >= 0.5) { - if (input[0] >= -1.015718) { - var12 = -7.1897907; - } else { - var12 = 30.621687; - } - } else { - if (input[0] >= -0.7237514) { - var12 = -30.915073; - } else { - var12 = -95.31315; - } - } - } else { - var12 = -131.99312; - } - } else { - if (input[0] >= -1.2741436) { - if (input[0] >= -1.2439567) { - if (input[7] >= 0.5) { - var12 = 2.8154845; - } else { - var12 = -5.132764; - } - } else { - if (input[13] >= 0.5) { - var12 = 123.264465; - } else { - var12 = 2.819096; - } - } - } else { - if (input[4] >= -0.79048747) { - var12 = -125.41991; - } else { - var12 = 38.844765; - } - } - } - double var13; - if (input[0] >= -0.97573495) { - if (input[0] >= -0.9735521) { - if (input[0] >= 1.4593966) { - if (input[4] >= -1.4792583) { - var13 = 5.815014; - } else { - var13 = 40.06303; - } - } else { - if (input[13] >= 0.5) { - var13 = 5.9172087; - } else { - var13 = -1.522723; - } - } - } else { - var13 = 94.280464; - } - } else { - if (input[0] >= -1.0580436) { - if (input[1] >= -0.5288346) { - if (input[0] >= -1.0477684) { - var13 = -36.895367; - } else { - var13 = -119.79888; - } - } else { - if (input[3] >= -0.33794206) { - var13 = 58.00334; - } else { - var13 = -6.6933064; - } - } - } else { - if (input[3] >= 1.7722819) { - var13 = -92.35661; - } else { - if (input[0] >= -1.0691174) { - var13 = 48.734802; - } else { - var13 = 2.117843; - } - } - } - } - double var14; - if (input[11] >= 0.5) { - if (input[3] >= 1.7722819) { - if (input[5] >= 0.5) { - if (input[13] >= -1.5) { - var14 = -7.957535; - } else { - var14 = -0.5557697; - } - } else { - if (input[13] >= -0.5) { - var14 = -104.637955; - } else { - var14 = -6.9212604; - } - } - } else { - if (input[8] >= 0.5) { - if (input[2] >= -1.4353329) { - var14 = 28.980356; - } else { - var14 = -2.3783262; - } - } else { - if (input[7] >= 0.5) { - var14 = 4.044478; - } else { - var14 = -6.5452895; - } - } - } - } else { - if (input[13] >= 0.5) { - if (input[7] >= 0.5) { - if (input[6] >= 0.5) { - var14 = -0.44899765; - } else { - var14 = -11.136123; - } - } else { - if (input[2] >= 0.10341075) { - var14 = 13.100871; - } else { - var14 = 25.965353; - } - } - } else { - if (input[7] >= 0.5) { - if (input[1] >= -0.5288346) { - var14 = 2.1125808; - } else { - var14 = -7.3830647; - } - } else { - if (input[1] >= -0.9835012) { - var14 = -18.711391; - } else { - var14 = -2.7296703; - } - } - } - } - double var15; - if (input[5] >= 0.5) { - if (input[6] >= 0.5) { - if (input[12] >= 0.5) { - if (input[9] >= 0.5) { - var15 = -0.6816591; - } else { - var15 = -12.157176; - } - } else { - if (input[9] >= 0.5) { - var15 = -2.0696847; - } else { - var15 = 7.578963; - } - } - } else { - if (input[0] >= -0.70538366) { - if (input[8] >= 0.5) { - var15 = 26.441994; - } else { - var15 = 9.369286; - } - } else { - if (input[2] >= -1.4353329) { - var15 = -12.483892; - } else { - var15 = 35.922173; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[8] >= 0.5) { - if (input[13] >= -0.5) { - var15 = 22.111153; - } else { - var15 = -6.503288; - } - } else { - if (input[2] >= 0.10341075) { - var15 = -20.640434; - } else { - var15 = 6.24046; - } - } - } else { - if (input[0] >= -1.0711937) { - if (input[13] >= 1.5) { - var15 = -110.477066; - } else { - var15 = -18.03973; - } - } else { - if (input[0] >= -1.0825338) { - var15 = 67.67926; - } else { - var15 = 5.2958064; - } - } - } - } - double var16; - if (input[3] >= -0.33794206) { - if (input[8] >= 0.5) { - if (input[0] >= -0.8923615) { - if (input[0] >= -0.8263444) { - var16 = 4.6402855; - } else { - var16 = 38.941223; - } - } else { - if (input[0] >= -0.90295625) { - var16 = -112.70789; - } else { - var16 = -12.201777; - } - } - } else { - if (input[4] >= 1.275825) { - if (input[3] >= 1.7722819) { - var16 = -10.222688; - } else { - var16 = -67.16906; - } - } else { - if (input[0] >= 1.2416995) { - var16 = -56.433655; - } else { - var16 = -7.2505217; - } - } - } - } else { - if (input[8] >= 0.5) { - if (input[0] >= -0.9555571) { - if (input[4] >= 0.8166445) { - var16 = -3.7876277; - } else { - var16 = -63.65588; - } - } else { - var16 = 48.45108; - } - } else { - if (input[4] >= 1.5054154) { - if (input[0] >= 0.0721292) { - var16 = -14.576662; - } else { - var16 = -54.5959; - } - } else { - if (input[7] >= 0.5) { - var16 = 6.5006685; - } else { - var16 = -2.639079; - } - } - } - } - double var17; - if (input[4] >= -1.0200777) { - if (input[4] >= -0.10171662) { - if (input[4] >= 0.5870542) { - if (input[10] >= 0.5) { - var17 = 4.3190055; - } else { - var17 = -6.19649; - } - } else { - if (input[3] >= 0.7171699) { - var17 = 23.102257; - } else { - var17 = 0.5622126; - } - } - } else { - if (input[9] >= 0.5) { - if (input[13] >= 0.5) { - var17 = 6.520137; - } else { - var17 = -47.899445; - } - } else { - if (input[0] >= -0.9142963) { - var17 = 7.2601857; - } else { - var17 = -32.4989; - } - } - } - } else { - if (input[13] >= 2.5) { - var17 = -97.06859; - } else { - if (input[7] >= 0.5) { - if (input[4] >= -1.4792583) { - var17 = 13.207709; - } else { - var17 = -6.060059; - } - } else { - if (input[4] >= -1.4792583) { - var17 = -12.0581665; - } else { - var17 = 21.24667; - } - } - } - } - double var18; - if (input[3] >= 0.7171699) { - if (input[4] >= -0.10171662) { - if (input[4] >= 0.35746396) { - if (input[0] >= -0.9264882) { - var18 = -1.5360795; - } else { - var18 = -33.38052; - } - } else { - if (input[12] >= 0.5) { - var18 = 32.38799; - } else { - var18 = -11.132994; - } - } - } else { - if (input[4] >= -1.7088487) { - if (input[7] >= 0.5) { - var18 = -19.722092; - } else { - var18 = 9.975108; - } - } else { - if (input[0] >= -0.70533043) { - var18 = 34.78269; - } else { - var18 = -26.166338; - } - } - } - } else { - if (input[12] >= 0.5) { - if (input[4] >= -2.1680293) { - if (input[1] >= -0.5288346) { - var18 = 1.0084791; - } else { - var18 = -13.03896; - } - } else { - if (input[2] >= -1.4353329) { - var18 = -111.12665; - } else { - var18 = -9.917932; - } - } - } else { - if (input[9] >= 0.5) { - if (input[7] >= 0.5) { - var18 = 3.0441973; - } else { - var18 = -5.132044; - } - } else { - if (input[3] >= -0.33794206) { - var18 = 31.354824; - } else { - var18 = 3.2640269; - } - } - } - } - double var19; - if (input[0] >= 1.8111515) { - if (input[0] >= 3.8108885) { - var19 = -40.914886; - } else { - if (input[0] >= 2.6085758) { - if (input[0] >= 3.4641914) { - var19 = 21.752987; - } else { - var19 = -4.062738; - } - } else { - if (input[2] >= 0.10341075) { - var19 = 24.770464; - } else { - var19 = 4.686978; - } - } - } - } else { - if (input[4] >= -1.0200777) { - if (input[0] >= -1.0619833) { - if (input[0] >= -0.9213772) { - var19 = -1.3459871; - } else { - var19 = -17.356071; - } - } else { - if (input[2] >= 0.10341075) { - var19 = 21.783834; - } else { - var19 = -6.78555; - } - } - } else { - if (input[0] >= -1.2499195) { - if (input[0] >= -1.045479) { - var19 = 4.8528085; - } else { - var19 = -10.240755; - } - } else { - if (input[0] >= -1.2683938) { - var19 = 75.3572; - } else { - var19 = 2.5274491; - } - } - } - } - double var20; - if (input[4] >= 1.7350056) { - if (input[12] >= 0.5) { - if (input[4] >= 2.1941862) { - if (input[0] >= -0.31705314) { - var20 = -41.948612; - } else { - var20 = 18.974371; - } - } else { - if (input[0] >= -0.62914443) { - var20 = 49.45087; - } else { - var20 = 91.05704; - } - } - } else { - if (input[0] >= -0.7876923) { - if (input[13] >= 0.5) { - var20 = 23.00791; - } else { - var20 = -10.842686; - } - } else { - var20 = -43.38333; - } - } - } else { - if (input[4] >= 0.5870542) { - if (input[12] >= 0.5) { - if (input[4] >= 1.0462348) { - var20 = -0.8745569; - } else { - var20 = -10.110093; - } - } else { - if (input[5] >= 0.5) { - var20 = 0.21081121; - } else { - var20 = 50.255238; - } - } - } else { - if (input[8] >= 0.5) { - if (input[1] >= -0.5288346) { - var20 = 9.206179; - } else { - var20 = -21.05868; - } - } else { - if (input[13] >= 1.5) { - var20 = 14.225177; - } else { - var20 = -1.3628882; - } - } - } - } - double var21; - if (input[0] >= -1.3048097) { - if (input[0] >= -1.0982928) { - if (input[0] >= -1.0899341) { - if (input[0] >= -1.0788071) { - var21 = -0.30390498; - } else { - var21 = 25.795858; - } - } else { - if (input[10] >= 0.5) { - var21 = 2.6885552; - } else { - var21 = -93.70193; - } - } - } else { - if (input[0] >= -1.1053736) { - if (input[3] >= -0.33794206) { - var21 = 23.336504; - } else { - var21 = 66.62827; - } - } else { - if (input[0] >= -1.1236882) { - var21 = -15.759997; - } else { - var21 = 8.292577; - } - } - } - } else { - var21 = -58.131153; - } - double var22; - if (input[0] >= -1.0315834) { - if (input[0] >= -1.0243428) { - if (input[0] >= -1.0187526) { - if (input[0] >= -1.0148661) { - var22 = 0.032961894; - } else { - var22 = -75.93611; - } - } else { - if (input[4] >= -0.79048747) { - var22 = -30.125967; - } else { - var22 = 99.532455; - } - } - } else { - if (input[0] >= -1.0270048) { - var22 = -101.17118; - } else { - if (input[12] >= 0.5) { - var22 = -70.19988; - } else { - var22 = 7.367056; - } - } - } - } else { - if (input[0] >= -1.0406342) { - if (input[5] >= 0.5) { - if (input[4] >= -0.5608972) { - var22 = 71.505905; - } else { - var22 = -47.84937; - } - } else { - var22 = 159.42519; - } - } else { - if (input[0] >= -1.0580436) { - if (input[2] >= 0.10341075) { - var22 = 14.025388; - } else { - var22 = -46.703384; - } - } else { - if (input[0] >= -1.072578) { - var22 = 42.089104; - } else { - var22 = 1.7467211; - } - } - } - } - double var23; - if (input[11] >= 0.5) { - if (input[0] >= 0.04944908) { - if (input[4] >= 0.5870542) { - if (input[0] >= 0.34556842) { - var23 = 4.179637; - } else { - var23 = -26.827099; - } - } else { - if (input[0] >= 0.34615403) { - var23 = 7.450673; - } else { - var23 = 26.639925; - } - } - } else { - if (input[0] >= -0.098344386) { - if (input[9] >= 0.5) { - var23 = -10.470457; - } else { - var23 = -75.14347; - } - } else { - if (input[0] >= -1.1230493) { - var23 = -0.56143826; - } else { - var23 = 20.072157; - } - } - } - } else { - if (input[0] >= -1.2706298) { - if (input[0] >= -1.2559357) { - if (input[4] >= -2.3976195) { - var23 = -1.2197328; - } else { - var23 = -30.672867; - } - } else { - if (input[9] >= 0.5) { - var23 = -6.778308; - } else { - var23 = 96.23706; - } - } - } else { - if (input[12] >= 0.5) { - var23 = -0.8686448; - } else { - var23 = -64.14468; - } - } - } - double var24; - if (input[0] >= -1.3034787) { - if (input[4] >= 1.0462348) { - if (input[2] >= 0.10341075) { - if (input[0] >= 1.2677867) { - var24 = -22.290045; - } else { - var24 = -0.11668297; - } - } else { - if (input[3] >= 0.7171699) { - var24 = 6.5693946; - } else { - var24 = 30.435068; - } - } - } else { - if (input[0] >= -1.2817037) { - if (input[0] >= -1.2706298) { - var24 = -0.13412413; - } else { - var24 = -70.36895; - } - } else { - var24 = 46.042397; - } - } - } else { - var24 = -57.535797; - } - double var25; - if (input[0] >= 3.6052234) { - if (input[3] >= -0.33794206) { - var25 = 5.3210993; - } else { - if (input[0] >= 3.8257422) { - var25 = -56.23565; - } else { - if (input[0] >= 3.7195292) { - var25 = 12.495119; - } else { - var25 = -35.313454; - } - } - } - } else { - if (input[0] >= 3.4756913) { - if (input[0] >= 3.5295167) { - var25 = 27.95722; - } else { - var25 = 60.733276; - } - } else { - if (input[8] >= 0.5) { - if (input[3] >= -0.33794206) { - var25 = 2.9827752; - } else { - var25 = -23.103254; - } - } else { - if (input[3] >= -0.33794206) { - var25 = -5.7312903; - } else { - var25 = 0.3952112; - } - } - } - } - double var26; - if (input[0] >= 0.7945922) { - if (input[0] >= 0.81434417) { - if (input[6] >= 0.5) { - if (input[13] >= -0.5) { - var26 = -4.437909; - } else { - var26 = 32.362137; - } - } else { - if (input[12] >= 0.5) { - var26 = 4.9694543; - } else { - var26 = 45.244526; - } - } - } else { - if (input[2] >= 0.10341075) { - var26 = -90.08293; - } else { - if (input[0] >= 0.8024185) { - var26 = -9.868344; - } else { - var26 = -2.538421; - } - } - } - } else { - if (input[0] >= 0.7876711) { - var26 = 56.135788; - } else { - if (input[0] >= 0.7830924) { - var26 = -52.967896; - } else { - if (input[0] >= 0.7261791) { - var26 = 20.134798; - } else { - var26 = 0.7366501; - } - } - } - } - double var27; - if (input[4] >= -1.9384389) { - if (input[4] >= -1.4792583) { - if (input[0] >= -1.2941618) { - if (input[13] >= -1.5) { - var27 = 0.3939423; - } else { - var27 = -7.9987173; - } - } else { - var27 = -45.682926; - } - } else { - if (input[2] >= -1.4353329) { - if (input[6] >= 0.5) { - var27 = 22.475674; - } else { - var27 = -13.486884; - } - } else { - if (input[13] >= -0.5) { - var27 = -54.619587; - } else { - var27 = 20.175884; - } - } - } - } else { - if (input[2] >= 0.10341075) { - var27 = -45.88502; - } else { - if (input[0] >= -1.0286553) { - if (input[0] >= -0.8878362) { - var27 = 13.42434; - } else { - var27 = -36.88931; - } - } else { - if (input[13] >= 0.5) { - var27 = -1.9395915; - } else { - var27 = 48.769196; - } - } - } - } - double var28; - if (input[1] >= 1.7428633) { - if (input[13] >= -0.5) { - if (input[2] >= -1.4353329) { - if (input[4] >= 0.2426688) { - var28 = -62.849438; - } else { - var28 = -9.177687; - } - } else { - var28 = -71.55584; - } - } else { - if (input[5] >= 0.5) { - if (input[4] >= 0.70184934) { - var28 = 15.813318; - } else { - var28 = 2.7658036; - } - } else { - if (input[8] >= 0.5) { - var28 = -35.10312; - } else { - var28 = -7.872855; - } - } - } - } else { - if (input[3] >= 0.7171699) { - if (input[4] >= -0.10171662) { - if (input[5] >= 0.5) { - var28 = -2.2804086; - } else { - var28 = 28.995634; - } - } else { - if (input[4] >= -0.79048747) { - var28 = -14.542291; - } else { - var28 = 0.9258674; - } - } - } else { - if (input[4] >= 2.1941862) { - if (input[13] >= 0.5) { - var28 = -38.98531; - } else { - var28 = -19.796707; - } - } else { - if (input[2] >= -1.4353329) { - var28 = 1.3527946; - } else { - var28 = 11.355799; - } - } - } - } - double var29; - if (input[4] >= -2.3976195) { - if (input[0] >= -1.2169108) { - if (input[1] >= -0.07416786) { - if (input[0] >= -0.9213772) { - var29 = 2.0215807; - } else { - var29 = -5.4085274; - } - } else { - if (input[0] >= -0.531556) { - var29 = -4.501681; - } else { - var29 = 8.182131; - } - } - } else { - if (input[2] >= 0.10341075) { - if (input[4] >= -0.44610205) { - var29 = 11.59023; - } else { - var29 = 87.30313; - } - } else { - if (input[12] >= 0.5) { - var29 = -33.024693; - } else { - var29 = 23.35533; - } - } - } - } else { - if (input[10] >= 0.5) { - var29 = 27.671478; - } else { - if (input[2] >= -2.9740767) { - if (input[0] >= -1.0329144) { - var29 = -89.100525; - } else { - var29 = -41.065678; - } - } else { - if (input[0] >= -1.0396758) { - var29 = -7.8055677; - } else { - var29 = -6.5929723; - } - } - } - } - 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 deleted file mode 100644 index d7d4f715..00000000 --- a/src/main/java/org/matsim/prepare/network/FeatureRegressor.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.matsim.prepare.network; - -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; - -/** - * Predictor interface for regression. - */ -@Deprecated -public interface FeatureRegressor { - - - /** - * Predict value from given features. - */ - double predict(Object2DoubleMap ft); - - /** - * Predict values with adjusted model params. - */ - default double predict(Object2DoubleMap ft, double[] params) { - throw new UnsupportedOperationException("Not implemented"); - } - - - /** - * Return data that is used for internal prediction function (normalization already applied). - */ - default double[] getData(Object2DoubleMap ft) { - throw new UnsupportedOperationException("Not implemented"); - } - -} diff --git a/src/main/java/org/matsim/prepare/network/FixNetworkV5.java b/src/main/java/org/matsim/prepare/network/FixNetworkV5.java deleted file mode 100644 index a4342f2e..00000000 --- a/src/main/java/org/matsim/prepare/network/FixNetworkV5.java +++ /dev/null @@ -1,60 +0,0 @@ -package org.matsim.prepare.network; - -import org.matsim.api.core.v01.Id; -import org.matsim.api.core.v01.network.Link; -import org.matsim.api.core.v01.network.Network; -import org.matsim.application.CommandSpec; -import org.matsim.application.MATSimAppCommand; -import org.matsim.application.options.InputOptions; -import org.matsim.application.options.OutputOptions; -import org.matsim.core.network.NetworkUtils; -import picocli.CommandLine; - -import java.util.Map; - -/** - * This class won't be necesarry with a updated network. - */ -@CommandLine.Command(name = "fix-network-v5", description = "Apply corrects to the v5 network.") -@CommandSpec( - requireNetwork = true, - produces = "network.xml.gz" -) -@Deprecated -public class FixNetworkV5 implements MATSimAppCommand { - - @CommandLine.Mixin - private final InputOptions input = InputOptions.ofCommand(FixNetworkV5.class); - - @CommandLine.Mixin - private final OutputOptions output = OutputOptions.ofCommand(FixNetworkV5.class); - - public static void main(String[] args) { - new FixNetworkV5().execute(args); - } - - @Override - public Integer call() throws Exception { - - Network network = input.getNetwork(); - - fixLinks(network.getLinks()); - - NetworkUtils.writeNetwork(network, output.getPath().toString()); - - return 0; - } - - private void fixLinks(Map, ? extends Link> links) { - - // Subtract a bus lane manually - links.get(Id.createLinkId("106347")).setNumberOfLanes(2); - links.get(Id.createLinkId("138826")).setNumberOfLanes(2); - links.get(Id.createLinkId("154291")).setNumberOfLanes(2); - links.get(Id.createLinkId("7875")).setNumberOfLanes(3); - - links.get(Id.createLinkId("106330")).setNumberOfLanes(2); - - } - -} diff --git a/src/main/java/org/matsim/prepare/network/FreeSpeedOptimizer.java b/src/main/java/org/matsim/prepare/network/FreeSpeedOptimizer.java deleted file mode 100644 index 4a2e7737..00000000 --- a/src/main/java/org/matsim/prepare/network/FreeSpeedOptimizer.java +++ /dev/null @@ -1,343 +0,0 @@ -package org.matsim.prepare.network; - -import com.fasterxml.jackson.annotation.JsonAutoDetect; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.PropertyAccessor; -import com.fasterxml.jackson.databind.ObjectMapper; -import it.unimi.dsi.fastutil.doubles.DoubleArrayList; -import it.unimi.dsi.fastutil.doubles.DoubleList; -import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; -import it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import org.apache.commons.csv.CSVFormat; -import org.apache.commons.csv.CSVParser; -import org.apache.commons.csv.CSVPrinter; -import org.apache.commons.csv.CSVRecord; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; -import org.eclipse.jetty.server.Server; -import org.eclipse.jetty.servlet.ServletHandler; -import org.eclipse.jetty.servlet.ServletHolder; -import org.matsim.api.core.v01.Id; -import org.matsim.api.core.v01.network.Link; -import org.matsim.api.core.v01.network.Network; -import org.matsim.api.core.v01.network.Node; -import org.matsim.application.CommandSpec; -import org.matsim.application.MATSimAppCommand; -import org.matsim.application.analysis.traffic.traveltime.SampleValidationRoutes; -import org.matsim.application.options.InputOptions; -import org.matsim.contrib.osm.networkReader.LinkProperties; -import org.matsim.core.network.NetworkUtils; -import org.matsim.core.router.DijkstraFactory; -import org.matsim.core.router.costcalculators.OnlyTimeDependentTravelDisutility; -import org.matsim.core.router.util.LeastCostPathCalculator; -import org.matsim.core.trafficmonitoring.FreeSpeedTravelTime; -import org.matsim.core.utils.geometry.CoordUtils; -import picocli.CommandLine; - -import java.io.File; -import java.io.IOException; -import java.io.PrintWriter; -import java.nio.file.Files; -import java.nio.file.Path; -import java.util.*; -import java.util.stream.DoubleStream; - -@CommandLine.Command( - name = "network-freespeed", - description = "Start server for freespeed optimization." -) -@CommandSpec( - requireNetwork = true, - requires = "features.csv" -) -@Deprecated -public class FreeSpeedOptimizer implements MATSimAppCommand { - - private static final Logger log = LogManager.getLogger(FreeSpeedOptimizer.class); - - @CommandLine.Mixin - private InputOptions input = InputOptions.ofCommand(FreeSpeedOptimizer.class); - - @CommandLine.Option(names = "--output", description = "Path to output network") - private Path output; - - @CommandLine.Option(names = "--params", description = "Apply params and write to output if given") - private Path params; - - @CommandLine.Parameters(arity = "0..*", description = "Input validation files loaded from APIs") - private List validationFiles; - - private Network network; - private Object2DoubleMap validationSet; - private Map, PrepareNetworkParams.Feature> features; - - private ObjectMapper mapper; - - /** - * Original speeds. - */ - private Object2DoubleMap> speeds = new Object2DoubleOpenHashMap<>(); - - public static void main(String[] args) { - new FreeSpeedOptimizer().execute(args); - } - - @Override - public Integer call() throws Exception { - - // TODO: must be reusable class - // TODO: evaluate many factors (f) and write results to csv - - network = input.getNetwork(); - mapper = new ObjectMapper(); - mapper.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY); - mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); - - for (Link link : network.getLinks().values()) { - speeds.put(link.getId(), link.getFreespeed()); - } - - validationSet = readValidation(validationFiles); - features = PrepareNetworkParams.readFeatures(input.getPath("features.csv"), network.getLinks().size()); - - log.info("Initial score:"); - evaluateNetwork(null, "init"); - - evaluateNetwork(new Request(0.5), "05"); - evaluateNetwork(new Request(0.75), "075"); - evaluateNetwork(new Request(0.9), "09"); - - if (output != null && params != null) { - Request p = mapper.readValue(params.toFile(), Request.class); - evaluateNetwork(p, null); - NetworkUtils.writeNetwork(network, output.toString()); - - return 0; - } - - Server server = new Server(9090); - - ServletHandler handler = new ServletHandler(); - server.setHandler(handler); - - handler.addServletWithMapping(new ServletHolder(new Backend()), "/"); - - try { - server.start(); - server.join(); - } finally { - server.destroy(); - } - - return 0; - } - - private Result evaluateNetwork(Request request, String save) throws IOException { - - Map, double[]> attributes = new HashMap<>(); - - if (request != null) { - for (Link link : network.getLinks().values()) { - - double allowedSpeed = NetworkUtils.getAllowedSpeed(link); - - if (request.f == 0) { - - PrepareNetworkParams.Feature ft = features.get(link.getId()); - String type = NetworkUtils.getHighwayType(link); - - if (type.startsWith("motorway")) { - link.setFreespeed(allowedSpeed); - continue; - } - - FeatureRegressor speedModel = switch (ft.junctionType()) { - case "traffic_light" -> Speedrelative_traffic_light.INSTANCE; - case "right_before_left" -> Speedrelative_right_before_left.INSTANCE; - case "priority" -> Speedrelative_priority.INSTANCE; - default -> throw new IllegalArgumentException("Unknown type: " + ft.junctionType()); - }; - - double[] p = switch (ft.junctionType()) { - case "traffic_light" -> request.traffic_light; - case "right_before_left" -> request.rbl; - case "priority" -> request.priority; - default -> throw new IllegalArgumentException("Unknown type: " + ft.junctionType()); - }; - - double speedFactor = Math.max(0.25, speedModel.predict(ft.features(), p)); - - attributes.put(link.getId(), speedModel.getData(ft.features())); - - link.setFreespeed((double) link.getAttributes().getAttribute("allowed_speed") * speedFactor); - link.getAttributes().putAttribute("speed_factor", speedFactor); - - } else - // Old MATSim freespeed logic - link.setFreespeed(LinkProperties.calculateSpeedIfSpeedTag(allowedSpeed, request.f)); - } - - if (save != null) - mapper.writeValue(new File(save + "-params.json"), request); - } - - FreeSpeedTravelTime tt = new FreeSpeedTravelTime(); - OnlyTimeDependentTravelDisutility util = new OnlyTimeDependentTravelDisutility(tt); - LeastCostPathCalculator router = new DijkstraFactory(false).createPathCalculator(network, util, tt); - - SummaryStatistics rmse = new SummaryStatistics(); - SummaryStatistics mse = new SummaryStatistics(); - - CSVPrinter csv = save != null ? new CSVPrinter(Files.newBufferedWriter(Path.of(save + "-eval.csv")), CSVFormat.DEFAULT) : null; - - if (csv != null) - csv.printRecord("from_node", "to_node", "beeline_dist", "dist", "travel_time"); - - List priority = new ArrayList<>(); - List rbl = new ArrayList<>(); - List traffic_light = new ArrayList<>(); - - for (Object2DoubleMap.Entry e : validationSet.object2DoubleEntrySet()) { - - SampleValidationRoutes.FromToNodes r = e.getKey(); - - Node fromNode = network.getNodes().get(r.fromNode()); - Node toNode = network.getNodes().get(r.toNode()); - LeastCostPathCalculator.Path path = router.calcLeastCostPath(fromNode, toNode, 0, null, null); - - // iterate over the path, calc better correction - double distance = path.links.stream().mapToDouble(Link::getLength).sum(); - double speed = distance / path.travelTime; - - double correction = speed / e.getDoubleValue(); - - for (Link link : path.links) { - - if (!attributes.containsKey(link.getId())) - continue; - - PrepareNetworkParams.Feature ft = features.get(link.getId()); - double[] input = attributes.get(link.getId()); - double speedFactor = (double) link.getAttributes().getAttribute("speed_factor"); - - List category = switch (ft.junctionType()) { - case "traffic_light" -> traffic_light; - case "right_before_left" -> rbl; - case "priority" -> priority; - default -> throw new IllegalArgumentException("not happening"); - }; - - category.add(new Data(input, speedFactor, speedFactor / correction)); - } - - - rmse.addValue(Math.pow(e.getDoubleValue() - speed, 2)); - mse.addValue(Math.abs((e.getDoubleValue() - speed) * 3.6)); - - if (csv != null) - csv.printRecord(r.fromNode(), r.toNode(), (int) CoordUtils.calcEuclideanDistance(fromNode.getCoord(), toNode.getCoord()), - (int) distance, (int) path.travelTime); - } - - if (csv != null) - csv.close(); - - log.info("{}, rmse: {}, mae: {}", request, rmse.getMean(), mse.getMean()); - - return new Result(rmse.getMean(), mse.getMean(), priority, rbl, traffic_light); - } - - /** - * Calculate the target speed. - */ - static Object2DoubleMap readValidation(List validationFiles) throws IOException { - - // entry to hour and list of speeds - Map> entries = SampleValidationRoutes.readValidation(validationFiles); - - Object2DoubleMap result = new Object2DoubleOpenHashMap<>(); - - // Target values - for (Map.Entry> e : entries.entrySet()) { - - Int2ObjectMap perHour = e.getValue(); - - // Use avg from all values for 3:00 and 21:00 - double avg = DoubleStream.concat(perHour.get(3).doubleStream(), perHour.get(21).doubleStream()) - .average().orElseThrow(); - - - result.put(e.getKey(), avg); - } - - return result; - } - - private record Data(double[] x, double yPred, double yTrue) { - - } - - private record Result(double rmse, double mse, List priority, List rbl, List traffic_light) {} - - - /** - * JSON request containing desired parameters. - */ - private static final class Request { - - double[] priority; - double[] rbl; - double[] traffic_light; - - double f; - - public Request() { - } - - public Request(double f) { - this.f = f; - } - - @Override - public String toString() { - if (f == 0) - return "Request{" + - "priority=" + priority.length + - ", rbl=" + rbl.length + - ", traffic_light=" + traffic_light.length + - '}'; - - return "Request{f=" + f + "}"; - } - } - - private final class Backend extends HttpServlet { - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { - - Request request = mapper.readValue(req.getInputStream(), Request.class); - - boolean save = req.getRequestURI().equals("/save"); - Result stats = evaluateNetwork(request, save ? "network-opt" : null); - - if (save) - NetworkUtils.writeNetwork(network, "network-opt.xml.gz"); - - resp.setStatus(200); - - PrintWriter writer = resp.getWriter(); - - mapper.writeValue(writer, stats); - - writer.close(); - } - } - -} diff --git a/src/main/java/org/matsim/prepare/network/PrepareNetworkParams.java b/src/main/java/org/matsim/prepare/network/PrepareNetworkParams.java deleted file mode 100644 index 00a9d978..00000000 --- a/src/main/java/org/matsim/prepare/network/PrepareNetworkParams.java +++ /dev/null @@ -1,196 +0,0 @@ -package org.matsim.prepare.network; - -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; -import it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap; -import org.apache.commons.csv.CSVFormat; -import org.apache.commons.csv.CSVParser; -import org.apache.commons.csv.CSVRecord; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; -import org.matsim.api.core.v01.Id; -import org.matsim.api.core.v01.IdMap; -import org.matsim.api.core.v01.network.Link; -import org.matsim.api.core.v01.network.Network; -import org.matsim.application.CommandSpec; -import org.matsim.application.MATSimAppCommand; -import org.matsim.application.options.InputOptions; -import org.matsim.application.options.OutputOptions; -import org.matsim.core.network.NetworkUtils; -import org.matsim.core.utils.io.IOUtils; -import picocli.CommandLine; - -import java.io.IOException; -import java.util.List; -import java.util.Map; - -@CommandLine.Command( - name = "network-params", description = "Apply network parameters for capacity and speed." -) -@CommandSpec( - requireNetwork = true, - requires = "features.csv", - produces = "network.xml.gz" -) -@Deprecated -public class PrepareNetworkParams implements MATSimAppCommand { - - private static final Logger log = LogManager.getLogger(PrepareNetworkParams.class); - - @CommandLine.Mixin - private final InputOptions input = InputOptions.ofCommand(PrepareNetworkParams.class); - @CommandLine.Mixin - private final OutputOptions output = OutputOptions.ofCommand(PrepareNetworkParams.class); - - private int warn = 0; - - public static void main(String[] args) { - new PrepareNetworkParams().execute(args); - } - - /** - * Theoretical capacity. - */ - private static double capacityEstimate(double v) { - - // headway - double tT = 1.2; - - // car length - double lL = 7.0; - - double Qc = v / (v * tT + lL); - - return 3600 * Qc; - } - - /** - * Read network edge features from csv. - */ - static Map, Feature> readFeatures(String input, int size) throws IOException { - - Map, Feature> features = new IdMap<>(Link.class, size); - - try (CSVParser reader = new CSVParser(IOUtils.getBufferedReader(input), - CSVFormat.DEFAULT.builder().setHeader().setSkipHeaderRecord(true).build())) { - - List header = reader.getHeaderNames(); - - for (CSVRecord row : reader) { - - Id id = Id.createLinkId(row.get("edgeId")); - - Object2DoubleOpenHashMap ft = new Object2DoubleOpenHashMap<>(); - ft.defaultReturnValue(Double.NaN); - - for (String column : header) { - String v = row.get(column); - try { - ft.put(column, Double.parseDouble(v)); - } catch (NumberFormatException e) { - // every not equal to True will be false - ft.put(column, Boolean.parseBoolean(v) ? 1 : 0); - } - } - - features.put(id, new Feature(row.get("junctionType"), ft)); - } - } - - return features; - } - - @Override - public Integer call() throws Exception { - - Network network = input.getNetwork(); - - Map, Feature> features = readFeatures(input.getPath("features.csv"), network.getLinks().size()); - - for (Link link : network.getLinks().values()) { - Feature ft = features.get(link.getId()); - applyChanges(link, ft.junctionType, ft.features); - } - - log.warn("Observed {} warnings out of {} links", warn, network.getLinks().size()); - - NetworkUtils.writeNetwork(network, output.getPath("network.xml.gz").toString()); - - return 0; - } - - /** - * Apply speed and capacity models and apply changes. - */ - private void applyChanges(Link link, String junctionType, Object2DoubleMap features) { - - String type = NetworkUtils.getHighwayType(link); - - FeatureRegressor capacity = switch (junctionType) { - case "traffic_light" -> new Capacity_traffic_light(); - case "right_before_left" -> new Capacity_right_before_left(); - case "priority" -> new Capacity_priority(); - default -> throw new IllegalArgumentException("Unknown type: " + junctionType); - }; - - double perLane = capacity.predict(features); - - double cap = capacityEstimate(features.getDouble("speed")); - - boolean modified = false; - - // Minimum thresholds - double threshold = switch (junctionType) { - // traffic light can reduce capacity at least to 50% (with equal green split) - case "traffic_light" -> 0.4; - case "right_before_left" -> 0.6; - // Motorways are kept at their max theoretical capacity - case "priority" -> type.startsWith("motorway") ? 1 : 0.8; - default -> throw new IllegalArgumentException("Unknown type: " + junctionType); - }; - - if (perLane < cap * threshold) { - log.warn("Increasing capacity per lane on {} ({}, {}) from {} to {}", link.getId(), type, junctionType, perLane, cap * threshold); - perLane = cap * threshold; - modified = true; - } - - link.setCapacity(link.getNumberOfLanes() * perLane); - - double speedFactor = 1.0; - - if (!type.startsWith("motorway")) { - - FeatureRegressor speedModel = switch (junctionType) { - case "traffic_light" -> new Speedrelative_traffic_light(); - case "right_before_left" -> new Speedrelative_right_before_left(); - case "priority" -> new Speedrelative_priority(); - default -> throw new IllegalArgumentException("Unknown type: " + junctionType); - }; - - speedFactor = speedModel.predict(features); - - if (speedFactor > 1) { - log.warn("Reducing speed factor on {} from {} to 1", link.getId(), speedFactor); - speedFactor = 1; - modified = true; - } - - // Threshold for very low speed factors - if (speedFactor < 0.25) { - log.warn("Increasing speed factor on {} from {} to 0.25", link, speedFactor); - speedFactor = 0.25; - modified = true; - } - } - - if (modified) - warn++; - - link.setFreespeed((double) link.getAttributes().getAttribute("allowed_speed") * speedFactor); - link.getAttributes().putAttribute("speed_factor", speedFactor); - } - - record Feature(String junctionType, Object2DoubleMap features) { - } - -} diff --git a/src/main/java/org/matsim/prepare/network/SampleNetwork.java b/src/main/java/org/matsim/prepare/network/SampleNetwork.java deleted file mode 100644 index a3725d76..00000000 --- a/src/main/java/org/matsim/prepare/network/SampleNetwork.java +++ /dev/null @@ -1,294 +0,0 @@ -package org.matsim.prepare.network; - -import it.unimi.dsi.fastutil.objects.Object2DoubleMap; -import it.unimi.dsi.fastutil.objects.Object2DoubleOpenHashMap; -import org.apache.commons.csv.CSVFormat; -import org.apache.commons.csv.CSVPrinter; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; -import org.locationtech.jts.geom.*; -import org.locationtech.jts.io.WKTWriter; -import org.locationtech.jts.simplify.TopologyPreservingSimplifier; -import org.matsim.api.core.v01.Coord; -import org.matsim.api.core.v01.network.Link; -import org.matsim.api.core.v01.network.Network; -import org.matsim.api.core.v01.network.Node; -import org.matsim.api.core.v01.population.Person; -import org.matsim.application.CommandSpec; -import org.matsim.application.MATSimAppCommand; -import org.matsim.application.options.InputOptions; -import org.matsim.application.options.OutputOptions; -import org.matsim.core.config.groups.NetworkConfigGroup; -import org.matsim.core.network.NetworkUtils; -import org.matsim.core.network.algorithms.MultimodalNetworkCleaner; -import org.matsim.core.network.filter.NetworkFilterManager; -import org.matsim.core.router.DijkstraFactory; -import org.matsim.core.router.costcalculators.OnlyTimeDependentTravelDisutility; -import org.matsim.core.router.util.LeastCostPathCalculator; -import org.matsim.core.router.util.TravelTime; -import org.matsim.core.utils.geometry.geotools.MGC; -import org.matsim.prepare.RunOpenBerlinCalibration; -import org.matsim.vehicles.Vehicle; -import picocli.CommandLine; - -import java.io.BufferedWriter; -import java.io.IOException; -import java.nio.file.Files; -import java.util.*; -import java.util.stream.Collectors; - -/** - * Now available in the contrib. - */ -@CommandLine.Command( - name = "sample-network", - description = "Sample nodes and junctions ids from network" -) -@CommandSpec(requireNetwork = true, produces = {"intersections.txt", "edges.txt", "routes.txt"}) -@Deprecated -public class SampleNetwork implements MATSimAppCommand { - private static final Logger log = LogManager.getLogger(SampleNetwork.class); - - @CommandLine.Mixin - private InputOptions input = InputOptions.ofCommand(SampleNetwork.class); - - @CommandLine.Mixin - private OutputOptions output = OutputOptions.ofCommand(SampleNetwork.class); - - @CommandLine.Option(names = "--sample-size", description = "Number of samples to collect for each category.", defaultValue = "5000") - private int sample; - - public static void main(String[] args) { - new SampleNetwork().execute(args); - } - - /** - * Random coord in the same direction as a link. - */ - static Coord rndCoord(SplittableRandom rnd, double dist, Link link) { - - Coord v = link.getFromNode().getCoord(); - Coord u = link.getToNode().getCoord(); - - var angle = Math.atan2(u.getY() - v.getY(), u.getX() - v.getX()); - - var sample = angle + rnd.nextDouble(-0.2, 0.2) * Math.PI * 2; - - var x = Math.cos(sample) * dist; - var y = Math.sin(sample) * dist; - - return new Coord(RunOpenBerlinCalibration.roundNumber(v.getX() + x), RunOpenBerlinCalibration.roundNumber(v.getY() + y)); - } - - /** - * Skip certain nodes to improve class imbalance regarding the allowed speed. - */ - private static double skip(Node node, String key) { - - // all traffic lights are considered - if (key.equals("traffic_light")) - return 1; - - Optional first = node.getInLinks().values().stream().findFirst(); - if (first.isEmpty()) - return 0; - - Link link = first.get(); - - // very long or short links are skipped - if (link.getLength() > 500 || link.getLength() < 15) - return 0; - - double skip = 1; - if (NetworkUtils.getAllowedSpeed(link) == 13.89) - skip = 0.6; - else if (NetworkUtils.getAllowedSpeed(link) == 8.33) - skip = 0.3; - - // Increase samples with more than 1 lane - if (link.getNumberOfLanes() == 1) - skip *= 0.7; - - return skip; - } - - @Override - public Integer call() throws Exception { - - Network network = input.getNetwork(); - - Map> byType = network.getNodes().values().stream().collect(Collectors.groupingBy( - n -> (String) n.getAttributes().getAttribute("type"), Collectors.toList() - )); - - SplittableRandom rnd = new SplittableRandom(0); - - try (BufferedWriter intersections = Files.newBufferedWriter(output.getPath("intersections.txt"))) { - - for (Map.Entry> e : byType.entrySet()) { - - List list = e.getValue(); - - log.info("Sampling {} out of {} intersections for type {}", sample, list.size(), e.getKey()); - - for (int i = 0; i < sample && !list.isEmpty(); i++) { - - Node n = list.remove(rnd.nextInt(0, list.size())); - - // leave out certain links - if (rnd.nextDouble() > skip(n, e.getKey())) { - i--; - continue; - } - - intersections.write(n.getId().toString() + "\n"); - } - } - } - - Map> bySpeed = network.getLinks().values().stream() - .filter(l -> !"traffic_light".equals(l.getToNode().getAttributes().getAttribute("type"))) - .filter(l -> l.getLength() < 500 && l.getLength() > 50) - .collect(Collectors.groupingBy( - n -> (Double) n.getAttributes().getAttribute("allowed_speed"), Collectors.toList() - )); - - try (BufferedWriter links = Files.newBufferedWriter(output.getPath("edges.txt"))) { - - for (Map.Entry> e : bySpeed.entrySet()) { - - List list = e.getValue(); - - if (list.size() < 50) - continue; - - log.info("Sampling {} out of {} links for speed {}", sample / 10, list.size(), e.getKey()); - - // Use longest link segments - list.sort(Comparator.comparingDouble(l -> -l.getLength())); - - for (int i = 0; i < sample / 10 && i < list.size(); i++) { - Link link = list.get(i); - links.write(link.getId().toString() + "\n"); - } - } - } - - Network cityNetwork = createCityNetwork(network); - - RandomizedTravelTime tt = new RandomizedTravelTime(rnd); - - LeastCostPathCalculator router = createRandomizedRouter(network, tt); - - sampleCityRoutes(cityNetwork, router, tt, rnd); - - return 0; - } - - /** - * Samples routes from the network. - */ - private void sampleCityRoutes(Network network, LeastCostPathCalculator router, RandomizedTravelTime tt, SplittableRandom rnd) throws IOException { - - List links = new ArrayList<>(network.getLinks().values()); - - GeometryFactory f = new GeometryFactory(); - WKTWriter w = new WKTWriter(); - w.setPrecisionModel(new PrecisionModel(1)); - - try (CSVPrinter csv = new CSVPrinter(Files.newBufferedWriter(output.getPath("routes.txt")), CSVFormat.DEFAULT)) { - - csv.printRecord("fromEdge", "toEdge", "min_capacity", "travel_time", "geometry"); - - for (int i = 0; i < 3000; i++) { - - Link link = links.get(rnd.nextInt(0, links.size())); - - Coord dest = rndCoord(rnd, 6000, link); - - Link to = NetworkUtils.getNearestLink(network, dest); - - LeastCostPathCalculator.Path path = router.calcLeastCostPath(link.getFromNode(), to.getToNode(), 0, null, null); - - if (path.nodes.size() < 2) { - i--; - continue; - } - - double minCapacity = path.links.stream().mapToDouble(Link::getCapacity).min().orElse(-1); - - LineString lineString = f.createLineString(path.nodes.stream().map(n -> MGC.coord2Point(n.getCoord()).getCoordinate()).toArray(Coordinate[]::new)); - - Polygon polygon = (Polygon) lineString.buffer(100); - - Polygon simplified = (Polygon) TopologyPreservingSimplifier.simplify(polygon, 30); - - csv.print(link.getId()); - csv.print(path.links.get(path.links.size() - 1).getId()); - csv.print(minCapacity); - csv.print(path.travelTime); - csv.print(w.write(simplified)); - - csv.println(); - - // Reset randomness - tt.reset(); - } - - } - } - - /** - * Create network without highways. - */ - private Network createCityNetwork(Network network) { - - NetworkFilterManager filter = new NetworkFilterManager(network, new NetworkConfigGroup()); - filter.addLinkFilter(l -> !NetworkUtils.getHighwayType(l).startsWith("motorway")); - - Network net = filter.applyFilters(); - - MultimodalNetworkCleaner cleaner = new MultimodalNetworkCleaner(net); - cleaner.run(Set.of("car")); - - return net; - } - - /** - * Router with randomization. - */ - private LeastCostPathCalculator createRandomizedRouter(Network network, TravelTime tt) { - - OnlyTimeDependentTravelDisutility util = new OnlyTimeDependentTravelDisutility(tt); - return new DijkstraFactory(false).createPathCalculator(network, util, tt); - } - - private static final class RandomizedTravelTime implements TravelTime { - - private final Object2DoubleMap factors = new Object2DoubleOpenHashMap<>(); - - private final SplittableRandom rnd; - - RandomizedTravelTime(SplittableRandom rnd) { - this.rnd = rnd; - } - - void reset() { - factors.clear(); - } - - @Override - public double getLinkTravelTime(Link link, double time, Person person, Vehicle vehicle) { - String type = NetworkUtils.getHighwayType(link); - - double f = factors.computeIfAbsent(link, l -> rnd.nextDouble(0.5, 1.5)); - // Main roads are avoided - if (type.startsWith("primary") || type.startsWith("secondary")) - f = 1.5; - - double speed = link.getLength() / Math.max(link.getFreespeed(time), 8.3); - return speed * f; - } - } - -} diff --git a/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java b/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java deleted file mode 100644 index 808c24d7..00000000 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_priority.java +++ /dev/null @@ -1,3831 +0,0 @@ -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}; - - @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") - 146.19835633626096) / 105.72932259026847; - data[1] = (ft.getDouble("speed") - 13.76408333576493) / 4.076913004789775; - data[2] = (ft.getDouble("numFoes") - 1.284905605322284) / 1.1453318033366016; - data[3] = (ft.getDouble("numLanes") - 1.2330250065653177) / 0.6202185676684495; - data[4] = (ft.getDouble("junctionSize") - 7.121677219806834) / 4.776491989487674; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - 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[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9832499990483197) { - var0 = params[0]; - } else { - var0 = params[1]; - } - } else { - var0 = params[2]; - } - } else { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 4.118536903904549) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var0 = params[3]; - } else { - var0 = params[4]; - } - } else { - if (input[0] > 0.5799398138713011) { - var0 = params[5]; - } else { - var0 = params[6]; - } - } - } else { - var0 = params[7]; - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.25483333928728746) { - if (input[0] <= -0.8417093210852754) { - if (input[0] <= -1.2643451510070014) { - var0 = params[8]; - } else { - var0 = params[9]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -0.5146477344523274) { - var0 = params[10]; - } else { - var0 = params[11]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var0 = params[12]; - } else { - if (input[4] <= -0.9675881860533706) { - var0 = params[13]; - } else { - if (input[4] > 0.4979224890207059) { - var0 = params[14]; - } else { - if (input[13] > 1.5000000000000002) { - var0 = params[15]; - } else { - var0 = params[16]; - } - } - } - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var0 = params[17]; - } else { - if (input[1] > 1.0524915933192283) { - var0 = params[18]; - } else { - if (input[4] > 1.7540744962270574) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var0 = params[19]; - } else { - if (input[0] > 0.20194628264557038) { - var0 = params[20]; - } else { - var0 = params[21]; - } - } - } else { - var0 = params[22]; - } - } - } - } - } else { - if (input[0] > 0.48791236338146365) { - var0 = params[23]; - } else { - if (input[4] <= -1.1769468539210957) { - var0 = params[24]; - } else { - if (input[0] <= -0.1652649984713819) { - var0 = params[25]; - } else { - var0 = params[26]; - } - } - } - } - } else { - if (input[4] <= -0.7582295181856453) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var0 = params[27]; - } else { - var0 = params[28]; - } - } else { - if (input[0] <= -0.9753524737493459) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var0 = params[29]; - } else { - var0 = params[30]; - } - } else { - var0 = params[31]; - } - } - } - } - double var1; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[1] <= -0.9919474197790644) { - var1 = params[32]; - } else { - if (input[0] <= -0.9917150111951237) { - var1 = params[33]; - } else { - var1 = params[34]; - } - } - } else { - if (input[1] > 3.09693060641752) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var1 = params[35]; - } else { - var1 = params[36]; - } - } else { - if (input[0] > 0.23358367441211783) { - var1 = params[37]; - } else { - var1 = params[38]; - } - } - } - } else { - var1 = params[39]; - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.3718302110816648) { - if (input[0] <= -0.8417093210852754) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var1 = params[40]; - } else { - var1 = params[41]; - } - } else { - var1 = params[42]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -0.5146477344523274) { - var1 = params[43]; - } else { - var1 = params[44]; - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - var1 = params[45]; - } else { - var1 = params[46]; - } - } else { - var1 = params[47]; - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var1 = params[48]; - } else { - if (input[1] > 1.0524915933192283) { - var1 = params[49]; - } else { - if (input[4] > 1.1259984926238817) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var1 = params[50]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.23358367441211783) { - var1 = params[51]; - } else { - var1 = params[52]; - } - } else { - var1 = params[53]; - } - } - } else { - var1 = params[54]; - } - } - } - } - } else { - if (input[0] > 0.6563613760458015) { - var1 = params[55]; - } else { - if (input[4] <= -1.1769468539210957) { - var1 = params[56]; - } else { - if (input[0] <= -0.1652649984713819) { - var1 = params[57]; - } else { - var1 = params[58]; - } - } - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.825914270487328) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.4979224890207059) { - var1 = params[59]; - } else { - var1 = params[60]; - } - } else { - var1 = params[61]; - } - } else { - var1 = params[62]; - } - } else { - var1 = params[63]; - } - } - } - double var2; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[3] > 2.0427879129732376) { - var2 = params[64]; - } else { - var2 = params[65]; - } - } else { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 4.118536903904549) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var2 = params[66]; - } else { - var2 = params[67]; - } - } else { - if (input[0] > 0.6134215378932977) { - var2 = params[68]; - } else { - var2 = params[69]; - } - } - } else { - var2 = params[70]; - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.25483333928728746) { - if (input[1] > 1.0524915933192283) { - var2 = params[71]; - } else { - if (input[0] <= -0.8417093210852754) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var2 = params[72]; - } else { - var2 = params[73]; - } - } else { - if (input[2] <= -0.6853084870564866) { - if (input[4] <= -0.9675881860533706) { - var2 = params[74]; - } else { - var2 = params[75]; - } - } else { - if (input[4] <= -0.9675881860533706) { - var2 = params[76]; - } else { - var2 = params[77]; - } - } - } - } else { - if (input[4] > 0.4979224890207059) { - var2 = params[78]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - var2 = params[79]; - } else { - var2 = params[80]; - } - } else { - var2 = params[81]; - } - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var2 = params[82]; - } else { - if (input[1] > 1.0524915933192283) { - var2 = params[83]; - } else { - if (input[4] > 1.7540744962270574) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var2 = params[84]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var2 = params[85]; - } else { - var2 = params[86]; - } - } - } else { - var2 = params[87]; - } - } - } - } - } else { - if (input[0] > 0.6563613760458015) { - var2 = params[88]; - } else { - if (input[4] <= -1.1769468539210957) { - var2 = params[89]; - } else { - if (input[0] <= -0.1652649984713819) { - var2 = params[90]; - } else { - var2 = params[91]; - } - } - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.825914270487328) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var2 = params[92]; - } else { - var2 = params[93]; - } - } else { - var2 = params[94]; - } - } else { - var2 = params[95]; - } - } - } - double var3; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5734772043440838) { - if (input[4] <= -0.13015351458246976) { - var3 = params[96]; - } else { - if (input[1] > 1.0524915933192283) { - var3 = params[97]; - } else { - var3 = params[98]; - } - } - } else { - if (input[1] > 2.4150421293433446) { - var3 = params[99]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var3 = params[100]; - } else { - if (input[0] > 0.23358367441211783) { - var3 = params[101]; - } else { - var3 = params[102]; - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.7909192482044504) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var3 = params[103]; - } else { - var3 = params[104]; - } - } else { - if (input[1] > 0.3718295343692867) { - var3 = params[105]; - } else { - if (input[0] <= -0.10293602635133768) { - var3 = params[106]; - } else { - var3 = params[107]; - } - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - if (input[0] <= -0.36284500265768266) { - var3 = params[108]; - } else { - var3 = params[109]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.6989228896330851) { - var3 = params[110]; - } else { - var3 = params[111]; - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.9166398247561565) { - if (input[0] > 0.31624759191275303) { - var3 = params[112]; - } else { - var3 = params[113]; - } - } else { - if (input[0] <= -0.22295949466747736) { - var3 = params[114]; - } else { - var3 = params[115]; - } - } - } else { - var3 = params[116]; - } - } - } - } else { - if (input[1] > 1.7331536522691693) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var3 = params[117]; - } else { - var3 = params[118]; - } - } else { - if (input[0] <= -0.22295949466747736) { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - var3 = params[119]; - } else { - var3 = params[120]; - } - } else { - if (input[13] > 1.5000000000000002) { - var3 = params[121]; - } else { - var3 = params[122]; - } - } - } else { - var3 = params[123]; - } - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9364796246729602) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var3 = params[124]; - } else { - var3 = params[125]; - } - } else { - var3 = params[126]; - } - } else { - var3 = params[127]; - } - } - } - double var4; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9917150111951237) { - var4 = params[128]; - } else { - var4 = params[129]; - } - } else { - var4 = params[130]; - } - } else { - if (input[1] > 3.09693060641752) { - var4 = params[131]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var4 = params[132]; - } else { - if (input[0] > 0.676034253437257) { - var4 = params[133]; - } else { - var4 = params[134]; - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.25483333928728746) { - if (input[1] > 1.0524915933192283) { - var4 = params[135]; - } else { - if (input[0] <= -0.8417093210852754) { - var4 = params[136]; - } else { - if (input[4] > 0.4979224890207059) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var4 = params[137]; - } else { - var4 = params[138]; - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - var4 = params[139]; - } else { - var4 = params[140]; - } - } else { - var4 = params[141]; - } - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var4 = params[142]; - } else { - if (input[13] > 1.5000000000000002) { - var4 = params[143]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var4 = params[144]; - } else { - if (input[1] > 1.0524915933192283) { - var4 = params[145]; - } else { - if (input[4] > 1.7540744962270574) { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.20194628264557038) { - var4 = params[146]; - } else { - var4 = params[147]; - } - } else { - var4 = params[148]; - } - } else { - var4 = params[149]; - } - } - } - } - } - } - } else { - if (input[0] > 0.5058827802294276) { - if (input[1] > 0.3718295343692867) { - var4 = params[150]; - } else { - if (input[4] <= -1.1769468539210957) { - var4 = params[151]; - } else { - var4 = params[152]; - } - } - } else { - var4 = params[153]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9684480504340754) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var4 = params[154]; - } else { - var4 = params[155]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var4 = params[156]; - } else { - if (input[0] <= -0.2706283898852349) { - var4 = params[157]; - } else { - var4 = params[158]; - } - } - } - } else { - var4 = params[159]; - } - } - } - double var5; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.5984304269964432) { - if (input[1] > 5.5485404367615425) { - var5 = params[160]; - } else { - var5 = params[161]; - } - } else { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 4.118536903904549) { - var5 = params[162]; - } else { - if (input[0] <= -0.9917150111951237) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var5 = params[163]; - } else { - var5 = params[164]; - } - } else { - var5 = params[165]; - } - } - } else { - if (input[4] <= -0.7582295181856453) { - var5 = params[166]; - } else { - var5 = params[167]; - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var5 = params[168]; - } else { - var5 = params[169]; - } - } else { - if (input[1] > 0.3718295343692867) { - var5 = params[170]; - } else { - var5 = params[171]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.5488708503179202) { - if (input[0] > 0.06480362775321215) { - var5 = params[172]; - } else { - var5 = params[173]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.3432032171846993) { - var5 = params[174]; - } else { - var5 = params[175]; - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.9166398247561565) { - var5 = params[176]; - } else { - if (input[0] <= -0.3718302110816648) { - var5 = params[177]; - } else { - var5 = params[178]; - } - } - } else { - var5 = params[179]; - } - } - } - } else { - if (input[1] > 1.7331536522691693) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var5 = params[180]; - } else { - var5 = params[181]; - } - } else { - if (input[0] <= -0.21520384108046123) { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - var5 = params[182]; - } else { - var5 = params[183]; - } - } else { - if (input[13] > 1.5000000000000002) { - var5 = params[184]; - } else { - var5 = params[185]; - } - } - } else { - if (input[13] > 1.5000000000000002) { - var5 = params[186]; - } else { - var5 = params[187]; - } - } - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9064974028792516) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var5 = params[188]; - } else { - var5 = params[189]; - } - } else { - var5 = params[190]; - } - } else { - var5 = params[191]; - } - } - } - double var6; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5591954520070176) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.0177248250540192) { - var6 = params[192]; - } else { - var6 = params[193]; - } - } else { - var6 = params[194]; - } - } else { - if (input[1] > 3.09693060641752) { - var6 = params[195]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[196]; - } else { - var6 = params[197]; - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.2372412470045436) { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -0.5146477344523274) { - if (input[0] <= -1.172979768506299) { - var6 = params[198]; - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[199]; - } else { - var6 = params[200]; - } - } - } else { - var6 = params[201]; - } - } else { - if (input[0] <= -0.765098596628165) { - if (input[0] <= -1.2864771380723887) { - if (input[2] <= -0.6853084870564866) { - var6 = params[202]; - } else { - var6 = params[203]; - } - } else { - var6 = params[204]; - } - } else { - if (input[4] > 0.4979224890207059) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[205]; - } else { - var6 = params[206]; - } - } else { - var6 = params[207]; - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var6 = params[208]; - } else { - if (input[1] > 1.0524915933192283) { - var6 = params[209]; - } else { - if (input[4] > 1.7540744962270574) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[210]; - } else { - if (input[0] > 0.5633408235722607) { - var6 = params[211]; - } else { - var6 = params[212]; - } - } - } else { - var6 = params[213]; - } - } - } - } - } else { - if (input[0] > 0.09918387261760682) { - if (input[1] > 0.3718295343692867) { - var6 = params[214]; - } else { - if (input[0] > 1.301688503170326) { - var6 = params[215]; - } else { - var6 = params[216]; - } - } - } else { - var6 = params[217]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.1137719740493224) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[218]; - } else { - var6 = params[219]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var6 = params[220]; - } else { - if (input[0] <= -0.2706283898852349) { - var6 = params[221]; - } else { - var6 = params[222]; - } - } - } - } else { - var6 = params[223]; - } - } - } - double var7; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[224]; - } else { - if (input[1] > 4.118536903904549) { - if (input[3] > 3.655122744803958) { - var7 = params[225]; - } else { - var7 = params[226]; - } - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - var7 = params[227]; - } else { - var7 = params[228]; - } - } else { - if (input[3] > 2.0427879129732376) { - if (input[4] <= -0.33951218245019493) { - var7 = params[229]; - } else { - var7 = params[230]; - } - } else { - var7 = params[231]; - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 1.7331536522691693) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[232]; - } else { - var7 = params[233]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 0.3718295343692867) { - var7 = params[234]; - } else { - var7 = params[235]; - } - } else { - var7 = params[236]; - } - } else { - var7 = params[237]; - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var7 = params[238]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[239]; - } else { - var7 = params[240]; - } - } - } else { - if (input[13] > 1.5000000000000002) { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[241]; - } else { - var7 = params[242]; - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[243]; - } else { - var7 = params[244]; - } - } else { - var7 = params[245]; - } - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] <= -0.6853084870564866) { - var7 = params[246]; - } else { - var7 = params[247]; - } - } else { - var7 = params[248]; - } - } - } - } - } - } - } else { - if (input[4] <= -1.1769468539210957) { - var7 = params[249]; - } else { - if (input[1] > 0.3718295343692867) { - var7 = params[250]; - } else { - var7 = params[251]; - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[252]; - } else { - var7 = params[253]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var7 = params[254]; - } else { - var7 = params[255]; - } - } - } - } - double var8; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.5984304269964432) { - if (input[1] > 5.5485404367615425) { - var8 = params[256]; - } else { - var8 = params[257]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var8 = params[258]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var8 = params[259]; - } else { - if (input[1] > 3.09693060641752) { - var8 = params[260]; - } else { - if (input[0] <= -0.647155913420737) { - if (input[3] > 2.0427879129732376) { - if (input[4] <= -0.33951218245019493) { - var8 = params[261]; - } else { - var8 = params[262]; - } - } else { - if (input[4] <= -0.9675881860533706) { - var8 = params[263]; - } else { - var8 = params[264]; - } - } - } else { - var8 = params[265]; - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.3800114798045537) { - if (input[1] > 1.7331536522691693) { - if (input[4] <= -0.9675881860533706) { - var8 = params[266]; - } else { - var8 = params[267]; - } - } else { - var8 = params[268]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[1] > 2.4150421293433446) { - var8 = params[269]; - } else { - var8 = params[270]; - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var8 = params[271]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.2754358294396135) { - var8 = params[272]; - } else { - var8 = params[273]; - } - } else { - if (input[0] > 0.15063601348756742) { - var8 = params[274]; - } else { - var8 = params[275]; - } - } - } - } else { - var8 = params[276]; - } - } - } - } else { - if (input[0] > 0.08698290538925213) { - if (input[1] > 0.3718295343692867) { - var8 = params[277]; - } else { - if (input[0] > 1.5496802556722316) { - var8 = params[278]; - } else { - var8 = params[279]; - } - } - } else { - var8 = params[280]; - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9064974028792516) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var8 = params[281]; - } else { - var8 = params[282]; - } - } else { - var8 = params[283]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var8 = params[284]; - } else { - if (input[0] <= -0.5667619433114235) { - if (input[4] <= -0.7582295181856453) { - var8 = params[285]; - } else { - var8 = params[286]; - } - } else { - var8 = params[287]; - } - } - } - } - } - double var9; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[288]; - } else { - if (input[1] > 4.118536903904549) { - var9 = params[289]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[290]; - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - var9 = params[291]; - } else { - var9 = params[292]; - } - } else { - var9 = params[293]; - } - } - } - } - } else { - if (input[1] <= -0.9919474197790644) { - if (input[4] <= -0.7582295181856453) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[294]; - } else { - var9 = params[295]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[296]; - } else { - var9 = params[297]; - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 1.0524915933192283) { - if (input[1] > 2.4150421293433446) { - var9 = params[298]; - } else { - var9 = params[299]; - } - } else { - if (input[13] > 1.5000000000000002) { - if (input[2] <= -0.6853084870564866) { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[300]; - } else { - var9 = params[301]; - } - } else { - var9 = params[302]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[303]; - } else { - var9 = params[304]; - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[305]; - } else { - if (input[2] <= -0.6853084870564866) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 0.3718295343692867) { - var9 = params[306]; - } else { - var9 = params[307]; - } - } else { - var9 = params[308]; - } - } else { - var9 = params[309]; - } - } - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.5488708503179202) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var9 = params[310]; - } else { - var9 = params[311]; - } - } else { - var9 = params[312]; - } - } else { - var9 = params[313]; - } - } - } else { - if (input[4] <= -0.7582295181856453) { - var9 = params[314]; - } else { - if (input[1] > 0.3718295343692867) { - var9 = params[315]; - } else { - var9 = params[316]; - } - } - } - } - } - } - } else { - if (input[4] <= -1.1769468539210957) { - var9 = params[317]; - } else { - if (input[1] > 0.3718295343692867) { - var9 = params[318]; - } else { - var9 = params[319]; - } - } - } - } - } - double var10; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.676034253437257) { - var10 = params[320]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var10 = params[321]; - } else { - if (input[1] <= -0.9919474197790644) { - var10 = params[322]; - } else { - if (input[0] <= -0.647155913420737) { - if (input[2] <= -0.6853084870564866) { - if (input[0] <= -1.008739616630037) { - var10 = params[323]; - } else { - var10 = params[324]; - } - } else { - if (input[1] > 1.0524915933192283) { - var10 = params[325]; - } else { - var10 = params[326]; - } - } - } else { - if (input[1] > 3.09693060641752) { - var10 = params[327]; - } else { - if (input[4] <= -0.13015351458246976) { - var10 = params[328]; - } else { - if (input[0] <= -0.12223057917757284) { - var10 = params[329]; - } else { - var10 = params[330]; - } - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.3326736185813639) { - if (input[1] > 1.7331536522691693) { - var10 = params[331]; - } else { - if (input[4] > 0.4979224890207059) { - if (input[4] > 1.335357160491607) { - var10 = params[332]; - } else { - var10 = params[333]; - } - } else { - if (input[0] <= -1.2864771380723887) { - var10 = params[334]; - } else { - var10 = params[335]; - } - } - } - } else { - if (input[1] > 2.4150421293433446) { - var10 = params[336]; - } else { - if (input[13] > 1.5000000000000002) { - var10 = params[337]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var10 = params[338]; - } else { - var10 = params[339]; - } - } else { - var10 = params[340]; - } - } - } - } - } else { - if (input[0] > 1.642558936433815) { - var10 = params[341]; - } else { - if (input[4] <= -1.1769468539210957) { - var10 = params[342]; - } else { - if (input[0] <= -0.3718302110816648) { - var10 = params[343]; - } else { - if (input[1] > 0.3718295343692867) { - var10 = params[344]; - } else { - var10 = params[345]; - } - } - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.7725705067912659) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var10 = params[346]; - } else { - var10 = params[347]; - } - } else { - var10 = params[348]; - } - } else { - if (input[0] <= -0.6705647458937428) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var10 = params[349]; - } else { - var10 = params[350]; - } - } else { - var10 = params[351]; - } - } - } - } - double var11; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.676034253437257) { - var11 = params[352]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var11 = params[353]; - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.008739616630037) { - var11 = params[354]; - } else { - if (input[1] > 3.09693060641752) { - var11 = params[355]; - } else { - if (input[0] <= -0.19203146146071792) { - if (input[2] <= -0.6853084870564866) { - if (input[3] > 2.0427879129732376) { - var11 = params[356]; - } else { - var11 = params[357]; - } - } else { - if (input[1] > 1.0524915933192283) { - var11 = params[358]; - } else { - var11 = params[359]; - } - } - } else { - var11 = params[360]; - } - } - } - } else { - var11 = params[361]; - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.22295949466747736) { - if (input[1] > 1.7331536522691693) { - var11 = params[362]; - } else { - if (input[0] <= -0.8471477367103172) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var11 = params[363]; - } else { - var11 = params[364]; - } - } else { - var11 = params[365]; - } - } else { - if (input[4] > 0.4979224890207059) { - var11 = params[366]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var11 = params[367]; - } else { - if (input[13] > 1.5000000000000002) { - var11 = params[368]; - } else { - var11 = params[369]; - } - } - } - } - } - } else { - if (input[1] > 1.0524915933192283) { - var11 = params[370]; - } else { - var11 = params[371]; - } - } - } else { - if (input[0] > 0.7192578350136761) { - if (input[1] > 0.3718295343692867) { - var11 = params[372]; - } else { - var11 = params[373]; - } - } else { - if (input[4] <= -1.1769468539210957) { - var11 = params[374]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var11 = params[375]; - } else { - if (input[0] <= -0.5146477344523274) { - var11 = params[376]; - } else { - var11 = params[377]; - } - } - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9364796246729602) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var11 = params[378]; - } else { - var11 = params[379]; - } - } else { - var11 = params[380]; - } - } else { - if (input[0] <= -0.6705647458937428) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var11 = params[381]; - } else { - var11 = params[382]; - } - } else { - var11 = params[383]; - } - } - } - } - double var12; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.7192578350136761) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[384]; - } else { - var12 = params[385]; - } - } else { - if (input[1] <= -0.9919474197790644) { - var12 = params[386]; - } else { - if (input[0] <= -1.008739616630037) { - var12 = params[387]; - } else { - if (input[1] > 3.09693060641752) { - var12 = params[388]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[389]; - } else { - var12 = params[390]; - } - } else { - if (input[0] <= -0.20754276863475016) { - var12 = params[391]; - } else { - var12 = params[392]; - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.550777730430866) { - if (input[4] > 0.4979224890207059) { - if (input[4] > 1.335357160491607) { - var12 = params[393]; - } else { - var12 = params[394]; - } - } else { - if (input[0] <= -1.2864771380723887) { - var12 = params[395]; - } else { - var12 = params[396]; - } - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] > 0.1628842712865746) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[397]; - } else { - var12 = params[398]; - } - } else { - var12 = params[399]; - } - } else { - if (input[4] > 0.4979224890207059) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[400]; - } else { - if (input[0] > 0.30470869267353407) { - var12 = params[401]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[402]; - } else { - var12 = params[403]; - } - } - } - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[404]; - } else { - var12 = params[405]; - } - } - } - } - } else { - if (input[0] > 1.642558936433815) { - var12 = params[406]; - } else { - if (input[4] <= -1.1769468539210957) { - var12 = params[407]; - } else { - if (input[0] <= -0.39500259070140803) { - var12 = params[408]; - } else { - var12 = params[409]; - } - } - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.1137719740493224) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[410]; - } else { - var12 = params[411]; - } - } else { - if (input[0] > 0.08698290538925213) { - var12 = params[412]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var12 = params[413]; - } else { - var12 = params[414]; - } - } - } - } else { - var12 = params[415]; - } - } - } - double var13; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 1.0379962812117778) { - var13 = params[416]; - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.1464497583702258) { - var13 = params[417]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.112914336759023) { - if (input[0] <= -0.9364796246729602) { - var13 = params[418]; - } else { - if (input[0] <= -0.7990532263566867) { - var13 = params[419]; - } else { - var13 = params[420]; - } - } - } else { - var13 = params[421]; - } - } else { - if (input[4] > 0.7072811568884312) { - var13 = params[422]; - } else { - var13 = params[423]; - } - } - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[4] > 0.2885638211529807) { - var13 = params[424]; - } else { - var13 = params[425]; - } - } else { - if (input[0] <= -0.647155913420737) { - var13 = params[426]; - } else { - var13 = params[427]; - } - } - } - } - } else { - if (input[0] > 0.06480362775321215) { - if (input[1] > 2.4150421293433446) { - var13 = params[428]; - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var13 = params[429]; - } else { - var13 = params[430]; - } - } - } else { - if (input[1] <= -0.9919474197790644) { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9364796246729602) { - var13 = params[431]; - } else { - var13 = params[432]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var13 = params[433]; - } else { - var13 = params[434]; - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.172979768506299) { - var13 = params[435]; - } else { - var13 = params[436]; - } - } else { - if (input[0] <= -0.550777730430866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var13 = params[437]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var13 = params[438]; - } else { - var13 = params[439]; - } - } - } else { - if (input[4] > 0.7072811568884312) { - var13 = params[440]; - } else { - if (input[4] <= -1.1769468539210957) { - var13 = params[441]; - } else { - var13 = params[442]; - } - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var13 = params[443]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var13 = params[444]; - } else { - var13 = params[445]; - } - } - } else { - var13 = params[446]; - } - } - } - } else { - var13 = params[447]; - } - } - } - } - double var14; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[448]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[449]; - } else { - if (input[1] > 3.09693060641752) { - var14 = params[450]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.13015351458246976) { - var14 = params[451]; - } else { - if (input[3] > 3.655122744803958) { - var14 = params[452]; - } else { - var14 = params[453]; - } - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.4979224890207059) { - var14 = params[454]; - } else { - var14 = params[455]; - } - } else { - var14 = params[456]; - } - } - } - } - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[1] > 0.3718295343692867) { - var14 = params[457]; - } else { - var14 = params[458]; - } - } else { - var14 = params[459]; - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 1.0524915933192283) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[460]; - } else { - if (input[1] > 1.7331536522691693) { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - var14 = params[461]; - } else { - var14 = params[462]; - } - } else { - if (input[4] <= -0.9675881860533706) { - var14 = params[463]; - } else { - var14 = params[464]; - } - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[465]; - } else { - if (input[4] <= -0.7582295181856453) { - var14 = params[466]; - } else { - var14 = params[467]; - } - } - } else { - if (input[2] <= -0.6853084870564866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[468]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[469]; - } else { - if (input[4] <= -0.9675881860533706) { - var14 = params[470]; - } else { - var14 = params[471]; - } - } - } - } else { - if (input[4] <= -0.9675881860533706) { - var14 = params[472]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[473]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[474]; - } else { - var14 = params[475]; - } - } - } - } - } - } - } else { - if (input[4] <= -1.1769468539210957) { - var14 = params[476]; - } else { - var14 = params[477]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var14 = params[478]; - } else { - var14 = params[479]; - } - } - } - double var15; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.7192578350136761) { - var15 = params[480]; - } else { - if (input[1] <= -0.9919474197790644) { - var15 = params[481]; - } else { - if (input[0] <= -1.008739616630037) { - if (input[1] > 1.0524915933192283) { - var15 = params[482]; - } else { - if (input[1] > 0.3718295343692867) { - var15 = params[483]; - } else { - if (input[3] > 3.655122744803958) { - var15 = params[484]; - } else { - var15 = params[485]; - } - } - } - } else { - if (input[1] > 3.09693060641752) { - var15 = params[486]; - } else { - if (input[3] > 2.0427879129732376) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.868523074645264) { - var15 = params[487]; - } else { - var15 = params[488]; - } - } else { - var15 = params[489]; - } - } else { - var15 = params[490]; - } - } - } - } - } - } else { - if (input[0] > 0.09918387261760682) { - if (input[1] > 2.4150421293433446) { - var15 = params[491]; - } else { - var15 = params[492]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.123939446739618) { - var15 = params[493]; - } else { - var15 = params[494]; - } - } else { - if (input[0] <= -1.0688932225000645) { - var15 = params[495]; - } else { - var15 = params[496]; - } - } - } else { - if (input[0] <= -0.18385019273782902) { - var15 = params[497]; - } else { - var15 = params[498]; - } - } - } else { - if (input[13] > 2.5000000000000004) { - var15 = params[499]; - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.1464497583702258) { - var15 = params[500]; - } else { - var15 = params[501]; - } - } else { - if (input[0] <= -0.550777730430866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var15 = params[502]; - } else { - var15 = params[503]; - } - } else { - var15 = params[504]; - } - } else { - if (input[2] > 1.0609103764846841) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var15 = params[505]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var15 = params[506]; - } else { - var15 = params[507]; - } - } - } else { - var15 = params[508]; - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var15 = params[509]; - } else { - if (input[0] <= -0.8471477367103172) { - var15 = params[510]; - } else { - var15 = params[511]; - } - } - } - } - } - double var16; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.112914336759023) { - if (input[4] <= -0.13015351458246976) { - if (input[3] > 3.655122744803958) { - var16 = params[512]; - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.6048781432573686) { - var16 = params[513]; - } else { - var16 = params[514]; - } - } else { - var16 = params[515]; - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var16 = params[516]; - } else { - if (input[4] > 0.4979224890207059) { - var16 = params[517]; - } else { - var16 = params[518]; - } - } - } - } else { - if (input[0] > 1.7473548409998372) { - var16 = params[519]; - } else { - if (input[1] > 3.09693060641752) { - var16 = params[520]; - } else { - var16 = params[521]; - } - } - } - } else { - if (input[0] > 0.06480362775321215) { - if (input[1] > 0.3718295343692867) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var16 = params[522]; - } else { - var16 = params[523]; - } - } else { - var16 = params[524]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[4] > 1.544715828359332) { - var16 = params[525]; - } else { - var16 = params[526]; - } - } else { - if (input[1] > 1.7331536522691693) { - if (input[4] <= -0.9675881860533706) { - var16 = params[527]; - } else { - var16 = params[528]; - } - } else { - if (input[4] > 0.4979224890207059) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var16 = params[529]; - } else { - var16 = params[530]; - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.5488708503179202) { - if (input[2] <= -0.6853084870564866) { - var16 = params[531]; - } else { - var16 = params[532]; - } - } else { - var16 = params[533]; - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - var16 = params[534]; - } else { - var16 = params[535]; - } - } else { - var16 = params[536]; - } - } - } else { - if (input[0] <= -1.027845007173662) { - if (input[4] <= -0.7582295181856453) { - var16 = params[537]; - } else { - var16 = params[538]; - } - } else { - if (input[4] <= -0.13015351458246976) { - var16 = params[539]; - } else { - var16 = params[540]; - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var16 = params[541]; - } else { - if (input[0] <= -0.9010116966835572) { - var16 = params[542]; - } else { - var16 = params[543]; - } - } - } - } - } - double var17; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.112914336759023) { - if (input[4] <= -0.13015351458246976) { - if (input[3] > 3.655122744803958) { - var17 = params[544]; - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.708066168421205) { - var17 = params[545]; - } else { - var17 = params[546]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var17 = params[547]; - } else { - var17 = params[548]; - } - } else { - var17 = params[549]; - } - } - } else { - var17 = params[550]; - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var17 = params[551]; - } else { - if (input[4] > 0.4979224890207059) { - var17 = params[552]; - } else { - var17 = params[553]; - } - } - } - } else { - if (input[0] > 1.7473548409998372) { - var17 = params[554]; - } else { - if (input[1] > 3.09693060641752) { - var17 = params[555]; - } else { - var17 = params[556]; - } - } - } - } else { - if (input[0] > 0.06480362775321215) { - if (input[1] > 2.4150421293433446) { - var17 = params[557]; - } else { - var17 = params[558]; - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[4] > 0.2885638211529807) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var17 = params[559]; - } else { - var17 = params[560]; - } - } else { - if (input[0] <= -1.2492121683981894) { - var17 = params[561]; - } else { - if (input[0] <= -0.6261589000510103) { - var17 = params[562]; - } else { - var17 = params[563]; - } - } - } - } else { - if (input[1] > 1.0524915933192283) { - var17 = params[564]; - } else { - if (input[4] > 0.4979224890207059) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var17 = params[565]; - } else { - if (input[4] > 0.9166398247561565) { - var17 = params[566]; - } else { - var17 = params[567]; - } - } - } else { - if (input[0] <= -0.5667619433114235) { - if (input[4] <= -1.1769468539210957) { - var17 = params[568]; - } else { - var17 = params[569]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var17 = params[570]; - } else { - var17 = params[571]; - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.2885638211529807) { - var17 = params[572]; - } else { - var17 = params[573]; - } - } else { - if (input[0] <= -0.9010116966835572) { - var17 = params[574]; - } else { - var17 = params[575]; - } - } - } - } - } - double var18; - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.9917150111951237) { - var18 = params[576]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[577]; - } else { - if (input[0] > 1.0379962812117778) { - var18 = params[578]; - } else { - if (input[1] > 3.09693060641752) { - var18 = params[579]; - } else { - if (input[3] > 2.0427879129732376) { - if (input[4] > 1.1259984926238817) { - var18 = params[580]; - } else { - var18 = params[581]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[582]; - } else { - var18 = params[583]; - } - } else { - var18 = params[584]; - } - } - } - } - } - } - } else { - if (input[0] > 0.09918387261760682) { - var18 = params[585]; - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[4] > 0.2885638211529807) { - if (input[0] <= -1.1059690298916538) { - var18 = params[586]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[587]; - } else { - var18 = params[588]; - } - } - } else { - if (input[0] <= -0.22295949466747736) { - var18 = params[589]; - } else { - var18 = params[590]; - } - } - } else { - if (input[13] > 2.5000000000000004) { - var18 = params[591]; - } else { - if (input[1] > 1.7331536522691693) { - var18 = params[592]; - } else { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[593]; - } else { - var18 = params[594]; - } - } else { - if (input[0] <= -1.2643451510070014) { - var18 = params[595]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[596]; - } else { - var18 = params[597]; - } - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.7990532263566867) { - var18 = params[598]; - } else { - var18 = params[599]; - } - } else { - if (input[0] <= -0.8770826679333733) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[600]; - } else { - var18 = params[601]; - } - } else { - var18 = params[602]; - } - } - } else { - if (input[0] > 0.0109396677799722) { - var18 = params[603]; - } else { - var18 = params[604]; - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var18 = params[605]; - } else { - if (input[0] <= -0.6418120789370002) { - var18 = params[606]; - } else { - var18 = params[607]; - } - } - } - } - } - double var19; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.08487102836206846) { - if (input[2] <= -0.6853084870564866) { - var19 = params[608]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var19 = params[609]; - } else { - var19 = params[610]; - } - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.7909192482044504) { - var19 = params[611]; - } else { - var19 = params[612]; - } - } else { - if (input[4] > 0.4979224890207059) { - var19 = params[613]; - } else { - if (input[4] <= -0.33951218245019493) { - var19 = params[614]; - } else { - var19 = params[615]; - } - } - } - } - } - } else { - var19 = params[616]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.172979768506299) { - var19 = params[617]; - } else { - var19 = params[618]; - } - } else { - var19 = params[619]; - } - } else { - if (input[0] <= -0.550777730430866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.13015351458246976) { - if (input[1] <= -0.9919474197790644) { - var19 = params[620]; - } else { - if (input[4] <= -0.7582295181856453) { - var19 = params[621]; - } else { - var19 = params[622]; - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.1059690298916538) { - var19 = params[623]; - } else { - var19 = params[624]; - } - } else { - var19 = params[625]; - } - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[0] <= -0.6705647458937428) { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - var19 = params[626]; - } else { - var19 = params[627]; - } - } else { - var19 = params[628]; - } - } else { - if (input[0] <= -1.2643451510070014) { - var19 = params[629]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var19 = params[630]; - } else { - if (input[0] <= -1.0950921986415703) { - var19 = params[631]; - } else { - var19 = params[632]; - } - } - } - } - } else { - var19 = params[633]; - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var19 = params[634]; - } else { - if (input[1] <= -0.9919474197790644) { - var19 = params[635]; - } else { - if (input[0] > 1.7473548409998372) { - var19 = params[636]; - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var19 = params[637]; - } else { - var19 = params[638]; - } - } else { - var19 = params[639]; - } - } - } - } - } - } - } - double var20; - if (input[0] > 0.13701632913963654) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[640]; - } else { - if (input[1] > 0.3718295343692867) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[641]; - } else { - if (input[0] > 2.8250123650298575) { - var20 = params[642]; - } else { - var20 = params[643]; - } - } - } else { - var20 = params[644]; - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[4] > 0.2885638211529807) { - if (input[0] <= -1.0950921986415703) { - var20 = params[645]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[646]; - } else { - var20 = params[647]; - } - } - } else { - var20 = params[648]; - } - } else { - if (input[3] > 2.0427879129732376) { - var20 = params[649]; - } else { - if (input[13] > 2.5000000000000004) { - var20 = params[650]; - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.172979768506299) { - var20 = params[651]; - } else { - if (input[0] <= -0.7578158487476743) { - if (input[4] > 0.2885638211529807) { - var20 = params[652]; - } else { - var20 = params[653]; - } - } else { - var20 = params[654]; - } - } - } else { - if (input[0] <= -0.8471477367103172) { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[4] <= -1.1769468539210957) { - var20 = params[655]; - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[656]; - } else { - if (input[0] <= -1.2329442120937164) { - var20 = params[657]; - } else { - var20 = params[658]; - } - } - } - } else { - var20 = params[659]; - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[660]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[661]; - } else { - var20 = params[662]; - } - } - } - } else { - if (input[4] > 1.1259984926238817) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[663]; - } else { - if (input[0] <= -0.5146477344523274) { - var20 = params[664]; - } else { - if (input[0] <= -0.3547110245054463) { - var20 = params[665]; - } else { - if (input[0] <= -0.30921749553770533) { - var20 = params[666]; - } else { - var20 = params[667]; - } - } - } - } - } else { - var20 = params[668]; - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var20 = params[669]; - } else { - if (input[0] <= -0.8471477367103172) { - var20 = params[670]; - } else { - var20 = params[671]; - } - } - } - } - double var21; - if (input[0] > 0.13701632913963654) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var21 = params[672]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - var21 = params[673]; - } else { - var21 = params[674]; - } - } - } else { - if (input[1] > 1.7331536522691693) { - var21 = params[675]; - } else { - var21 = params[676]; - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[4] > 0.2885638211529807) { - if (input[0] <= -1.0950921986415703) { - var21 = params[677]; - } else { - var21 = params[678]; - } - } else { - var21 = params[679]; - } - } else { - if (input[3] > 2.0427879129732376) { - var21 = params[680]; - } else { - if (input[1] > 3.09693060641752) { - var21 = params[681]; - } else { - if (input[13] > 2.5000000000000004) { - var21 = params[682]; - } else { - if (input[0] <= -0.8546669374440706) { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.0950921986415703) { - var21 = params[683]; - } else { - var21 = params[684]; - } - } else { - if (input[4] <= -1.1769468539210957) { - var21 = params[685]; - } else { - var21 = params[686]; - } - } - } else { - var21 = params[687]; - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var21 = params[688]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 0.3718295343692867) { - var21 = params[689]; - } else { - var21 = params[690]; - } - } else { - var21 = params[691]; - } - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 1.0524915933192283) { - var21 = params[692]; - } else { - var21 = params[693]; - } - } else { - var21 = params[694]; - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var21 = params[695]; - } else { - if (input[0] > 0.0109396677799722) { - if (input[0] > 0.043995776666095825) { - var21 = params[696]; - } else { - var21 = params[697]; - } - } else { - var21 = params[698]; - } - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var21 = params[699]; - } else { - var21 = params[700]; - } - } - } - } - } - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var21 = params[701]; - } else { - if (input[0] <= -0.8471477367103172) { - var21 = params[702]; - } else { - var21 = params[703]; - } - } - } - } - double var22; - if (input[0] <= -0.19203146146071792) { - if (input[3] > 2.0427879129732376) { - var22 = params[704]; - } else { - if (input[1] <= -0.9919474197790644) { - if (input[0] <= -1.2492121683981894) { - var22 = params[705]; - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.7725705067912659) { - var22 = params[706]; - } else { - var22 = params[707]; - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[708]; - } else { - var22 = params[709]; - } - } else { - var22 = params[710]; - } - } - } - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 2.5000000000000004) { - var22 = params[711]; - } else { - if (input[0] <= -0.8471477367103172) { - if (input[1] > 1.7331536522691693) { - var22 = params[712]; - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[713]; - } else { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[714]; - } else { - if (input[0] <= -1.0950921986415703) { - var22 = params[715]; - } else { - if (input[0] <= -0.9753524737493459) { - var22 = params[716]; - } else { - var22 = params[717]; - } - } - } - } - } else { - var22 = params[718]; - } - } - } else { - var22 = params[719]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[720]; - } else { - var22 = params[721]; - } - } - } - } - } else { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 4.118536903904549) { - var22 = params[722]; - } else { - var22 = params[723]; - } - } else { - var22 = params[724]; - } - } else { - var22 = params[725]; - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] > 2.8250123650298575) { - var22 = params[726]; - } else { - var22 = params[727]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[728]; - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 2.900298953508697) { - var22 = params[729]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var22 = params[730]; - } else { - if (input[0] > 0.32986727626068385) { - var22 = params[731]; - } else { - if (input[0] <= -0.04845728895961467) { - var22 = params[732]; - } else { - var22 = params[733]; - } - } - } - } - } else { - var22 = params[734]; - } - } else { - var22 = params[735]; - } - } - } - } - } - double var23; - if (input[0] > 0.13701632913963654) { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var23 = params[736]; - } else { - var23 = params[737]; - } - } else { - if (input[1] > 1.7331536522691693) { - var23 = params[738]; - } else { - var23 = params[739]; - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 2.382150499830233) { - var23 = params[740]; - } else { - var23 = params[741]; - } - } else { - if (input[1] <= -0.9919474197790644) { - var23 = params[742]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.1652649984713819) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - var23 = params[743]; - } else { - var23 = params[744]; - } - } else { - var23 = params[745]; - } - } else { - if (input[0] <= -1.1137719740493224) { - var23 = params[746]; - } else { - if (input[3] > 3.655122744803958) { - var23 = params[747]; - } else { - var23 = params[748]; - } - } - } - } - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.2164398029359809) { - var23 = params[749]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var23 = params[750]; - } else { - if (input[3] > 3.655122744803958) { - var23 = params[751]; - } else { - if (input[0] <= -0.7578158487476743) { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var23 = params[752]; - } else { - if (input[0] <= -0.8338117957863016) { - var23 = params[753]; - } else { - var23 = params[754]; - } - } - } else { - var23 = params[755]; - } - } - } - } - } else { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.7072811568884312) { - if (input[0] <= -0.9364796246729602) { - var23 = params[756]; - } else { - var23 = params[757]; - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.38838191081005285) { - var23 = params[758]; - } else { - var23 = params[759]; - } - } else { - var23 = params[760]; - } - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var23 = params[761]; - } else { - var23 = params[762]; - } - } else { - if (input[0] <= -0.8063359742371775) { - if (input[4] <= -0.5488708503179202) { - var23 = params[763]; - } else { - if (input[4] <= -0.13015351458246976) { - var23 = params[764]; - } else { - if (input[4] > 0.2885638211529807) { - var23 = params[765]; - } else { - var23 = params[766]; - } - } - } - } else { - var23 = params[767]; - } - } - } - } - } - } - double var24; - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.6775164597796659) { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] > 0.9166398247561565) { - var24 = params[768]; - } else { - var24 = params[769]; - } - } else { - if (input[0] <= -1.2864771380723887) { - var24 = params[770]; - } else { - var24 = params[771]; - } - } - } else { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var24 = params[772]; - } else { - var24 = params[773]; - } - } else { - if (input[4] <= -0.9675881860533706) { - var24 = params[774]; - } else { - var24 = params[775]; - } - } - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - if (input[0] <= -0.2706283898852349) { - var24 = params[776]; - } else { - var24 = params[777]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 1.2313201340393503) { - var24 = params[778]; - } else { - if (input[0] <= -0.46262810673453636) { - var24 = params[779]; - } else { - var24 = params[780]; - } - } - } else { - if (input[0] <= -1.1137719740493224) { - var24 = params[781]; - } else { - if (input[4] <= -0.9675881860533706) { - if (input[0] > 0.6989228896330851) { - var24 = params[782]; - } else { - if (input[0] <= -0.05730062567163916) { - var24 = params[783]; - } else { - var24 = params[784]; - } - } - } else { - if (input[1] > 4.118536903904549) { - var24 = params[785]; - } else { - if (input[0] > 0.32986727626068385) { - var24 = params[786]; - } else { - if (input[3] > 3.655122744803958) { - var24 = params[787]; - } else { - var24 = params[788]; - } - } - } - } - } - } - } - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - if (input[0] <= -1.1464497583702258) { - var24 = params[789]; - } else { - if (input[1] > 0.3718295343692867) { - var24 = params[790]; - } else { - var24 = params[791]; - } - } - } else { - var24 = params[792]; - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[1] > 1.7331536522691693) { - if (input[0] > 0.05501447962813694) { - var24 = params[793]; - } else { - var24 = params[794]; - } - } else { - var24 = params[795]; - } - } else { - if (input[3] > 3.655122744803958) { - var24 = params[796]; - } else { - if (input[0] <= -1.2492121683981894) { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - var24 = params[797]; - } else { - var24 = params[798]; - } - } else { - var24 = params[799]; - } - } - } - } - } - } - double var25; - if (input[0] > 0.7192578350136761) { - var25 = params[800]; - } else { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 1.5000000000000002) { - if (input[4] <= -0.13015351458246976) { - var25 = params[801]; - } else { - var25 = params[802]; - } - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.14918620444951916) { - var25 = params[803]; - } else { - var25 = params[804]; - } - } else { - var25 = params[805]; - } - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 4.118536903904549) { - if (input[1] > 5.5485404367615425) { - var25 = params[806]; - } else { - var25 = params[807]; - } - } else { - if (input[4] <= -1.1769468539210957) { - var25 = params[808]; - } else { - var25 = params[809]; - } - } - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] <= -0.6853084870564866) { - var25 = params[810]; - } else { - var25 = params[811]; - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[1] > 1.7331536522691693) { - if (input[0] <= -0.7725705067912659) { - var25 = params[812]; - } else { - var25 = params[813]; - } - } else { - if (input[2] <= -0.6853084870564866) { - if (input[0] <= -1.2329442120937164) { - var25 = params[814]; - } else { - var25 = params[815]; - } - } else { - var25 = params[816]; - } - } - } else { - if (input[0] <= -1.1341069194299134) { - var25 = params[817]; - } else { - var25 = params[818]; - } - } - } - } - } else { - if (input[4] > 2.800867835565684) { - var25 = params[819]; - } else { - if (input[0] <= -0.6705647458937428) { - var25 = params[820]; - } else { - if (input[4] <= -0.13015351458246976) { - var25 = params[821]; - } else { - if (input[0] <= -0.6336308102141113) { - var25 = params[822]; - } else { - var25 = params[823]; - } - } - } - } - } - } - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var25 = params[824]; - } else { - if (input[0] <= -0.9684480504340754) { - var25 = params[825]; - } else { - var25 = params[826]; - } - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var25 = params[827]; - } else { - var25 = params[828]; - } - } - } - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - var25 = params[829]; - } else { - if (input[0] <= -0.8471477367103172) { - var25 = params[830]; - } else { - var25 = params[831]; - } - } - } - } - double var26; - if (input[0] <= -0.5976426859475304) { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var26 = params[832]; - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - var26 = params[833]; - } else { - if (input[1] > 1.0524915933192283) { - if (input[0] <= -1.1341069194299134) { - var26 = params[834]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - var26 = params[835]; - } else { - var26 = params[836]; - } - } - } else { - var26 = params[837]; - } - } - } - } else { - var26 = params[838]; - } - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var26 = params[839]; - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] <= -0.6853084870564866) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var26 = params[840]; - } else { - var26 = params[841]; - } - } else { - var26 = params[842]; - } - } else { - var26 = params[843]; - } - } - } - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[13] > 1.5000000000000002) { - var26 = params[844]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.7582295181856453) { - var26 = params[845]; - } else { - var26 = params[846]; - } - } else { - if (input[1] > 3.09693060641752) { - if (input[0] <= -0.07602769165004397) { - var26 = params[847]; - } else { - var26 = params[848]; - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] <= -0.9919474197790644) { - var26 = params[849]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.36284500265768266) { - var26 = params[850]; - } else { - if (input[0] > 1.7473548409998372) { - var26 = params[851]; - } else { - var26 = params[852]; - } - } - } else { - if (input[0] <= -0.5361176535285793) { - if (input[0] <= -0.550777730430866) { - var26 = params[853]; - } else { - var26 = params[854]; - } - } else { - if (input[0] > 0.32986727626068385) { - var26 = params[855]; - } else { - if (input[0] > 0.0109396677799722) { - if (input[0] > 0.043995776666095825) { - var26 = params[856]; - } else { - var26 = params[857]; - } - } else { - if (input[0] <= -0.3718302110816648) { - if (input[0] <= -0.4240862916527185) { - var26 = params[858]; - } else { - var26 = params[859]; - } - } else { - var26 = params[860]; - } - } - } - } - } - } - } else { - if (input[4] <= -0.33951218245019493) { - var26 = params[861]; - } else { - var26 = params[862]; - } - } - } - } - } - } else { - var26 = params[863]; - } - } - double var27; - if (input[0] > 0.7192578350136761) { - var27 = params[864]; - } else { - if (input[4] > 2.800867835565684) { - var27 = params[865]; - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[7] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5976426859475304) { - if (input[4] <= -1.1769468539210957) { - var27 = params[866]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.0177248250540192) { - if (input[4] <= -0.7582295181856453) { - if (input[0] <= -1.2164398029359809) { - var27 = params[867]; - } else { - var27 = params[868]; - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - var27 = params[869]; - } else { - var27 = params[870]; - } - } - } else { - if (input[0] <= -0.9291968767924694) { - var27 = params[871]; - } else { - if (input[0] <= -0.6261589000510103) { - var27 = params[872]; - } else { - var27 = params[873]; - } - } - } - } else { - var27 = params[874]; - } - } - } else { - if (input[1] > 1.0524915933192283) { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[3] > 3.655122744803958) { - if (input[0] > 0.06480362775321215) { - var27 = params[875]; - } else { - var27 = params[876]; - } - } else { - if (input[4] <= -0.9675881860533706) { - var27 = params[877]; - } else { - if (input[0] <= -0.5361176535285793) { - var27 = params[878]; - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.2795190171679119) { - var27 = params[879]; - } else { - var27 = params[880]; - } - } else { - if (input[0] <= -0.2628727362982188) { - var27 = params[881]; - } else { - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - var27 = params[882]; - } else { - var27 = params[883]; - } - } - } - } - } - } - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - var27 = params[884]; - } else { - var27 = params[885]; - } - } - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.13216159901460575) { - var27 = params[886]; - } else { - var27 = params[887]; - } - } else { - var27 = params[888]; - } - } else { - var27 = params[889]; - } - } - } - } else { - if (input[4] <= -1.1769468539210957) { - var27 = params[890]; - } else { - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - var27 = params[891]; - } else { - var27 = params[892]; - } - } - } - } else { - if (input[9] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -1.2492121683981894) { - var27 = params[893]; - } else { - var27 = params[894]; - } - } else { - var27 = params[895]; - } - } - } - } - double var28; - if (input[3] > 0.000000000000000000000000000000000010000000180025095) { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - var28 = params[896]; - } else { - if (input[0] > 1.7473548409998372) { - var28 = params[897]; - } else { - if (input[1] > 0.000000000000000000000000000000000010000000180025095) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[1] > 3.09693060641752) { - var28 = params[898]; - } else { - if (input[0] <= -1.0769326195109958) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var28 = params[899]; - } else { - var28 = params[900]; - } - } else { - if (input[1] > 1.7331536522691693) { - var28 = params[901]; - } else { - var28 = params[902]; - } - } - } - } else { - if (input[4] > 0.7072811568884312) { - var28 = params[903]; - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.3254854518421782) { - var28 = params[904]; - } else { - var28 = params[905]; - } - } else { - if (input[3] > 3.655122744803958) { - if (input[0] <= -1.053003590760812) { - var28 = params[906]; - } else { - if (input[0] <= -0.9291968767924694) { - var28 = params[907]; - } else { - var28 = params[908]; - } - } - } else { - if (input[0] <= -1.2492121683981894) { - if (input[0] <= -1.2864771380723887) { - var28 = params[909]; - } else { - var28 = params[910]; - } - } else { - if (input[4] <= -1.1769468539210957) { - var28 = params[911]; - } else { - var28 = params[912]; - } - } - } - } - } - } - } else { - var28 = params[913]; - } - } - } - } else { - if (input[1] > 3.09693060641752) { - if (input[0] > 2.8250123650298575) { - var28 = params[914]; - } else { - var28 = params[915]; - } - } else { - if (input[0] > 0.6989228896330851) { - var28 = params[916]; - } else { - if (input[5] > 0.000000000000000000000000000000000010000000180025095) { - var28 = params[917]; - } else { - if (input[11] > 0.000000000000000000000000000000000010000000180025095) { - if (input[4] <= -0.9675881860533706) { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] > 0.06480362775321215) { - var28 = params[918]; - } else { - if (input[0] <= -1.053003590760812) { - var28 = params[919]; - } else { - var28 = params[920]; - } - } - } else { - if (input[2] <= -0.6853084870564866) { - var28 = params[921]; - } else { - var28 = params[922]; - } - } - } else { - var28 = params[923]; - } - } else { - if (input[6] > 0.000000000000000000000000000000000010000000180025095) { - var28 = params[924]; - } else { - if (input[4] <= -0.9675881860533706) { - var28 = params[925]; - } else { - if (input[1] > 1.0524915933192283) { - var28 = params[926]; - } else { - var28 = params[927]; - } - } - } - } - } - } - } - } - double var29; - if (input[12] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.10293602635133768) { - if (input[4] <= -0.9675881860533706) { - var29 = params[928]; - } else { - var29 = params[929]; - } - } else { - var29 = params[930]; - } - } else { - if (input[13] > 0.000000000000000000000000000000000010000000180025095) { - if (input[2] <= -0.6853084870564866) { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var29 = params[931]; - } else { - var29 = params[932]; - } - } else { - if (input[4] <= -0.33951218245019493) { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - var29 = params[933]; - } else { - var29 = params[934]; - } - } else { - var29 = params[935]; - } - } - } else { - if (input[1] <= -0.9919474197790644) { - var29 = params[936]; - } else { - if (input[10] > 0.000000000000000000000000000000000010000000180025095) { - if (input[0] <= -0.5437787259742904) { - var29 = params[937]; - } else { - if (input[0] > 1.2313201340393503) { - var29 = params[938]; - } else { - var29 = params[939]; - } - } - } else { - if (input[3] > 3.655122744803958) { - var29 = params[940]; - } else { - if (input[1] > 4.118536903904549) { - if (input[0] > 0.033260817127969806) { - var29 = params[941]; - } else { - var29 = params[942]; - } - } else { - if (input[4] <= -0.9675881860533706) { - if (input[2] <= -0.6853084870564866) { - if (input[0] <= -1.1137719740493224) { - if (input[1] > 1.0524915933192283) { - var29 = params[943]; - } else { - var29 = params[944]; - } - } else { - if (input[0] <= -1.0769326195109958) { - var29 = params[945]; - } else { - if (input[13] <= -0.000000000000000000000000000000000010000000180025095) { - var29 = params[946]; - } else { - var29 = params[947]; - } - } - } - } else { - var29 = params[948]; - } - } else { - if (input[0] <= -1.1137719740493224) { - if (input[8] > 0.000000000000000000000000000000000010000000180025095) { - var29 = params[949]; - } else { - var29 = params[950]; - } - } else { - if (input[0] <= -1.0603809197826077) { - if (input[4] > 0.2885638211529807) { - var29 = params[951]; - } else { - var29 = params[952]; - } - } else { - if (input[0] <= -0.6184978276052994) { - if (input[0] <= -0.6705647458937428) { - var29 = params[953]; - } else { - var29 = params[954]; - } - } else { - if (input[0] <= -0.5361176535285793) { - var29 = params[955]; - } else { - if (input[1] > 1.0524915933192283) { - if (input[3] > 2.0427879129732376) { - var29 = params[956]; - } else { - var29 = params[957]; - } - } else { - if (input[2] > 0.000000000000000000000000000000000010000000180025095) { - 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/Speedrelative_right_before_left.java b/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java deleted file mode 100644 index ff85f16f..00000000 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_right_before_left.java +++ /dev/null @@ -1,1827 +0,0 @@ -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}; - - @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") - 133.10125331063188) / 78.97094374399138; - data[1] = (ft.getDouble("speed") - 8.333418463866819) / 0.13514417432622952; - data[2] = (ft.getDouble("numFoes") - 2.239973514945138) / 0.6527240855058805; - data[3] = (ft.getDouble("numLanes") - 1.007094211123723) / 0.09043758661115839; - data[4] = (ft.getDouble("junctionSize") - 10.936152099886492) / 3.8735682630465176; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - 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.1051058769226074) { - if (input[6] <= 0.5) { - if (input[3] <= 16.507580757141113) { - if (input[0] <= -1.3007474541664124) { - var0 = params[0]; - } else { - var0 = params[1]; - } - } else { - var0 = params[2]; - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -1.4498529434204102) { - var0 = params[3]; - } else { - var0 = params[4]; - } - } else { - if (input[0] <= -1.2934029698371887) { - var0 = params[5]; - } else { - var0 = params[6]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.45138441026210785) { - if (input[7] <= 0.5) { - var0 = params[7]; - } else { - var0 = params[8]; - } - } else { - if (input[1] <= 20.545328298583627) { - var0 = params[9]; - } else { - var0 = params[10]; - } - } - } else { - if (input[0] <= -0.6253091394901276) { - if (input[0] <= -0.6280316710472107) { - var0 = params[11]; - } else { - var0 = params[12]; - } - } else { - if (input[0] <= 0.8570715188980103) { - var0 = params[13]; - } else { - var0 = params[14]; - } - } - } - } - double var1; - if (input[0] <= -1.1047260165214539) { - if (input[6] <= 0.5) { - if (input[4] <= -1.919716238975525) { - if (input[0] <= -1.1063088178634644) { - var1 = params[15]; - } else { - var1 = params[16]; - } - } else { - if (input[4] <= -1.403396487236023) { - var1 = params[17]; - } else { - var1 = params[18]; - } - } - } else { - if (input[4] <= -1.5324764251708984) { - if (input[7] <= 0.5) { - var1 = params[19]; - } else { - var1 = params[20]; - } - } else { - if (input[0] <= -1.314866542816162) { - var1 = params[21]; - } else { - var1 = params[22]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.9077547788619995) { - if (input[4] <= -0.3707568794488907) { - var1 = params[23]; - } else { - var1 = params[24]; - } - } else { - if (input[0] <= -0.8595725297927856) { - var1 = params[25]; - } else { - var1 = params[26]; - } - } - } else { - if (input[0] <= -0.6498751640319824) { - if (input[12] <= 0.5) { - var1 = params[27]; - } else { - var1 = params[28]; - } - } else { - if (input[0] <= 0.7061932384967804) { - var1 = params[29]; - } else { - var1 = params[30]; - } - } - } - } - double var2; - if (input[0] <= -1.2157161831855774) { - if (input[6] <= 0.5) { - if (input[4] <= -1.919716238975525) { - if (input[4] <= -2.177876114845276) { - var2 = params[31]; - } else { - var2 = params[32]; - } - } else { - if (input[0] <= -1.567047894001007) { - var2 = params[33]; - } else { - var2 = params[34]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[7] <= 0.5) { - var2 = params[35]; - } else { - var2 = params[36]; - } - } else { - if (input[5] <= 0.5) { - var2 = params[37]; - } else { - var2 = params[38]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= 4.217991352081299) { - if (input[1] <= 20.545328298583627) { - var2 = params[39]; - } else { - var2 = params[40]; - } - } else { - var2 = params[41]; - } - } else { - if (input[0] <= -0.6553834974765778) { - if (input[12] <= 0.5) { - var2 = params[42]; - } else { - var2 = params[43]; - } - } else { - if (input[0] <= 0.6136908531188965) { - var2 = params[44]; - } else { - var2 = params[45]; - } - } - } - } - double var3; - if (input[0] <= -0.8563434779644012) { - if (input[6] <= 0.5) { - if (input[0] <= -1.2232505679130554) { - if (input[4] <= -1.919716238975525) { - var3 = params[46]; - } else { - var3 = params[47]; - } - } else { - if (input[7] <= 0.5) { - var3 = params[48]; - } else { - var3 = params[49]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -0.9815794229507446) { - var3 = params[50]; - } else { - var3 = params[51]; - } - } else { - if (input[0] <= -1.2356602549552917) { - var3 = params[52]; - } else { - var3 = params[53]; - } - } - } - } else { - if (input[1] <= 30.830639839172363) { - if (input[0] <= 0.8461181223392487) { - if (input[6] <= 0.5) { - var3 = params[54]; - } else { - var3 = params[55]; - } - } else { - if (input[0] <= 0.9087360799312592) { - var3 = params[56]; - } else { - var3 = params[57]; - } - } - } else { - var3 = params[58]; - } - } - double var4; - if (input[0] <= -1.0086146593093872) { - if (input[6] <= 0.5) { - if (input[4] <= -1.661556363105774) { - if (input[13] <= -0.5) { - var4 = params[59]; - } else { - var4 = params[60]; - } - } else { - if (input[0] <= -1.274345338344574) { - var4 = params[61]; - } else { - var4 = params[62]; - } - } - } else { - if (input[0] <= -1.314866542816162) { - if (input[4] <= -1.5324764251708984) { - var4 = params[63]; - } else { - var4 = params[64]; - } - } else { - if (input[4] <= -1.403396487236023) { - var4 = params[65]; - } else { - var4 = params[66]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= 1.2864699959754944) { - var4 = params[67]; - } else { - var4 = params[68]; - } - } else { - if (input[13] <= -0.5) { - var4 = params[69]; - } else { - var4 = params[70]; - } - } - } else { - if (input[0] <= 0.7018245458602905) { - if (input[0] <= -0.9565069079399109) { - var4 = params[71]; - } else { - var4 = params[72]; - } - } else { - if (input[4] <= -1.5324764251708984) { - var4 = params[73]; - } else { - var4 = params[74]; - } - } - } - } - double var5; - if (input[0] <= -0.8548872768878937) { - if (input[6] <= 0.5) { - if (input[13] <= -0.5) { - if (input[4] <= -2.177876114845276) { - var5 = params[75]; - } else { - var5 = params[76]; - } - } else { - if (input[4] <= -1.919716238975525) { - var5 = params[77]; - } else { - var5 = params[78]; - } - } - } else { - if (input[0] <= -1.111817181110382) { - if (input[3] <= 5.450231730937958) { - var5 = params[79]; - } else { - var5 = params[80]; - } - } else { - if (input[0] <= -1.0847819447517395) { - var5 = params[81]; - } else { - var5 = params[82]; - } - } - } - } else { - if (input[1] <= 20.545328298583627) { - if (input[6] <= 0.5) { - if (input[0] <= -0.7834686040878296) { - var5 = params[83]; - } else { - var5 = params[84]; - } - } else { - if (input[0] <= -0.48563751578330994) { - var5 = params[85]; - } else { - var5 = params[86]; - } - } - } else { - var5 = params[87]; - } - } - double var6; - if (input[0] <= -1.005195677280426) { - if (input[4] <= -0.628916785120964) { - if (input[5] <= 0.5) { - if (input[3] <= 5.450231730937958) { - var6 = params[88]; - } else { - var6 = params[89]; - } - } else { - if (input[0] <= -1.1810198426246643) { - var6 = params[90]; - } else { - var6 = params[91]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.1175788640975952) { - var6 = params[92]; - } else { - var6 = params[93]; - } - } else { - if (input[0] <= -1.2956823110580444) { - var6 = params[94]; - } else { - var6 = params[95]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= 4.217991352081299) { - var6 = params[96]; - } else { - var6 = params[97]; - } - } else { - if (input[0] <= -0.6404412686824799) { - var6 = params[98]; - } else { - var6 = params[99]; - } - } - } else { - if (input[0] <= 0.4344477206468582) { - if (input[0] <= -0.6612084209918976) { - var6 = params[100]; - } else { - var6 = params[101]; - } - } else { - if (input[7] <= 0.5) { - var6 = params[102]; - } else { - var6 = params[103]; - } - } - } - } - double var7; - if (input[0] <= -1.0085513591766357) { - if (input[6] <= 0.5) { - if (input[5] <= 0.5) { - if (input[3] <= 16.507580757141113) { - var7 = params[104]; - } else { - var7 = params[105]; - } - } else { - if (input[2] <= -2.6657105684280396) { - var7 = params[106]; - } else { - var7 = params[107]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -1.0409683585166931) { - var7 = params[108]; - } else { - var7 = params[109]; - } - } else { - if (input[4] <= -1.016156643629074) { - var7 = params[110]; - } else { - var7 = params[111]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= 3.8902758359909058) { - if (input[0] <= -0.9906966984272003) { - var7 = params[112]; - } else { - var7 = params[113]; - } - } else { - var7 = params[114]; - } - } else { - if (input[0] <= -0.6476591229438782) { - if (input[0] <= -0.7535208463668823) { - var7 = params[115]; - } else { - var7 = params[116]; - } - } else { - if (input[1] <= 30.830639839172363) { - var7 = params[117]; - } else { - var7 = params[118]; - } - } - } - } - double var8; - if (input[0] <= -1.1095378994941711) { - if (input[2] <= -1.133669689297676) { - if (input[3] <= 16.507580757141113) { - if (input[4] <= -1.919716238975525) { - var8 = params[119]; - } else { - var8 = params[120]; - } - } else { - var8 = params[121]; - } - } else { - if (input[0] <= -1.2979615926742554) { - if (input[6] <= 0.5) { - var8 = params[122]; - } else { - var8 = params[123]; - } - } else { - if (input[0] <= -1.1265061497688293) { - var8 = params[124]; - } else { - var8 = params[125]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.0758545994758606) { - if (input[0] <= -1.0857316851615906) { - var8 = params[126]; - } else { - var8 = params[127]; - } - } else { - if (input[3] <= 5.450231730937958) { - var8 = params[128]; - } else { - var8 = params[129]; - } - } - } else { - if (input[0] <= 0.45166924595832825) { - if (input[0] <= -0.8577364087104797) { - var8 = params[130]; - } else { - var8 = params[131]; - } - } else { - if (input[7] <= 0.5) { - var8 = params[132]; - } else { - var8 = params[133]; - } - } - } - } - double var9; - if (input[0] <= -1.008741319179535) { - if (input[6] <= 0.5) { - if (input[4] <= -0.628916785120964) { - if (input[3] <= 5.450231730937958) { - var9 = params[134]; - } else { - var9 = params[135]; - } - } else { - if (input[0] <= -1.0114638209342957) { - var9 = params[136]; - } else { - var9 = params[137]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -1.3244270086288452) { - var9 = params[138]; - } else { - var9 = params[139]; - } - } else { - if (input[4] <= -1.016156643629074) { - var9 = params[140]; - } else { - var9 = params[141]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[4] <= -0.3707568794488907) { - if (input[0] <= 0.6772585511207581) { - var9 = params[142]; - } else { - var9 = params[143]; - } - } else { - if (input[0] <= 0.2858487665653229) { - var9 = params[144]; - } else { - var9 = params[145]; - } - } - } else { - if (input[0] <= -0.6472792625427246) { - if (input[4] <= 2.4690020084381104) { - var9 = params[146]; - } else { - var9 = params[147]; - } - } else { - if (input[0] <= 0.6519327759742737) { - var9 = params[148]; - } else { - var9 = params[149]; - } - } - } - } - double var10; - if (input[0] <= -1.228442370891571) { - if (input[4] <= -1.661556363105774) { - if (input[8] <= 0.5) { - if (input[0] <= -1.3532984256744385) { - var10 = params[150]; - } else { - var10 = params[151]; - } - } else { - var10 = params[152]; - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.4902475476264954) { - var10 = params[153]; - } else { - var10 = params[154]; - } - } else { - if (input[0] <= -1.3146132826805115) { - var10 = params[155]; - } else { - var10 = params[156]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[13] <= 0.5) { - if (input[1] <= 20.545328298583627) { - var10 = params[157]; - } else { - var10 = params[158]; - } - } else { - if (input[0] <= -0.763967752456665) { - var10 = params[159]; - } else { - var10 = params[160]; - } - } - } else { - if (input[0] <= -0.6249925792217255) { - if (input[0] <= -0.6280316710472107) { - var10 = params[161]; - } else { - var10 = params[162]; - } - } else { - if (input[0] <= 1.2350586652755737) { - var10 = params[163]; - } else { - var10 = params[164]; - } - } - } - } - double var11; - if (input[0] <= -1.1651912927627563) { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[4] <= -1.919716238975525) { - var11 = params[165]; - } else { - var11 = params[166]; - } - } else { - if (input[4] <= -1.5324764251708984) { - var11 = params[167]; - } else { - var11 = params[168]; - } - } - } else { - if (input[0] <= -1.2691535353660583) { - if (input[0] <= -1.4550447463989258) { - var11 = params[169]; - } else { - var11 = params[170]; - } - } else { - if (input[4] <= -0.628916785120964) { - var11 = params[171]; - } else { - var11 = params[172]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[1] <= 20.545328298583627) { - if (input[13] <= 1.5) { - var11 = params[173]; - } else { - var11 = params[174]; - } - } else { - var11 = params[175]; - } - } else { - if (input[0] <= -0.5590822398662567) { - if (input[0] <= -1.1631651520729065) { - var11 = params[176]; - } else { - var11 = params[177]; - } - } else { - if (input[1] <= 30.830639839172363) { - var11 = params[178]; - } else { - var11 = params[179]; - } - } - } - } - double var12; - if (input[0] <= -1.0568602681159973) { - if (input[4] <= -0.628916785120964) { - if (input[7] <= 0.5) { - if (input[4] <= -1.5324764251708984) { - var12 = params[180]; - } else { - var12 = params[181]; - } - } else { - if (input[13] <= -0.5) { - var12 = params[182]; - } else { - var12 = params[183]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.0625585913658142) { - var12 = params[184]; - } else { - var12 = params[185]; - } - } else { - if (input[0] <= -1.5740758180618286) { - var12 = params[186]; - } else { - var12 = params[187]; - } - } - } - } else { - if (input[0] <= 0.5139706432819366) { - if (input[6] <= 0.5) { - if (input[1] <= 20.545328298583627) { - var12 = params[188]; - } else { - var12 = params[189]; - } - } else { - if (input[0] <= -0.5450897812843323) { - var12 = params[190]; - } else { - var12 = params[191]; - } - } - } else { - if (input[0] <= 0.5236577391624451) { - if (input[5] <= 0.5) { - var12 = params[192]; - } else { - var12 = params[193]; - } - } else { - if (input[7] <= 0.5) { - var12 = params[194]; - } else { - var12 = params[195]; - } - } - } - } - double var13; - if (input[0] <= -0.8563434779644012) { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[4] <= -0.3707568794488907) { - var13 = params[196]; - } else { - var13 = params[197]; - } - } else { - if (input[0] <= -1.1465768218040466) { - var13 = params[198]; - } else { - var13 = params[199]; - } - } - } else { - if (input[0] <= -1.29099702835083) { - if (input[2] <= -2.6657105684280396) { - var13 = params[200]; - } else { - var13 = params[201]; - } - } else { - if (input[2] <= -1.133669689297676) { - var13 = params[202]; - } else { - var13 = params[203]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.5379352271556854) { - if (input[0] <= -0.5415441691875458) { - var13 = params[204]; - } else { - var13 = params[205]; - } - } else { - if (input[0] <= 4.024438858032227) { - var13 = params[206]; - } else { - var13 = params[207]; - } - } - } else { - if (input[0] <= -0.4812055081129074) { - if (input[0] <= -0.8421610593795776) { - var13 = params[208]; - } else { - var13 = params[209]; - } - } else { - if (input[7] <= 0.5) { - var13 = params[210]; - } else { - var13 = params[211]; - } - } - } - } - double var14; - if (input[0] <= -0.8596358299255371) { - if (input[6] <= 0.5) { - if (input[5] <= 0.5) { - if (input[3] <= 5.450231730937958) { - var14 = params[212]; - } else { - var14 = params[213]; - } - } else { - if (input[0] <= -1.3018237948417664) { - var14 = params[214]; - } else { - var14 = params[215]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[4] <= -1.661556363105774) { - var14 = params[216]; - } else { - var14 = params[217]; - } - } else { - if (input[0] <= -1.2979615926742554) { - var14 = params[218]; - } else { - var14 = params[219]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= 0.5618363618850708) { - if (input[9] <= 0.5) { - var14 = params[220]; - } else { - var14 = params[221]; - } - } else { - if (input[0] <= 0.8989856541156769) { - var14 = params[222]; - } else { - var14 = params[223]; - } - } - } else { - if (input[0] <= 0.6518694758415222) { - if (input[0] <= -0.6355660855770111) { - var14 = params[224]; - } else { - var14 = params[225]; - } - } else { - if (input[0] <= 1.8887167572975159) { - var14 = params[226]; - } else { - var14 = params[227]; - } - } - } - } - double var15; - if (input[0] <= -1.1047260165214539) { - if (input[4] <= -1.661556363105774) { - if (input[13] <= -0.5) { - var15 = params[228]; - } else { - if (input[4] <= -1.919716238975525) { - var15 = params[229]; - } else { - var15 = params[230]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.295935571193695) { - var15 = params[231]; - } else { - var15 = params[232]; - } - } else { - if (input[0] <= -1.2906171679496765) { - var15 = params[233]; - } else { - var15 = params[234]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[7] <= 0.5) { - if (input[0] <= -0.5164716523140669) { - var15 = params[235]; - } else { - var15 = params[236]; - } - } else { - if (input[4] <= 0.016482964158058167) { - var15 = params[237]; - } else { - var15 = params[238]; - } - } - } else { - if (input[0] <= -0.6553834974765778) { - if (input[12] <= 0.5) { - var15 = params[239]; - } else { - var15 = params[240]; - } - } else { - if (input[7] <= 0.5) { - var15 = params[241]; - } else { - var15 = params[242]; - } - } - } - } - double var16; - if (input[0] <= -0.8562168478965759) { - if (input[6] <= 0.5) { - if (input[4] <= -0.3707568794488907) { - if (input[7] <= 0.5) { - var16 = params[243]; - } else { - var16 = params[244]; - } - } else { - var16 = params[245]; - } - } else { - if (input[0] <= -1.2295820116996765) { - if (input[0] <= -1.2462337613105774) { - var16 = params[246]; - } else { - var16 = params[247]; - } - } else { - if (input[2] <= -1.133669689297676) { - var16 = params[248]; - } else { - var16 = params[249]; - } - } - } - } else { - if (input[1] <= 20.545328298583627) { - if (input[0] <= 0.7021411061286926) { - if (input[6] <= 0.5) { - var16 = params[250]; - } else { - var16 = params[251]; - } - } else { - if (input[0] <= 0.7029008865356445) { - var16 = params[252]; - } else { - var16 = params[253]; - } - } - } else { - var16 = params[254]; - } - } - double var17; - if (input[0] <= -1.2201481461524963) { - if (input[8] <= 0.5) { - if (input[6] <= 0.5) { - if (input[0] <= -1.5065193176269531) { - var17 = params[255]; - } else { - var17 = params[256]; - } - } else { - if (input[4] <= -1.919716238975525) { - var17 = params[257]; - } else { - var17 = params[258]; - } - } - } else { - if (input[0] <= -1.2585167288780212) { - if (input[0] <= -1.2837791442871094) { - var17 = params[259]; - } else { - var17 = params[260]; - } - } else { - var17 = params[261]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[9] <= 0.5) { - var17 = params[262]; - } else { - var17 = params[263]; - } - } else { - if (input[0] <= -1.1211877465248108) { - var17 = params[264]; - } else { - var17 = params[265]; - } - } - } else { - if (input[0] <= -0.6608918607234955) { - if (input[3] <= 5.450231730937958) { - var17 = params[266]; - } else { - var17 = params[267]; - } - } else { - if (input[0] <= 0.6421823501586914) { - var17 = params[268]; - } else { - var17 = params[269]; - } - } - } - } - double var18; - if (input[0] <= -0.8577364087104797) { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= -1.2636452317237854) { - var18 = params[270]; - } else { - var18 = params[271]; - } - } else { - if (input[0] <= -0.9790468513965607) { - var18 = params[272]; - } else { - var18 = params[273]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -1.3244270086288452) { - var18 = params[274]; - } else { - var18 = params[275]; - } - } else { - if (input[0] <= -1.3780543804168701) { - var18 = params[276]; - } else { - var18 = params[277]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.7834686040878296) { - if (input[9] <= 0.5) { - var18 = params[278]; - } else { - var18 = params[279]; - } - } else { - if (input[3] <= 5.450231730937958) { - var18 = params[280]; - } else { - var18 = params[281]; - } - } - } else { - if (input[0] <= -0.485067680478096) { - if (input[0] <= -0.8490623235702515) { - var18 = params[282]; - } else { - var18 = params[283]; - } - } else { - if (input[7] <= 0.5) { - var18 = params[284]; - } else { - var18 = params[285]; - } - } - } - } - double var19; - if (input[0] <= -1.005195677280426) { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= -1.0191248655319214) { - var19 = params[286]; - } else { - var19 = params[287]; - } - } else { - if (input[13] <= 0.5) { - var19 = params[288]; - } else { - var19 = params[289]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[4] <= -1.919716238975525) { - var19 = params[290]; - } else { - var19 = params[291]; - } - } else { - if (input[7] <= 0.5) { - var19 = params[292]; - } else { - var19 = params[293]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.7146458029747009) { - if (input[0] <= -0.7500385642051697) { - var19 = params[294]; - } else { - var19 = params[295]; - } - } else { - if (input[0] <= 0.5618996620178223) { - var19 = params[296]; - } else { - var19 = params[297]; - } - } - } else { - if (input[0] <= 0.5017509460449219) { - if (input[7] <= 0.5) { - var19 = params[298]; - } else { - var19 = params[299]; - } - } else { - if (input[9] <= 0.5) { - var19 = params[300]; - } else { - var19 = params[301]; - } - } - } - } - double var20; - if (input[0] <= -1.1047260165214539) { - if (input[6] <= 0.5) { - if (input[5] <= 0.5) { - if (input[0] <= -1.4813202023506165) { - var20 = params[302]; - } else { - var20 = params[303]; - } - } else { - if (input[0] <= -1.126632809638977) { - var20 = params[304]; - } else { - var20 = params[305]; - } - } - } else { - if (input[13] <= -0.5) { - var20 = params[306]; - } else { - if (input[4] <= -1.919716238975525) { - var20 = params[307]; - } else { - var20 = params[308]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= -0.6604486405849457) { - var20 = params[309]; - } else { - var20 = params[310]; - } - } else { - if (input[0] <= -0.412002831697464) { - var20 = params[311]; - } else { - var20 = params[312]; - } - } - } else { - if (input[0] <= -0.656269907951355) { - if (input[12] <= 0.5) { - var20 = params[313]; - } else { - var20 = params[314]; - } - } else { - if (input[0] <= 0.40234731137752533) { - var20 = params[315]; - } else { - var20 = params[316]; - } - } - } - } - double var21; - if (input[0] <= -1.1047260165214539) { - if (input[4] <= -0.7579967528581619) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= -1.4044564366340637) { - var21 = params[317]; - } else { - var21 = params[318]; - } - } else { - if (input[0] <= -1.1504389643669128) { - var21 = params[319]; - } else { - var21 = params[320]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[2] <= 0.39837120473384857) { - var21 = params[321]; - } else { - var21 = params[322]; - } - } else { - if (input[0] <= -1.2906171679496765) { - var21 = params[323]; - } else { - var21 = params[324]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= 1.4713480472564697) { - if (input[13] <= 0.5) { - var21 = params[325]; - } else { - var21 = params[326]; - } - } else { - if (input[0] <= 2.425053358078003) { - var21 = params[327]; - } else { - var21 = params[328]; - } - } - } else { - if (input[0] <= 0.5139706432819366) { - if (input[0] <= -0.6541171967983246) { - var21 = params[329]; - } else { - var21 = params[330]; - } - } else { - if (input[4] <= -1.5324764251708984) { - var21 = params[331]; - } else { - var21 = params[332]; - } - } - } - } - double var22; - if (input[0] <= -0.8563434779644012) { - if (input[4] <= -0.628916785120964) { - if (input[7] <= 0.5) { - if (input[0] <= -1.4446611404418945) { - var22 = params[333]; - } else { - var22 = params[334]; - } - } else { - if (input[13] <= -0.5) { - var22 = params[335]; - } else { - var22 = params[336]; - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -1.4768248796463013) { - var22 = params[337]; - } else { - var22 = params[338]; - } - } else { - if (input[0] <= -1.3162594437599182) { - var22 = params[339]; - } else { - var22 = params[340]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.7834686040878296) { - if (input[0] <= -0.8546973168849945) { - var22 = params[341]; - } else { - var22 = params[342]; - } - } else { - if (input[0] <= 0.4723730683326721) { - var22 = params[343]; - } else { - var22 = params[344]; - } - } - } else { - if (input[0] <= 0.8184497058391571) { - if (input[0] <= -0.600046694278717) { - var22 = params[345]; - } else { - var22 = params[346]; - } - } else { - if (input[0] <= 2.063591241836548) { - var22 = params[347]; - } else { - var22 = params[348]; - } - } - } - } - double var23; - if (input[0] <= -1.09332937002182) { - if (input[6] <= 0.5) { - if (input[8] <= 0.5) { - if (input[2] <= 0.39837120473384857) { - var23 = params[349]; - } else { - var23 = params[350]; - } - } else { - if (input[5] <= 0.5) { - var23 = params[351]; - } else { - var23 = params[352]; - } - } - } else { - if (input[2] <= 0.39837120473384857) { - if (input[0] <= -1.5286160707473755) { - var23 = params[353]; - } else { - var23 = params[354]; - } - } else { - if (input[0] <= -1.4621992111206055) { - var23 = params[355]; - } else { - var23 = params[356]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[3] <= 5.450231730937958) { - if (input[0] <= 1.4455791115760803) { - var23 = params[357]; - } else { - var23 = params[358]; - } - } else { - if (input[2] <= -2.6657105684280396) { - var23 = params[359]; - } else { - var23 = params[360]; - } - } - } else { - if (input[0] <= -0.5590822398662567) { - if (input[0] <= -0.5637042224407196) { - var23 = params[361]; - } else { - var23 = params[362]; - } - } else { - if (input[0] <= 0.7276568412780762) { - var23 = params[363]; - } else { - var23 = params[364]; - } - } - } - } - double var24; - if (input[0] <= -1.0078548789024353) { - if (input[6] <= 0.5) { - if (input[2] <= -1.133669689297676) { - if (input[13] <= -0.5) { - var24 = params[365]; - } else { - var24 = params[366]; - } - } else { - if (input[0] <= -1.0181118249893188) { - var24 = params[367]; - } else { - var24 = params[368]; - } - } - } else { - if (input[0] <= -1.341078758239746) { - if (input[0] <= -1.345510721206665) { - var24 = params[369]; - } else { - var24 = params[370]; - } - } else { - if (input[2] <= -1.133669689297676) { - var24 = params[371]; - } else { - var24 = params[372]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[4] <= -0.3707568794488907) { - if (input[1] <= 20.545328298583627) { - var24 = params[373]; - } else { - var24 = params[374]; - } - } else { - if (input[0] <= -0.10809359326958656) { - var24 = params[375]; - } else { - var24 = params[376]; - } - } - } else { - if (input[7] <= 0.5) { - if (input[0] <= 3.844815969467163) { - var24 = params[377]; - } else { - var24 = params[378]; - } - } else { - if (input[0] <= 0.20752882212400436) { - var24 = params[379]; - } else { - var24 = params[380]; - } - } - } - } - double var25; - if (input[0] <= -1.093962550163269) { - if (input[6] <= 0.5) { - if (input[4] <= -0.11259698867797852) { - if (input[4] <= -1.661556363105774) { - var25 = params[381]; - } else { - var25 = params[382]; - } - } else { - var25 = params[383]; - } - } else { - if (input[0] <= -1.2906171679496765) { - if (input[0] <= -1.4162963032722473) { - var25 = params[384]; - } else { - var25 = params[385]; - } - } else { - if (input[4] <= -1.5324764251708984) { - var25 = params[386]; - } else { - var25 = params[387]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[5] <= 0.5) { - if (input[0] <= -0.5533206462860107) { - var25 = params[388]; - } else { - var25 = params[389]; - } - } else { - if (input[1] <= 20.545328298583627) { - var25 = params[390]; - } else { - var25 = params[391]; - } - } - } else { - if (input[0] <= -0.6249925792217255) { - if (input[0] <= -0.6280316710472107) { - var25 = params[392]; - } else { - var25 = params[393]; - } - } else { - if (input[0] <= 0.49067093431949615) { - var25 = params[394]; - } else { - var25 = params[395]; - } - } - } - } - double var26; - if (input[0] <= -0.8577364087104797) { - if (input[6] <= 0.5) { - if (input[5] <= 0.5) { - if (input[13] <= -0.5) { - var26 = params[396]; - } else { - var26 = params[397]; - } - } else { - if (input[0] <= -1.392806589603424) { - var26 = params[398]; - } else { - var26 = params[399]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[4] <= -1.919716238975525) { - var26 = params[400]; - } else { - var26 = params[401]; - } - } else { - if (input[0] <= -1.2191351652145386) { - var26 = params[402]; - } else { - var26 = params[403]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.7834686040878296) { - if (input[0] <= -0.8515948951244354) { - var26 = params[404]; - } else { - var26 = params[405]; - } - } else { - if (input[1] <= 20.545328298583627) { - var26 = params[406]; - } else { - var26 = params[407]; - } - } - } else { - if (input[0] <= 0.7063831686973572) { - if (input[0] <= -0.5598420202732086) { - var26 = params[408]; - } else { - var26 = params[409]; - } - } else { - if (input[0] <= 0.7436753809452057) { - var26 = params[410]; - } else { - var26 = params[411]; - } - } - } - } - double var27; - if (input[6] <= 0.5) { - if (input[0] <= 0.4918105900287628) { - if (input[0] <= -1.0668006539344788) { - if (input[4] <= -0.628916785120964) { - var27 = params[412]; - } else { - var27 = params[413]; - } - } else { - if (input[1] <= 20.545328298583627) { - var27 = params[414]; - } else { - var27 = params[415]; - } - } - } else { - if (input[0] <= 0.618945986032486) { - if (input[0] <= 0.5814638137817383) { - var27 = params[416]; - } else { - var27 = params[417]; - } - } else { - if (input[0] <= 0.6213519275188446) { - var27 = params[418]; - } else { - var27 = params[419]; - } - } - } - } else { - if (input[0] <= -0.8718554973602295) { - if (input[2] <= -1.133669689297676) { - if (input[4] <= -1.919716238975525) { - var27 = params[420]; - } else { - var27 = params[421]; - } - } else { - if (input[0] <= -1.3780543804168701) { - var27 = params[422]; - } else { - var27 = params[423]; - } - } - } else { - if (input[0] <= 0.5256838202476501) { - if (input[7] <= 0.5) { - var27 = params[424]; - } else { - var27 = params[425]; - } - } else { - if (input[4] <= -1.5324764251708984) { - var27 = params[426]; - } else { - var27 = params[427]; - } - } - } - } - double var28; - if (input[0] <= -0.8577364087104797) { - if (input[6] <= 0.5) { - if (input[4] <= -1.661556363105774) { - if (input[3] <= 16.507580757141113) { - var28 = params[428]; - } else { - var28 = params[429]; - } - } else { - if (input[0] <= -1.4784077405929565) { - var28 = params[430]; - } else { - var28 = params[431]; - } - } - } else { - if (input[0] <= -0.8635613322257996) { - if (input[0] <= -1.3146132826805115) { - var28 = params[432]; - } else { - var28 = params[433]; - } - } else { - if (input[4] <= -0.11259698867797852) { - var28 = params[434]; - } else { - var28 = params[435]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[0] <= -0.7837218642234802) { - if (input[0] <= -0.8006901144981384) { - var28 = params[436]; - } else { - var28 = params[437]; - } - } else { - if (input[3] <= 5.450231730937958) { - var28 = params[438]; - } else { - var28 = params[439]; - } - } - } else { - if (input[0] <= -0.6540538966655731) { - if (input[12] <= 0.5) { - var28 = params[440]; - } else { - var28 = params[441]; - } - } else { - if (input[7] <= 0.5) { - var28 = params[442]; - } else { - var28 = params[443]; - } - } - } - } - double var29; - if (input[0] <= -1.0892139077186584) { - if (input[6] <= 0.5) { - if (input[13] <= -0.5) { - var29 = params[444]; - } else { - if (input[0] <= -1.2200848460197449) { - var29 = params[445]; - } else { - var29 = params[446]; - } - } - } else { - if (input[2] <= -1.133669689297676) { - if (input[0] <= -1.4477635622024536) { - var29 = params[447]; - } else { - var29 = params[448]; - } - } else { - if (input[0] <= -1.2912502884864807) { - var29 = params[449]; - } else { - var29 = params[450]; - } - } - } - } else { - if (input[6] <= 0.5) { - if (input[4] <= 0.016482964158058167) { - if (input[0] <= -0.7861911058425903) { - var29 = params[451]; - } else { - var29 = params[452]; - } - } else { - if (input[0] <= 0.24589736759662628) { - var29 = params[453]; - } else { - var29 = params[454]; - } - } - } else { - if (input[0] <= -0.566679984331131) { - if (input[0] <= -0.8577364087104797) { - var29 = params[455]; - } else { - var29 = params[456]; - } - } else { - if (input[7] <= 0.5) { - var29 = params[457]; - } else { - var29 = params[458]; - } - } - } - } - 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) * 0.03333333333333333; - } -} 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 deleted file mode 100644 index e39b6dbb..00000000 --- a/src/main/java/org/matsim/prepare/network/Speedrelative_traffic_light.java +++ /dev/null @@ -1,1583 +0,0 @@ -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}; - - @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") - 123.77791684254963) / 86.92545218615102; - data[1] = (ft.getDouble("speed") - 13.195084423807513) / 2.5553097705928556; - data[2] = (ft.getDouble("numFoes") - 2.4094554664415364) / 0.6618814394678828; - data[3] = (ft.getDouble("numLanes") - 1.9147319544111439) / 0.9803419977659901; - data[4] = (ft.getDouble("junctionSize") - 13.871042634022794) / 4.3880523696095075; - data[5] = ft.getDouble("dir_l"); - data[6] = ft.getDouble("dir_r"); - data[7] = ft.getDouble("dir_s"); - data[8] = ft.getDouble("dir_multiple_s"); - data[9] = ft.getDouble("dir_exclusive"); - data[10] = ft.getDouble("priority_lower"); - data[11] = ft.getDouble("priority_equal"); - data[12] = ft.getDouble("priority_higher"); - data[13] = ft.getDouble("changeNumLanes"); - - 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.12318505) { - if (input[0] >= 0.6606475) { - if (input[0] >= 1.4716873) { - if (input[1] >= 0.815915) { - var0 = params[0]; - } else { - var0 = params[1]; - } - } else { - if (input[1] >= -0.27201572) { - var0 = params[2]; - } else { - var0 = params[3]; - } - } - } else { - if (input[13] >= -0.5) { - if (input[1] >= -1.3599465) { - var0 = params[4]; - } else { - var0 = params[5]; - } - } else { - if (input[4] >= 0.3712256) { - var0 = params[6]; - } else { - var0 = params[7]; - } - } - } - } else { - if (input[0] >= -0.58559275) { - if (input[3] >= -0.42304826) { - if (input[4] >= 0.14333406) { - var0 = params[8]; - } else { - var0 = params[9]; - } - } else { - if (input[1] >= -0.8159811) { - var0 = params[10]; - } else { - var0 = params[11]; - } - } - } else { - if (input[6] >= 0.5) { - if (input[1] >= -0.8159811) { - var0 = params[12]; - } else { - var0 = params[13]; - } - } else { - if (input[0] >= -0.79623306) { - var0 = params[14]; - } else { - var0 = params[15]; - } - } - } - } - double var1; - if (input[0] >= -0.21590818) { - if (input[0] >= 0.44782144) { - if (input[4] >= 1.0549002) { - if (input[0] >= 1.5108013) { - var1 = params[16]; - } else { - var1 = params[17]; - } - } else { - if (input[0] >= 1.17839) { - var1 = params[18]; - } else { - var1 = params[19]; - } - } - } else { - if (input[4] >= 0.59911716) { - if (input[3] >= 0.59700394) { - var1 = params[20]; - } else { - var1 = params[21]; - } - } else { - if (input[13] >= -0.5) { - var1 = params[22]; - } else { - var1 = params[23]; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[3] >= -0.42304826) { - if (input[4] >= 0.14333406) { - var1 = params[24]; - } else { - var1 = params[25]; - } - } else { - if (input[0] >= -0.8024453) { - var1 = params[26]; - } else { - var1 = params[27]; - } - } - } else { - if (input[13] >= -0.5) { - if (input[0] >= -0.67089576) { - var1 = params[28]; - } else { - var1 = params[29]; - } - } else { - if (input[0] >= -0.7430841) { - var1 = params[30]; - } else { - var1 = params[31]; - } - } - } - } - double var2; - if (input[0] >= -0.07365987) { - if (input[0] >= 0.4490294) { - if (input[4] >= 0.59911716) { - if (input[1] >= -0.8159811) { - var2 = params[32]; - } else { - var2 = params[33]; - } - } else { - if (input[1] >= 0.815915) { - var2 = params[34]; - } else { - var2 = params[35]; - } - } - } else { - if (input[4] >= 1.0549002) { - if (input[4] >= 1.9664664) { - var2 = params[36]; - } else { - var2 = params[37]; - } - } else { - if (input[1] >= 0.815915) { - var2 = params[38]; - } else { - var2 = params[39]; - } - } - } - } else { - if (input[0] >= -0.67336917) { - if (input[4] >= 0.59911716) { - if (input[1] >= -0.8159811) { - var2 = params[40]; - } else { - var2 = params[41]; - } - } else { - if (input[1] >= 1.9018891) { - var2 = params[42]; - } else { - var2 = params[43]; - } - } - } else { - if (input[4] >= -0.08455747) { - if (input[1] >= -0.8159811) { - var2 = params[44]; - } else { - var2 = params[45]; - } - } else { - if (input[1] >= 0.815915) { - var2 = params[46]; - } else { - var2 = params[47]; - } - } - } - } - double var3; - if (input[1] >= -1.3599465) { - if (input[0] >= 0.12116225) { - if (input[1] >= 0.815915) { - if (input[4] >= 0.3712256) { - var3 = params[48]; - } else { - var3 = params[49]; - } - } else { - if (input[6] >= 0.5) { - var3 = params[50]; - } else { - var3 = params[51]; - } - } - } else { - if (input[10] >= 0.5) { - if (input[1] >= 0.815915) { - var3 = params[52]; - } else { - var3 = params[53]; - } - } else { - if (input[4] >= 0.3712256) { - var3 = params[54]; - } else { - var3 = params[55]; - } - } - } - } else { - if (input[0] >= -0.8852173) { - if (input[0] >= -0.4262033) { - if (input[10] >= 0.5) { - var3 = params[56]; - } else { - var3 = params[57]; - } - } else { - if (input[4] >= 0.59911716) { - var3 = params[58]; - } else { - var3 = params[59]; - } - } - } else { - if (input[4] >= -1.2240152) { - if (input[5] >= 0.5) { - var3 = params[60]; - } else { - var3 = params[61]; - } - } else { - var3 = params[62]; - } - } - } - double var4; - if (input[0] >= -0.4053234) { - if (input[1] >= 0.815915) { - if (input[6] >= 0.5) { - if (input[1] >= 1.9018891) { - var4 = params[63]; - } else { - var4 = params[64]; - } - } else { - if (input[4] >= -0.7682321) { - var4 = params[65]; - } else { - var4 = params[66]; - } - } - } else { - if (input[1] >= -1.3599465) { - if (input[0] >= 1.0439644) { - var4 = params[67]; - } else { - var4 = params[68]; - } - } else { - if (input[13] >= 1.5) { - var4 = params[69]; - } else { - var4 = params[70]; - } - } - } - } else { - if (input[6] >= 0.5) { - if (input[1] >= -0.27201572) { - if (input[12] >= 0.5) { - var4 = params[71]; - } else { - var4 = params[72]; - } - } else { - if (input[0] >= -0.9071902) { - var4 = params[73]; - } else { - var4 = params[74]; - } - } - } else { - if (input[1] >= 1.9018891) { - var4 = params[75]; - } else { - if (input[0] >= -1.13756) { - var4 = params[76]; - } else { - var4 = params[77]; - } - } - } - } - double var5; - if (input[0] >= -0.47975498) { - if (input[4] >= 1.0549002) { - if (input[10] >= 0.5) { - if (input[13] >= 1.5) { - var5 = params[78]; - } else { - var5 = params[79]; - } - } else { - var5 = params[80]; - } - } else { - if (input[7] >= 0.5) { - if (input[13] >= -0.5) { - var5 = params[81]; - } else { - var5 = params[82]; - } - } else { - if (input[4] >= -0.54034054) { - var5 = params[83]; - } else { - var5 = params[84]; - } - } - } - } else { - if (input[4] >= 1.0549002) { - if (input[4] >= 1.5106833) { - var5 = params[85]; - } else { - if (input[2] >= 0.13679874) { - var5 = params[86]; - } else { - var5 = params[87]; - } - } - } else { - if (input[7] >= 0.5) { - if (input[4] >= -0.08455747) { - var5 = params[88]; - } else { - var5 = params[89]; - } - } else { - if (input[4] >= -1.2240152) { - var5 = params[90]; - } else { - var5 = params[91]; - } - } - } - } - double var6; - if (input[0] >= -0.8296525) { - if (input[1] >= 1.9018891) { - if (input[0] >= -0.059337243) { - if (input[4] >= 0.029388294) { - var6 = params[92]; - } else { - var6 = params[93]; - } - } else { - var6 = params[94]; - } - } else { - if (input[1] >= -1.3599465) { - if (input[12] >= 0.5) { - var6 = params[95]; - } else { - var6 = params[96]; - } - } else { - if (input[4] >= 1.0549002) { - var6 = params[97]; - } else { - var6 = params[98]; - } - } - } - } else { - if (input[4] >= -1.6797982) { - if (input[1] >= -0.8159811) { - if (input[13] >= 0.5) { - var6 = params[99]; - } else { - var6 = params[100]; - } - } else { - if (input[4] >= -0.7682321) { - var6 = params[101]; - } else { - var6 = params[102]; - } - } - } else { - if (input[1] >= 0.815915) { - var6 = params[103]; - } else { - if (input[0] >= -1.1556215) { - var6 = params[104]; - } else { - var6 = params[105]; - } - } - } - } - double var7; - if (input[0] >= -0.31329048) { - if (input[1] >= 0.815915) { - if (input[0] >= 2.0634587) { - var7 = params[106]; - } else { - if (input[8] >= 0.5) { - var7 = params[107]; - } else { - var7 = params[108]; - } - } - } else { - if (input[0] >= 2.7587671) { - var7 = params[109]; - } else { - if (input[13] >= 0.5) { - var7 = params[110]; - } else { - var7 = params[111]; - } - } - } - } else { - if (input[1] >= 0.815915) { - if (input[0] >= -1.1831162) { - if (input[8] >= 0.5) { - var7 = params[112]; - } else { - var7 = params[113]; - } - } else { - var7 = params[114]; - } - } else { - if (input[6] >= 0.5) { - if (input[5] >= 0.5) { - var7 = params[115]; - } else { - var7 = params[116]; - } - } else { - if (input[2] >= 0.13679874) { - var7 = params[117]; - } else { - var7 = params[118]; - } - } - } - } - double var8; - if (input[1] >= -1.3599465) { - if (input[4] >= -0.54034054) { - if (input[13] >= -0.5) { - if (input[4] >= -0.312449) { - var8 = params[119]; - } else { - var8 = params[120]; - } - } else { - if (input[8] >= 0.5) { - var8 = params[121]; - } else { - var8 = params[122]; - } - } - } else { - if (input[1] >= 2.987863) { - var8 = params[123]; - } else { - if (input[7] >= 0.5) { - var8 = params[124]; - } else { - var8 = params[125]; - } - } - } - } else { - if (input[4] >= -0.7682321) { - if (input[4] >= 1.0549002) { - if (input[4] >= 1.2827917) { - var8 = params[126]; - } else { - var8 = params[127]; - } - } else { - if (input[7] >= 0.5) { - var8 = params[128]; - } else { - var8 = params[129]; - } - } - } else { - if (input[13] >= 1.5) { - var8 = params[130]; - } else { - if (input[13] >= -0.5) { - var8 = params[131]; - } else { - var8 = params[132]; - } - } - } - } - double var9; - if (input[0] >= -0.89390296) { - if (input[13] >= 0.5) { - if (input[8] >= 0.5) { - if (input[0] >= 0.024297638) { - var9 = params[133]; - } else { - var9 = params[134]; - } - } else { - if (input[0] >= 1.0261331) { - var9 = params[135]; - } else { - var9 = params[136]; - } - } - } else { - if (input[13] >= -0.5) { - if (input[0] >= -0.87469107) { - var9 = params[137]; - } else { - var9 = params[138]; - } - } else { - if (input[6] >= 0.5) { - var9 = params[139]; - } else { - var9 = params[140]; - } - } - } - } else { - if (input[7] >= 0.5) { - if (input[13] >= 0.5) { - if (input[9] >= 0.5) { - var9 = params[141]; - } else { - var9 = params[142]; - } - } else { - if (input[0] >= -1.285963) { - var9 = params[143]; - } else { - var9 = params[144]; - } - } - } else { - if (input[6] >= 0.5) { - if (input[0] >= -1.2283274) { - var9 = params[145]; - } else { - var9 = params[146]; - } - } else { - var9 = params[147]; - } - } - } - double var10; - if (input[1] >= 0.815915) { - if (input[0] >= 2.187588) { - var10 = params[148]; - } else { - if (input[9] >= 0.5) { - if (input[1] >= 2.987863) { - var10 = params[149]; - } else { - var10 = params[150]; - } - } else { - var10 = params[151]; - } - } - } else { - if (input[0] >= -0.7737425) { - if (input[0] >= 2.1705046) { - var10 = params[152]; - } else { - if (input[12] >= 0.5) { - var10 = params[153]; - } else { - var10 = params[154]; - } - } - } else { - if (input[2] >= -1.3740458) { - if (input[1] >= -0.8159811) { - var10 = params[155]; - } else { - var10 = params[156]; - } - } else { - if (input[5] >= 0.5) { - var10 = params[157]; - } else { - var10 = params[158]; - } - } - } - } - double var11; - if (input[4] >= 0.59911716) { - if (input[12] >= 0.5) { - if (input[13] >= -0.5) { - if (input[3] >= 1.6170561) { - var11 = params[159]; - } else { - var11 = params[160]; - } - } else { - if (input[0] >= -0.7426239) { - var11 = params[161]; - } else { - var11 = params[162]; - } - } - } else { - if (input[0] >= -1.154471) { - if (input[0] >= -0.6638782) { - var11 = params[163]; - } else { - var11 = params[164]; - } - } else { - var11 = params[165]; - } - } - } else { - if (input[7] >= 0.5) { - if (input[0] >= -1.064739) { - if (input[4] >= -0.54034054) { - var11 = params[166]; - } else { - var11 = params[167]; - } - } else { - if (input[0] >= -1.1093749) { - var11 = params[168]; - } else { - var11 = params[169]; - } - } - } else { - if (input[0] >= 0.93818414) { - var11 = params[170]; - } else { - if (input[3] >= 0.59700394) { - var11 = params[171]; - } else { - var11 = params[172]; - } - } - } - } - double var12; - if (input[1] >= -1.3599465) { - if (input[4] >= -1.4519067) { - if (input[0] >= 1.4982617) { - var12 = params[173]; - } else { - if (input[4] >= 1.5106833) { - var12 = params[174]; - } else { - var12 = params[175]; - } - } - } else { - if (input[0] >= -0.5758718) { - if (input[0] >= 0.81267434) { - var12 = params[176]; - } else { - var12 = params[177]; - } - } else { - if (input[0] >= -0.72611547) { - var12 = params[178]; - } else { - var12 = params[179]; - } - } - } - } else { - if (input[10] >= 0.5) { - if (input[8] >= 0.5) { - if (input[3] >= -0.42304826) { - var12 = params[180]; - } else { - var12 = params[181]; - } - } else { - if (input[0] >= 0.2536896) { - var12 = params[182]; - } else { - var12 = params[183]; - } - } - } else { - if (input[3] >= 1.6170561) { - var12 = params[184]; - } else { - if (input[0] >= -0.30805612) { - var12 = params[185]; - } else { - var12 = params[186]; - } - } - } - } - double var13; - if (input[0] >= -0.93761855) { - if (input[1] >= 1.9018891) { - if (input[6] >= 0.5) { - var13 = params[187]; - } else { - if (input[4] >= -1.4519067) { - var13 = params[188]; - } else { - var13 = params[189]; - } - } - } else { - if (input[13] >= 0.5) { - if (input[8] >= 0.5) { - var13 = params[190]; - } else { - var13 = params[191]; - } - } else { - if (input[4] >= -0.9961236) { - var13 = params[192]; - } else { - var13 = params[193]; - } - } - } - } else { - if (input[13] >= 0.5) { - if (input[6] >= 0.5) { - if (input[9] >= 0.5) { - var13 = params[194]; - } else { - var13 = params[195]; - } - } else { - if (input[4] >= -2.363473) { - var13 = params[196]; - } else { - var13 = params[197]; - } - } - } else { - if (input[0] >= -1.2768748) { - if (input[4] >= -1.9076898) { - var13 = params[198]; - } else { - var13 = params[199]; - } - } else { - if (input[4] >= -0.312449) { - var13 = params[200]; - } else { - var13 = params[201]; - } - } - } - } - double var14; - if (input[1] >= -1.3599465) { - if (input[8] >= 0.5) { - if (input[3] >= -0.42304826) { - if (input[0] >= -1.0242445) { - var14 = params[202]; - } else { - var14 = params[203]; - } - } else { - if (input[0] >= 0.95802873) { - var14 = params[204]; - } else { - var14 = params[205]; - } - } - } else { - if (input[4] >= 0.59911716) { - if (input[0] >= -1.157117) { - var14 = params[206]; - } else { - var14 = params[207]; - } - } else { - if (input[1] >= 0.815915) { - var14 = params[208]; - } else { - var14 = params[209]; - } - } - } - } else { - if (input[3] >= 1.6170561) { - var14 = params[210]; - } else { - if (input[10] >= 0.5) { - if (input[4] >= -1.4519067) { - var14 = params[211]; - } else { - var14 = params[212]; - } - } else { - if (input[0] >= -1.1216843) { - var14 = params[213]; - } else { - var14 = params[214]; - } - } - } - } - double var15; - if (input[4] >= -1.6797982) { - if (input[0] >= -1.0676725) { - if (input[4] >= 1.0549002) { - if (input[0] >= -0.584845) { - var15 = params[215]; - } else { - var15 = params[216]; - } - } else { - if (input[3] >= 1.6170561) { - var15 = params[217]; - } else { - var15 = params[218]; - } - } - } else { - if (input[4] >= -0.9961236) { - if (input[4] >= -0.7682321) { - var15 = params[219]; - } else { - var15 = params[220]; - } - } else { - if (input[8] >= 0.5) { - var15 = params[221]; - } else { - var15 = params[222]; - } - } - } - } else { - if (input[13] >= -0.5) { - if (input[6] >= 0.5) { - if (input[10] >= 0.5) { - var15 = params[223]; - } else { - var15 = params[224]; - } - } else { - if (input[0] >= -1.0703759) { - var15 = params[225]; - } else { - var15 = params[226]; - } - } - } else { - if (input[4] >= -1.9076898) { - var15 = params[227]; - } else { - if (input[11] >= 0.5) { - var15 = params[228]; - } else { - var15 = params[229]; - } - } - } - } - double var16; - if (input[1] >= -0.27201572) { - if (input[7] >= 0.5) { - if (input[13] >= -1.5) { - if (input[3] >= 1.6170561) { - var16 = params[230]; - } else { - var16 = params[231]; - } - } else { - if (input[6] >= 0.5) { - var16 = params[232]; - } else { - var16 = params[233]; - } - } - } else { - if (input[0] >= 1.2212428) { - var16 = params[234]; - } else { - if (input[3] >= 0.59700394) { - var16 = params[235]; - } else { - var16 = params[236]; - } - } - } - } else { - if (input[4] >= -0.9961236) { - if (input[2] >= -1.3740458) { - var16 = params[237]; - } else { - var16 = params[238]; - } - } else { - if (input[0] >= -0.96540093) { - var16 = params[239]; - } else { - if (input[2] >= -1.3740458) { - var16 = params[240]; - } else { - var16 = params[241]; - } - } - } - } - double var17; - if (input[4] >= 1.5106833) { - if (input[0] >= 0.3480808) { - if (input[0] >= 0.56614125) { - if (input[0] >= 1.427454) { - var17 = params[242]; - } else { - var17 = params[243]; - } - } else { - var17 = params[244]; - } - } else { - if (input[0] >= -0.13808289) { - var17 = params[245]; - } else { - if (input[0] >= -0.3474002) { - var17 = params[246]; - } else { - var17 = params[247]; - } - } - } - } else { - if (input[1] >= 0.815915) { - if (input[0] >= -0.06146551) { - if (input[4] >= 0.14333406) { - var17 = params[248]; - } else { - var17 = params[249]; - } - } else { - if (input[4] >= 0.3712256) { - var17 = params[250]; - } else { - var17 = params[251]; - } - } - } else { - if (input[9] >= 0.5) { - if (input[13] >= -0.5) { - var17 = params[252]; - } else { - var17 = params[253]; - } - } else { - if (input[12] >= 0.5) { - var17 = params[254]; - } else { - var17 = params[255]; - } - } - } - } - double var18; - if (input[0] >= 2.1705046) { - var18 = params[256]; - } else { - if (input[0] >= -1.3181746) { - if (input[1] >= -1.3599465) { - if (input[0] >= -1.1492941) { - var18 = params[257]; - } else { - var18 = params[258]; - } - } else { - if (input[0] >= -1.1124811) { - var18 = params[259]; - } else { - var18 = params[260]; - } - } - } else { - var18 = params[261]; - } - } - double var19; - if (input[4] >= -0.9961236) { - if (input[7] >= 0.5) { - if (input[13] >= -1.5) { - if (input[3] >= 0.59700394) { - var19 = params[262]; - } else { - var19 = params[263]; - } - } else { - if (input[5] >= 0.5) { - var19 = params[264]; - } else { - var19 = params[265]; - } - } - } else { - if (input[5] >= 0.5) { - if (input[9] >= 0.5) { - var19 = params[266]; - } else { - var19 = params[267]; - } - } else { - var19 = params[268]; - } - } - } else { - if (input[6] >= 0.5) { - if (input[13] >= -0.5) { - if (input[2] >= -2.8848906) { - var19 = params[269]; - } else { - var19 = params[270]; - } - } else { - if (input[4] >= -1.2240152) { - var19 = params[271]; - } else { - var19 = params[272]; - } - } - } else { - if (input[5] >= 0.5) { - if (input[8] >= 0.5) { - var19 = params[273]; - } else { - var19 = params[274]; - } - } else { - if (input[4] >= -1.6797982) { - var19 = params[275]; - } else { - var19 = params[276]; - } - } - } - } - double var20; - if (input[0] >= -1.2502427) { - if (input[0] >= -1.1201887) { - if (input[0] >= -1.1093749) { - if (input[0] >= -1.0791191) { - var20 = params[277]; - } else { - var20 = params[278]; - } - } else { - if (input[5] >= 0.5) { - var20 = params[279]; - } else { - var20 = params[280]; - } - } - } else { - if (input[0] >= -1.1238701) { - var20 = params[281]; - } else { - if (input[13] >= -0.5) { - var20 = params[282]; - } else { - var20 = params[283]; - } - } - } - } else { - if (input[4] >= -0.312449) { - var20 = params[284]; - } else { - if (input[0] >= -1.330599) { - var20 = params[285]; - } else { - var20 = params[286]; - } - } - } - double var21; - if (input[0] >= -0.10316791) { - if (input[4] >= -0.9961236) { - if (input[5] >= 0.5) { - if (input[0] >= -0.07475275) { - var21 = params[287]; - } else { - var21 = params[288]; - } - } else { - if (input[3] >= -0.42304826) { - var21 = params[289]; - } else { - var21 = params[290]; - } - } - } else { - if (input[2] >= 0.13679874) { - if (input[10] >= 0.5) { - var21 = params[291]; - } else { - var21 = params[292]; - } - } else { - if (input[5] >= 0.5) { - var21 = params[293]; - } else { - var21 = params[294]; - } - } - } - } else { - if (input[4] >= 1.0549002) { - if (input[11] >= 0.5) { - var21 = params[295]; - } else { - var21 = params[296]; - } - } else { - if (input[3] >= 1.6170561) { - if (input[5] >= 0.5) { - var21 = params[297]; - } else { - var21 = params[298]; - } - } else { - if (input[13] >= 1.5) { - var21 = params[299]; - } else { - var21 = params[300]; - } - } - } - } - double var22; - if (input[7] >= 0.5) { - if (input[4] >= 1.7385747) { - if (input[8] >= 0.5) { - if (input[12] >= 0.5) { - var22 = params[301]; - } else { - var22 = params[302]; - } - } else { - var22 = params[303]; - } - } else { - if (input[0] >= -1.1599929) { - if (input[13] >= -0.5) { - var22 = params[304]; - } else { - var22 = params[305]; - } - } else { - if (input[4] >= -1.9076898) { - var22 = params[306]; - } else { - var22 = params[307]; - } - } - } - } else { - if (input[2] >= -2.8848906) { - if (input[0] >= -0.89119947) { - if (input[4] >= -0.54034054) { - var22 = params[308]; - } else { - var22 = params[309]; - } - } else { - if (input[6] >= 0.5) { - var22 = params[310]; - } else { - var22 = params[311]; - } - } - } else { - if (input[0] >= -0.6404674) { - var22 = params[312]; - } else { - var22 = params[313]; - } - } - } - double var23; - if (input[0] >= -0.18306395) { - if (input[0] >= -0.17294034) { - if (input[4] >= -1.6797982) { - if (input[0] >= 0.31678966) { - var23 = params[314]; - } else { - var23 = params[315]; - } - } else { - if (input[4] >= -1.9076898) { - var23 = params[316]; - } else { - var23 = params[317]; - } - } - } else { - var23 = params[318]; - } - } else { - if (input[0] >= -0.7737425) { - if (input[10] >= 0.5) { - if (input[5] >= 0.5) { - var23 = params[319]; - } else { - var23 = params[320]; - } - } else { - if (input[4] >= 0.14333406) { - var23 = params[321]; - } else { - var23 = params[322]; - } - } - } else { - if (input[3] >= 1.6170561) { - if (input[5] >= 0.5) { - var23 = params[323]; - } else { - var23 = params[324]; - } - } else { - if (input[0] >= -1.0423635) { - var23 = params[325]; - } else { - var23 = params[326]; - } - } - } - } - double var24; - if (input[13] >= -1.5) { - if (input[3] >= 0.59700394) { - if (input[0] >= -0.5477443) { - if (input[11] >= 0.5) { - var24 = params[327]; - } else { - var24 = params[328]; - } - } else { - if (input[2] >= 0.13679874) { - var24 = params[329]; - } else { - var24 = params[330]; - } - } - } else { - if (input[13] >= -0.5) { - var24 = params[331]; - } else { - if (input[5] >= 0.5) { - var24 = params[332]; - } else { - var24 = params[333]; - } - } - } - } else { - if (input[3] >= 1.6170561) { - var24 = params[334]; - } else { - var24 = params[335]; - } - } - double var25; - if (input[3] >= 1.6170561) { - if (input[4] >= 1.2827917) { - if (input[3] >= 2.6371083) { - var25 = params[336]; - } else { - if (input[12] >= 0.5) { - var25 = params[337]; - } else { - var25 = params[338]; - } - } - } else { - if (input[5] >= 0.5) { - if (input[0] >= -0.9272648) { - var25 = params[339]; - } else { - var25 = params[340]; - } - } else { - if (input[4] >= -1.4519067) { - var25 = params[341]; - } else { - var25 = params[342]; - } - } - } - } else { - if (input[4] >= 2.1943579) { - var25 = params[343]; - } else { - if (input[1] >= 0.815915) { - if (input[4] >= 0.14333406) { - var25 = params[344]; - } else { - var25 = params[345]; - } - } else { - if (input[0] >= -0.93865395) { - var25 = params[346]; - } else { - var25 = params[347]; - } - } - } - } - double var26; - if (input[0] >= -0.18904608) { - if (input[0] >= 1.2391891) { - if (input[0] >= 1.364469) { - if (input[0] >= 1.4716873) { - var26 = params[348]; - } else { - var26 = params[349]; - } - } else { - var26 = params[350]; - } - } else { - if (input[0] >= 1.1457758) { - var26 = params[351]; - } else { - if (input[0] >= 1.0254428) { - var26 = params[352]; - } else { - var26 = params[353]; - } - } - } - } else { - if (input[0] >= -0.28665847) { - if (input[0] >= -0.2803312) { - if (input[3] >= 1.6170561) { - var26 = params[354]; - } else { - var26 = params[355]; - } - } else { - if (input[0] >= -0.28326476) { - var26 = params[356]; - } else { - var26 = params[357]; - } - } - } else { - if (input[0] >= -0.2903973) { - var26 = params[358]; - } else { - if (input[3] >= 2.6371083) { - var26 = params[359]; - } else { - var26 = params[360]; - } - } - } - } - double var27; - if (input[0] >= -1.0976982) { - if (input[0] >= -1.0897604) { - if (input[0] >= -1.0423635) { - if (input[0] >= -1.0373592) { - var27 = params[361]; - } else { - var27 = params[362]; - } - } else { - if (input[0] >= -1.0566286) { - var27 = params[363]; - } else { - var27 = params[364]; - } - } - } else { - var27 = params[365]; - } - } else { - if (input[2] >= -1.3740458) { - if (input[0] >= -1.1121935) { - var27 = params[366]; - } else { - if (input[4] >= 0.82700866) { - var27 = params[367]; - } else { - var27 = params[368]; - } - } - } else { - if (input[9] >= 0.5) { - if (input[4] >= -2.363473) { - var27 = params[369]; - } else { - var27 = params[370]; - } - } else { - var27 = params[371]; - } - } - } - double var28; - if (input[4] >= 0.59911716) { - if (input[8] >= 0.5) { - if (input[3] >= -0.42304826) { - if (input[3] >= 0.59700394) { - var28 = params[372]; - } else { - var28 = params[373]; - } - } else { - var28 = params[374]; - } - } else { - if (input[13] >= 0.5) { - if (input[0] >= -0.7650569) { - var28 = params[375]; - } else { - var28 = params[376]; - } - } else { - if (input[0] >= 0.022399459) { - var28 = params[377]; - } else { - var28 = params[378]; - } - } - } - } else { - if (input[0] >= -1.1557364) { - if (input[0] >= -1.1488916) { - if (input[3] >= 0.59700394) { - var28 = params[379]; - } else { - var28 = params[380]; - } - } else { - var28 = params[381]; - } - } else { - if (input[0] >= -1.1731652) { - var28 = params[382]; - } else { - if (input[6] >= 0.5) { - var28 = params[383]; - } else { - var28 = params[384]; - } - } - } - } - double var29; - if (input[0] >= -0.93060106) { - if (input[0] >= -0.9254817) { - if (input[4] >= -1.2240152) { - var29 = params[385]; - } else { - if (input[0] >= -0.3976156) { - var29 = params[386]; - } else { - var29 = params[387]; - } - } - } else { - if (input[3] >= 0.59700394) { - var29 = params[388]; - } else { - var29 = params[389]; - } - } - } else { - if (input[13] >= 0.5) { - if (input[4] >= -0.9961236) { - if (input[0] >= -1.0436289) { - var29 = params[390]; - } else { - var29 = params[391]; - } - } else { - if (input[2] >= 0.13679874) { - var29 = params[392]; - } else { - var29 = params[393]; - } - } - } else { - if (input[0] >= -1.0159616) { - if (input[1] >= -0.8159811) { - var29 = params[394]; - } else { - var29 = params[395]; - } - } else { - if (input[3] >= -0.42304826) { - var29 = params[396]; - } else { - var29 = params[397]; - } - } - } - } - 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); - } -}