Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
6f07e9e9
Commit
6f07e9e9
authored
May 25, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Statred: Added assignment 5.2.
parent
c9fce26c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
317 deletions
+67
-317
statred/ass2/README
statred/ass2/README
+0
-2
statred/ass2/briefing_note.txt
statred/ass2/briefing_note.txt
+0
-62
statred/ass2/data3d.txt
statred/ass2/data3d.txt
+0
-3
statred/ass2/eigenimages.py
statred/ass2/eigenimages.py
+0
-45
statred/ass2/image.py
statred/ass2/image.py
+14
-0
statred/ass2/pca.py
statred/ass2/pca.py
+53
-0
statred/ass2/pca_main.py
statred/ass2/pca_main.py
+0
-130
statred/ass2/reconstruct.py
statred/ass2/reconstruct.py
+0
-75
No files found.
statred/ass2/README
deleted
100644 → 0
View file @
c9fce26c
Execute pca_main.py, then eigenimages.py, then reconstruct.py. Output is saved
to file, which can then be used for the next function
statred/ass2/briefing_note.txt
deleted
100644 → 0
View file @
c9fce26c
#
#Lab 1. Generating Multivariate Normal Distributed Samples
De eerste opdracht bestaat uit de drie LabExercises uit de handout "Multivariate
Random Variables" (de laatste drie secties uit de handout).
Gedocumenteerde Python code is meer dan genoeg voor deze opdracht, inclusief de
plaatjes die gemaakt worden.
De Iris dataset verwijzing is fout gegaan in de opdracht (hij verwijst naar mijn
locale copie en niet naar de openbare). De goeie link is:
http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data
Bij de eerste opdracht word gevraagd een mu vector en covariantie matrix zelf te
bepalen. Dat is minder eenvoudig dan het lijkt. Niet elke 4x4 matrix is een
covariantiematrix. Kom je er zelf niet uit dan kun je ook gebruiken:
mu = array( [ [3],[4],[5],[6] ] )
Sigma = array(
[[ 3.01602775, 1.02746769, -3.60224613, -2.08792829],
[ 1.02746769, 5.65146472, -3.98616664, 0.48723704],
[ -3.60224613, -3.98616664, 13.04508284, -1.59255406],
[ -2.08792829, 0.48723704, -1.59255406, 8.28742469]] )
Bij de laatste opdracht moet de Iris data set worden gevisualiseerd in een
scatter matrix. I.p.v. de plot opdracht is het dan handig om de scatter functie
te gebruiken. In deze functie kun je naast x en y coordinaat vectoren ook
vectoren meegeven om voor elk punt een kleur, afmeting en markertype te bepalen.
#LabExercise
PCA De tweede practicum opgave is het maken van OF LabExercise 5.2 OF
LabExercise 5.3. In feite is het (bijna) dezelfde opgave maar dan toegepast op
een andere dataset. Ingeleverd moet worden een python file met daarin verplicht
de volgende functies:
1. PCA() deze functie leest de data in en doet de PCA analyse en laat in
figure(1) het 'scree diagram' zien. (voor labE 5.1 heeft deze functie een
parameter waarmee bepaald wordt met welke dataset gewerkt wordt: data='natural'
of data='munsell')
2. EigenImages(k) deze functie plot in figure(2) de eerste k eigenvectoren (voor
LabE 5.2 als functies, voor LabE 5.3 als beelden). Wederom bij LabE 5.1 de
parameter data='xxx' die bepaald met welke dataset wordt gewerkt.
3. Reconstruct( k, sample )
1. Voor Lab5.2: Reconstruct( k, sample, data='natural'), hier is k het aantal
principale componenten dat meegenomen wordt in de reconstructie en sample is de
index in de dataset van het spectrum dat gereconstrueerd moet worden.
Het resultaat moet een figure(3) zijn met daarin het originele spectrum en het
gereconstrueerde spectrum.
2. Voor Lab 5.3 Reconstruct( k, (x,y) ), hierin is k het aantal principale
componenten dat meegenomen wordt in de reconstructie en (x,y) geeft de
coordinaten van het punt linksboven van het detail dat reconstrueerd moet
worden.
Het resultaat moet een figure(3) zijn met daarin naast elkaar het originele
beelddetail met daarnaast het gereconstrueerde detail.
statred/ass2/data3d.txt
deleted
100644 → 0
View file @
c9fce26c
8.848718896820688684e+00,6.127330336656482856e+00,4.234459259733797332e+00,7.109116028307427726e+00,4.790961039369935115e+00,7.305280360810670004e+00,9.262391500898782937e+00,5.034129293877822597e+00,2.760607199718387417e+00,4.810883516867611398e+00,6.168218127993987387e+00,4.705272617100924037e+00,5.359654020576907207e+00,3.639264599427162850e+00,4.517803906231605993e+00,1.820178600519433587e+00,7.663866553025078687e+00,3.074808997040641145e-01,3.497356042890582550e+00,4.126089762871334443e+00,3.054307158445034087e+00,6.684057665584388630e+00,3.263121043934849030e+00,-1.866878402047804641e+00,9.318857480676934202e+00,4.448423552469096265e-01,7.506719877004899288e+00,9.366602502859553425e+00,2.956954907108443997e+00,4.998482900726150646e+00,6.543775461150772799e+00,3.361006677951672295e+00,5.901056545634346229e+00,7.039284948291077981e+00,4.481269604280486263e+00,1.048563790206242885e+01,5.728205941788425015e+00,3.879181019007603481e+00,7.030137206001260353e+00,4.657726933954487336e+00,5.416292398636514349e+00,2.347501713244321220e+00,5.368988568329529976e+00,4.867197623879677693e+00,1.399513916078213072e+00,8.510004027923191217e+00,6.314374976109576210e+00,3.394327801678996170e+00,4.580256074266273458e-01,3.732803121577115135e-01,1.008834683031205515e+01,-1.443301260091800486e-02,2.870081702273980184e+00,5.964400891398264015e+00,6.292494842519712250e+00,3.058270086355226347e+00,6.625224383167568121e+00,-1.459607836484346777e+00,3.814073507537115937e+00,1.800399355943266944e+00,5.991436455044179432e+00,3.122431062911980248e+00,6.206059834698111288e+00,3.371122376995332903e+00,9.080181975981115983e+00,1.129316024657833317e+00,2.979422870466803541e+00,4.612011082467279088e+00,3.617572295653498138e+00,3.629247492127857466e+00,2.570855759282242747e+00,6.491541065145842282e+00,7.833773976146249041e+00,2.051427753266636955e+00,4.200017241050989725e+00,6.992333305027421453e+00,8.425691849978070636e+00,-9.732533692932694436e-01,6.655204206294683900e+00,5.769866131100855000e+00,4.520146277977122651e+00,5.610262190343972222e+00,5.572280569786940418e+00,3.812030817032287189e+00,3.934109807192145425e+00,9.599620778763453544e-01,4.972975244104107517e+00,3.954382191077921771e+00,-1.422897680953107091e+00,1.934287547671891261e+00,1.071927167709158635e+00,6.663057374810207989e+00,1.330130737295552645e+00,5.817836209115007762e+00,3.727895739384122553e+00,2.459003627438634876e+00,6.807378181187872634e+00,2.910088072810039783e+00,6.760307897657131804e-01,3.182290383193201677e+00,4.534138318378773569e+00,2.803123285197926418e+00,1.081024652492819094e+00,2.205290832588278516e+00,3.396361811329794200e+00,6.601903144693423542e+00,8.969337953765279536e+00,9.863671444410835321e+00,8.976795487777039284e+00,5.126296481473024080e+00,-1.282386656879455522e+00,2.578770928590751854e+00,6.134519234567200385e+00,4.863927023822831153e+00,8.943175040081730032e-01,6.980240181086069029e+00,2.535594305402702364e+00,6.641310745339655597e+00,3.061747989373301948e+00,4.674683066119095010e+00,2.952362264155596439e+00,5.422468937692198843e+00,8.367647710092212421e+00,4.982679807417521367e+00,1.273485856796039428e-01,2.915622816270751372e+00,4.050005157446072701e+00,4.723457846700719109e+00,3.089384353672791850e+00,2.865267886827646215e+00,2.589813259525598266e+00,1.449660722627086340e+00,6.479423940428058692e+00,2.753010484001858327e+00,7.018368032696591818e+00,3.459612739265716552e+00,1.004464852418623266e+01,3.667399076837819294e+00,6.621542806989531016e+00,3.852217491929664561e+00,5.855877872461571876e+00,5.126761139712828985e+00,6.583109097049058889e+00,2.591146899197942499e+00,3.270462554387055132e+00,8.621672552975011783e+00,1.814636371161011397e+00,4.615962027198934337e+00,3.160956288280979631e+00,4.835352955005220998e+00,7.476141461025507695e+00,2.287636007560164053e+00,3.345595001140587499e+00,5.728942458140367400e+00,5.480491188978575678e+00,1.999712244725040833e+00,4.000422711454032054e+00,7.242185300785645374e+00,-1.190755222595845098e-01,9.073845394788722984e+00,5.074315681634746333e+00,6.900428684731500617e+00,5.186176951778588951e+00,6.628156918106026474e+00,8.847726654553619952e+00,8.749903214519866523e+00,1.617424888075590150e+00,3.033805158620517695e+00,1.797067129208401948e+00,8.149048778632092649e+00,3.935899830915317033e+00,7.107510746357277753e+00,5.416472992936994579e+00,1.612796847223283869e+00,2.551010815793391728e+00,4.517496492932817631e+00,7.750471782262556175e+00,8.052027170218430285e+00,7.464454315292005759e+00,5.508770730180766684e+00,2.777509996396671621e+00,4.088083338052593163e+00,3.755191706881865876e+00,5.676873330301012821e+00,6.381274422483179443e+00,4.552897840014470177e+00,2.558345570075181818e+00,5.328507337634818875e+00,3.427683554387658482e+00,3.761624667437978964e+00,8.022195416865885775e+00,5.780209789492438688e+00,2.530195573038822143e+00,2.160594954761871467e+00,2.819068225494517410e+00,1.098643215349696334e+00,7.090986690452822927e+00,3.340902319125811371e+00,5.936138884621938949e+00,2.452923134470408773e+00,3.878486927965091091e+00,7.396383781177275907e+00,3.265754029645404621e+00,3.928124248515487249e+00,1.069511279206253818e+01,3.184331707685768009e+00,8.204557317203430955e+00,6.297377206720305765e+00,6.965768128404472570e+00,6.096506832767550677e+00,4.216981275213139924e+00,4.693708983280663105e+00,7.262514362728515138e+00,1.038360841820233027e+01,6.473064182147690637e+00,4.316999167921407476e+00,4.432377419252174988e+00,-1.797838904598113352e+00,4.875863441997190684e+00,5.546136385607443486e+00,2.375346071056693820e+00,7.040612949565744572e+00,3.699949943582721446e+00,5.246483299822354951e+00,7.611192290088735213e+00,6.710308310118241693e+00,2.916922444361550681e+00,4.503217703483062273e+00,7.620022656023525798e+00,2.596926028533337316e+00,7.724769662488587763e+00,4.324900602047181408e+00,1.083824467603978547e+00,4.470588409400958696e+00,3.362504195963897047e+00,8.408133314480746634e+00,5.860400881386286898e+00,8.861485446782317865e-01,5.957868732617875196e+00,7.300975198035246194e+00,2.558937717630738184e+00,4.308323954201231487e+00,2.065840277866705765e+00,2.916744007259362448e+00,5.417515925335946392e+00,2.199568112859928704e+00,3.138060183655357882e+00,3.836357860190151126e+00,2.189904916634768384e+00,4.542820589356096228e+00,8.107109949376948066e+00,4.823264695576469308e+00,6.048329908796883814e+00,4.785620263297762911e+00,4.233229575477603923e+00,1.857620375861816164e+00,3.267607276422794804e+00,6.806163016154062717e+00,2.944602969994748687e+00,5.894484876891328717e+00,7.191616513770128449e+00,6.470559229214716268e-01,5.139065261611212243e+00,4.211786371652540772e+00,8.414622099158414414e+00,5.610913312435491740e+00,1.022628045335906322e+01,4.655643684635036195e+00,6.255468663395095774e+00,4.463419069822043284e+00,2.254514666256905109e+00,7.248405657271955072e+00,4.394042854131741116e+00,6.677403592488582618e+00,3.356911578185647116e+00,5.978290641497105540e+00,4.663416074764485941e+00,4.036576367564941314e+00,2.140707205710132843e+00,8.181560756634800313e+00,3.317113749362939679e+00,8.012458261816156835e+00,7.770321431407245960e+00,4.136477124068454359e+00,5.393392286184452544e+00,2.221571366854113716e+00,4.407218217517880454e+00,4.531601750654191463e+00,2.826247976194320000e+00,-2.200640271902578604e-01,3.041811196360530545e+00,4.671096317096232298e+00,6.206914728043484430e-01,6.144350136240692706e-01,4.180038454746455301e+00,1.655299666292968652e-01,6.549361721775895262e+00,6.413666740421278156e+00,4.687137419566229646e+00,4.060423322030748849e+00,4.838048625391993873e+00,3.883295973132781409e+00,5.385137612570739307e+00,5.111545276960391959e+00,3.726674683199241223e+00,6.122621453818753778e+00,4.378527137867991748e+00,1.995711026304162861e+00,4.775282123860808525e+00,1.724320449103837305e+00,-3.734473971284080207e-01,4.904037315030495670e+00,8.692803298402971279e+00,4.631237581518552027e+00,6.402855979433091704e+00,4.890793068170313340e+00,3.274320232021246557e+00,3.862700553230119738e+00,4.269404675732333843e+00,3.817173211818500000e+00,3.948273905140883056e+00,3.231497541248797845e-01,3.374563969321099144e+00,4.152545108849699851e+00,3.522444268141494028e+00,4.108492952363215878e+00,6.172265772019642327e+00,8.124631503285767664e+00,6.270202210279623323e+00,6.682734927425616256e+00,4.549960476260066500e+00,3.611552508964567476e+00,5.327909113025310006e+00,5.388128714036844791e+00,5.903520501587165903e+00,3.376929676629670585e+00,4.938087849182397626e+00,1.149215681022524471e+00,1.155758916945192816e+01,3.781136741240779031e+00,4.136841702783637942e+00,8.773328964554313103e+00,8.516250196144634188e+00,2.556029170225448510e+00,4.723702541876168226e+00,8.344091292320626962e+00,1.410103806324566111e+00,5.377716348209828467e+00,5.407461094335168639e+00,9.709495839213989399e+00,6.835769938915808197e+00,3.437972643752911672e+00,7.415644466499523801e+00,5.983866149845344040e+00,6.878700887224738381e+00,5.311424117833286829e+00,8.037878753770874241e+00,3.203858928814351081e+00,3.163372429746722503e+00,5.963800891795771442e+00,9.641035626640729106e+00,2.543198496461783087e+00,6.934777236751795471e+00,1.471268950822810506e+00,8.001077605092943301e+00,4.183419931327433616e+00,7.020213424305817185e+00,8.864890323464013733e+00,4.338349338878765060e+00,4.575738610823611552e+00,7.286200352873839492e+00,7.669033105528161087e+00,1.051013632958154886e+01,6.229265188573950951e+00,5.057937272908101356e+00,1.447568794976901607e+00,9.182116101515681805e+00,4.680014454587596795e+00,8.503181394921309533e+00,5.635946146033622206e+00,7.486219315784862438e+00,6.697032632114496842e+00,5.538712278012369872e+00,5.660582056267227102e+00,1.175747058869612616e+00,4.062722380807105793e+00,6.012418178955115877e+00,1.151950581804542750e+01,6.135853887839924248e+00,4.611350487623600891e+00,5.308711611935938990e+00,8.872200626798145251e+00,7.057015762516850366e+00,3.525681316237132989e+00,3.897669681699713173e+00,2.437311957007448626e-01,2.868667376147536086e+00,4.310451173343864184e+00,2.734416147341873327e+00,3.409523561288217763e+00,3.368054351946891067e+00,2.944191104160726269e+00,1.856456357271510260e+00,3.921659688517051379e+00,1.413256553523874359e+00,5.995268394616013907e+00,4.818939068971970663e+00,5.317807426248839064e+00,8.382971471021891219e+00,3.009751392937209946e+00,7.459783625012479824e+00,9.034688069504687391e+00,5.163019653647864970e+00,4.000112452633072024e+00,1.000250062691434394e+01,8.273123641056706390e+00,9.110320849746404548e+00,8.108829530833968846e+00,4.223170077853938054e+00,2.805693052649949948e+00,4.729241521626257772e+00,7.265003492528746776e+00,6.916904516118125734e+00,1.138264633205054555e+00,6.854061560847803491e+00,5.096961698856235401e+00,4.175786012511658818e+00,3.576846804680545500e+00,4.431986130006922764e+00,4.260623907314315950e+00,6.384428120135630991e+00,3.816036589023176440e+00,3.316446120915695683e+00,7.172817297350082555e-01,2.678581924809008363e+00,3.810739098552287984e+00,5.935261650260799549e+00,8.424901976270238180e+00,3.845226378559124747e+00,3.112893509034510231e+00,4.160172958027042789e+00,4.841609328933398793e+00,2.799999114903335862e+00,6.735066508426108989e+00,4.557690041970166916e+00,1.485033672044924202e-01,8.279316085734064856e+00,7.638278894346077763e+00,4.157969625329564600e+00,2.778049294245302114e+00,1.233149519927590632e+01,4.827294769100397787e+00,2.236182225945950286e+00,5.887344933957205484e+00,7.763026004964935112e+00,1.864922834975333288e-01,8.403754248057907716e+00,5.507605659368973505e+00,3.369021130189746138e+00,1.598280295447889188e+00,2.833894918056803824e+00,1.074700741576206298e+01,3.935608029897340820e+00,3.234954663834505695e+00,1.411564018645216301e+00,9.370552620627506712e+00,5.570157667935783152e+00,1.797765313888936234e+00,2.649981825274111635e+00,5.385906497326312881e+00,1.109628909257464180e+01,3.249605107636049262e+00,5.021872937923078872e+00,6.591657428301401112e+00,6.801919456655863172e+00,3.856805262599209971e+00,6.123382402291174031e+00,7.194495810115151713e+00,1.414544513920287017e+01,5.240671263624509635e+00,5.960486811828069165e+00,5.330881362223145459e+00,5.313616586046438606e+00,-3.429972955865689954e-01,5.447801761390444142e+00,7.157112609567906070e+00,3.737957880823119972e+00,5.226502653554941702e+00,4.745728033454803096e+00,6.120806545541495503e+00,5.046949988310808877e+00,4.775626800079380452e+00,4.176594974384470582e+00,7.829510111950967577e+00,1.417975814434929038e+00,6.192889687171785340e-01,3.269638732316393348e+00,-1.960803026899833768e+00,2.746899681833801399e+00,3.818691000577846495e+00,3.393339490961554183e+00,5.704307774928929042e+00,7.831697649541688122e+00,2.487868429083039512e+00,6.039125294014338508e+00,6.853517172869108443e+00,7.949953397804534916e+00,7.016223423235183887e+00,2.178828574997874856e+00,4.496377877441666726e+00,1.339315354531348756e+00,5.328163692134233465e+00,7.488427189316956500e+00,2.367187887542232083e+00,4.330888140449589585e+00,3.631749348287191648e+00,5.490842434559436214e+00,9.652224549929902864e+00,3.770373467316843197e+00,6.924958409209343912e+00,2.912994759912604259e+00,5.268519848816864304e+00,-7.592040447380847823e-01,5.916332837927445354e+00,-1.019782005694738203e-01,2.782516449513039891e+00,2.021121735797753782e+00,4.588265033364331558e+00,3.428337142046022912e+00,2.589365383293337430e+00,3.680644467572586898e+00,3.731817587377680212e+00,7.182926020008216561e+00,1.903962480315949612e+00,1.915663155305116216e+00,7.841020258976557855e+00,6.472172968226534095e+00,1.959098096541160405e+00,6.875353905529578036e+00,5.113347464241671858e+00,6.545385892246956772e+00,7.292754837309844973e-01,7.217025431801525670e+00,6.297867240250090148e-01,3.958976188995259715e+00,5.604745803554974870e+00,2.428065162131924026e+00,4.133245424992757933e+00,5.491944138062259562e+00,4.659899026055635218e+00,5.732246307386161810e+00,4.128720752602557553e+00,7.009087063001196327e+00,7.099666292097683851e-01,7.598733917496870660e+00,8.471343510987791703e+00,6.588630944876728179e+00,3.017673830008258840e+00,6.412792508226848653e+00,7.404598377916297380e+00,3.764301026825683572e+00,5.241279934556445141e+00,2.977032627245468799e+00,6.192653125459627539e+00,5.306903854043516944e+00,6.031436322088612911e+00,2.240435410239896452e+00,4.553676424688085866e+00,9.015607489654017925e+00,5.222029479506784533e+00,4.517451320954640082e+00,5.227937151375463110e+00,7.784801544603592305e+00,5.716230667087796036e+00,6.168198919358983900e+00,2.165712832054608850e+00,2.021132900582654379e+00,4.028491157198714312e+00,8.239913949828487461e+00,6.741093690929861992e+00,1.061410084097361306e+01,5.398676625602701229e+00,7.370706748205350323e+00,6.046093076286159551e+00,3.315260194229890267e+00,1.750478532043459268e+00,1.115208022042553715e+01,3.739217367577025719e+00,6.205355526626483709e+00,7.703390828030535431e+00,9.688824235997778089e+00,5.260683292854971604e+00,9.634127926813702558e-01,7.832956431985101275e+00,2.604320850299488566e+00,4.565629667182771634e+00,9.540579260171602627e+00,6.939507741422835885e+00,6.576571548719822857e+00,5.637711720915094205e+00,4.570047531413728770e+00,6.634179045479916326e+00,4.627478703297120965e+00,2.284096696481115796e+00,6.523840486553270424e+00,5.499809977617784895e+00,1.885747065263164490e+00,2.298810403770954913e+00,1.031104204477038522e+01,1.808778026895956348e+00,4.410066596457719257e+00,2.373460436552461417e+00,1.228346262123945376e+00,1.085471243884683368e+01,3.346991451235977522e+00,4.160988893797132882e+00,4.591251648775886096e+00,7.108757014338497271e+00,2.760665068805677969e+00,1.432309684198846966e+00,1.043056543651184054e+00,-1.229317723117146599e+00,3.831560716323490823e+00,4.956297984992247940e+00,4.907848618891565096e+00,9.795602644028036821e+00,1.002871155306760009e+01,2.350570942224339266e+00,4.752759528253625021e+00,2.431339876380586684e+00,9.518592663003779819e+00,2.175495823563416753e+00,6.745454786498311428e+00,3.645276121805380853e-01,7.139732678884226580e+00,5.127419093315867649e+00,3.253570974720253695e+00,8.316759943264033339e+00,7.635951205183907575e+00,5.677956161559315262e+00,7.270040463119440410e+00,3.245721634103758468e+00,1.109597787078374687e+01,6.340131451737070378e+00,6.389781355101563420e+00,3.993030780422140325e+00,1.789939074822640031e+00,6.812614830376943154e+00,7.372453058661692538e+00,5.024542479977314180e+00,5.975419042927536672e+00,6.870238482641402911e+00,4.577081218179275268e+00,3.810617774081285436e+00,5.827515835823705359e+00,3.605896157631867993e+00,5.047596499391254987e+00,6.269846675131518055e+00,4.566137047596160237e+00,3.957772948071460739e+00,-4.771115683895352788e-01,8.764595488501214504e+00,1.751304405799565700e+00,8.252246121044549909e+00,6.532918990938654247e+00,2.109985360291770640e+00,2.364192986791725737e+00,6.238378858968752994e+00,6.346213179150110406e+00,3.464347564413072789e+00,2.964294857004095451e+00,3.054547445030548758e+00,8.163506867970840020e-01,9.544414469083628560e-01,4.942663777951287862e+00,6.781820350873879022e+00,8.973283380306975587e+00,2.929691254997452532e+00,-1.431272593612931132e-01,5.782251713472834176e+00,4.989728296112841299e+00,7.211507837963458734e+00,7.486298681782149522e+00,7.654778097181430319e+00,2.663209332611109481e+00,7.468706181620524021e+00,6.418717980400302281e+00,1.705483429657919991e+00,1.057662513212821054e+01,4.202758319477437610e+00,2.961581279717866000e+00,9.019302999787598196e+00,8.003899552969048869e+00,2.371423342966168413e+00,3.079074614076969141e+00,1.052677972450838695e+01,4.081939334965505317e+00,9.151857839390565630e+00,-1.994578091320633462e-01,-1.020288398628741433e-01,2.689788590669484059e+00,5.454365181523733952e+00,-9.136943685585761088e-01,3.749818811596429491e+00,8.266819722904918066e+00,8.076669506955436617e+00,9.758216759127328999e+00,4.671912291134780126e+00,8.270078801308754279e+00,4.059862481648128352e+00,4.013195284508264571e+00,2.211580631112440187e+00,4.130327301555031028e+00,1.101613635148002146e-01,5.125316090747412900e+00,7.231151322362496359e+00,6.050485496681714537e+00,4.565616647036101483e+00,2.815041034591591718e+00,5.296911836051250155e+00,5.987364844042491363e+00,2.524667328906684105e+00,4.941601118283681870e+00,3.278538897135004682e+00,4.284729211937371218e+00,6.872711203079699516e+00,8.867213430109554650e+00,1.097206852027735202e+01,5.928359732092380874e+00,2.125054103484422807e+00,6.373846161873681027e+00,4.704552517226397335e+00,4.212688319605561560e+00,4.524739740387279774e+00,4.656059916846929880e+00,2.883090162412067947e+00,4.721551995683660685e+00,4.654596975948928517e+00,3.930630672360941436e+00,1.128252976643427719e+00,6.370275964802186941e+00,1.403906927971930507e+00,4.142087332120079957e+00,5.740693236094697838e+00,7.822221744332736648e+00,5.220177444114386667e+00,9.639983297340950941e+00,6.448922711818022790e+00,6.503662030653255322e+00,5.287766993751583655e+00,3.074466406072797753e+00,8.312440354623673144e+00,6.749059884238338469e+00,4.759548632644210464e+00,7.260533889965055110e+00,8.838469493551844636e+00,2.210047883472154862e+00,2.104191949265903805e+00,1.628117739988264034e+00,3.560779916358975505e+00,3.158087958835002595e+00,7.539070313367618681e+00,5.803061406620749096e+00,6.172766281253869280e+00,1.450783784423057998e+00,8.050298262713443620e+00,3.863114113746951350e+00,4.650131558136042287e+00,4.798649210283242539e+00,4.173302603443587167e+00,4.746818748908281371e+00,3.478204211776505517e-01,4.546574774033281585e+00,6.094221448082380199e+00,5.023616577786902404e+00,4.777969843972097230e+00,8.351161926999887797e+00,5.193660642274230632e+00,5.300397665775010481e+00,6.142668645817223272e+00,4.719880512349634571e+00,5.779632057371299148e+00,3.774507153455947339e+00,2.417773346380179156e+00,1.760203752706398728e+00,3.320483174830416218e+00,1.610205611502214307e+00,5.277577487409051749e+00,1.177762619094049779e+00,5.822797942397551552e+00,7.757986394028311139e-01,5.443653981775771200e+00,4.645134407421372735e+00,2.420830914876699769e+00,4.327957746595082256e+00,7.326716159546540652e+00,7.003648500496709062e+00,3.303614121142119053e+00,4.670990576394197902e+00,3.527878985359045760e+00,6.215175828820020065e+00,8.590500907851998491e+00,6.619154441172920400e+00,1.047306003011139186e+00,5.415025223970679313e+00,7.082408778100554692e+00,3.970280045841347416e+00,7.106004689608736768e+00,9.584458331146802124e+00,4.985702883857424439e+00,7.363926659912737094e+00,8.923908282954410964e+00,1.920849804564313867e+00,5.630400351153221905e+00,7.246506622761119232e+00,6.933117537090914162e+00,1.031827999105361116e+01,7.966733177934451682e+00,9.013269547036149021e-01,2.557746025968072434e+00,3.812207946157304406e-01,5.310470927232356253e+00,8.014201551805179236e+00,4.015825988173520322e+00,5.251448315822778490e+00,8.050039104862957373e+00,6.329164247914727426e+00,7.613120968983198011e+00,7.843154801068806137e+00,2.722260503347638139e+00,-6.816403877904759767e-01,7.479543770374238676e+00,4.100926486800958948e+00,2.580923545276715636e+00,7.865465109004540878e+00,4.835028890340273833e+00,7.873804879644892729e+00,3.236098764336007960e+00,5.783470160104426938e+00,3.704293920134528406e+00,1.717178917825192386e+00,7.951954429817387648e+00,4.795341906902862661e+00,9.456224352797477195e+00,5.319559384829577020e+00,5.756660963482577387e+00,4.927710518633355186e+00,3.355233337740054278e+00,5.985671906826617317e+00,2.028434656588959939e+00,5.801709160041453650e+00,2.735004094144856346e+00,7.986888335886612289e+00,-2.083453259102850730e+00,3.882445230566236916e+00,8.191047645708948721e-01,7.513119455291822568e+00,2.139296660081736690e+00,3.595089062750778552e+00,3.390540163017695896e+00,5.728987943247732417e+00,2.950609038225403769e+00,5.346946820458295058e+00,8.716040630189286986e+00,6.516865427309119774e+00,6.470546791679331555e+00,-6.345480169648025637e-01,8.208770460611454212e+00,6.542786740607303919e+00,4.713520441311949583e+00,1.769777192141630096e+00,4.583736592302665613e+00,6.719770036233425614e+00,5.425144966703262739e+00,4.282253391427246036e+00,6.474646904263343217e+00,4.793869733322759785e-01,7.118560051510483433e+00,5.868206833406658163e+00,9.300638174720070595e+00,3.410438580068128722e+00,3.714457481312917864e+00,1.085434160750688193e+01,4.804411447711699701e+00,1.424689570311766573e+00,3.319487842029369418e+00,2.057518517163895222e+00,8.963330377509407754e+00,7.776466418787610024e+00,3.119717076403188738e+00,3.511597696649316092e+00,7.563769168862132908e+00,-3.361879102763840166e+00,6.292482010619872668e+00,1.442274215992741748e+00,4.226677026159554984e+00,4.368138414659073376e+00,8.314746324037029623e+00,5.442511938172237329e+00,4.820519842033732516e-01,3.881112415489422318e+00,6.137435655777869314e+00,3.124213517330604262e+00,6.004083982333348501e+00,4.159284351865384366e+00,1.039371896124083428e+01,2.906472463889564484e+00,2.520013390157332278e+00,6.819848836735982189e+00,7.133500691787319603e+00,7.231763313138028337e+00,8.303015125894805948e+00,6.823465470444457281e+00,5.019297686661557734e+00,6.813138042200420408e+00,1.142291231573230981e+00,1.598697586324770992e+00,4.847791792746090067e+00,8.525400659598533437e+00,2.071527829357763473e+00,1.619125112700350755e+00,6.163690061810187082e+00,4.364745501199452704e+00,3.557876911967275291e+00,5.030937239612233824e+00,7.655749224806813302e+00,2.699421896420133304e+00,4.596173097707032973e+00,5.227600527434914213e+00,2.043641944193690829e+00,5.746813886194936494e+00,3.229875953538678957e+00,7.258527928064856027e+00,5.080157067818323213e+00,2.652064870285174347e+00,7.274968382271765677e+00,6.391275151250964015e+00,4.725424328695718046e+00,3.974319092263299602e+00,7.640157782212926740e+00,6.906652450196857806e+00,5.003190280686862224e+00,7.086818241224337456e+00,6.766271829478007760e+00,4.535166166992305570e+00,5.609799999003970861e+00,4.395805893744114456e+00,7.787969002089583981e+00,3.062885911804738903e+00,7.470485697474524400e+00,4.853017696293177252e+00,5.306082975841859728e+00,6.293121928105578355e+00,6.331523979516145317e+00,7.542743395072044166e+00,3.646688547441573114e+00,4.828501054585716545e-01,1.825228472608699803e+00,3.832438990400228285e+00,6.525179325721189194e+00,1.836176213310000804e+00,8.284221453290525616e+00,7.096133310928637528e+00,7.778254198482841275e+00,7.728508427069420428e+00,9.758342322152094184e+00,1.141381310851887321e+01,1.341399434290965420e+00,5.890846864093431279e+00,4.677712182464299318e+00,1.118027856016338717e+01,4.863957563878970269e+00,4.396089886090055465e+00,3.824358653371043637e+00,6.059899715401627418e+00,7.353827075251944123e-01,6.625528486102341574e+00,7.196848123236137873e+00,4.593739587898217458e+00,5.998104432128322117e+00,4.414520903074631519e+00,1.018904413325766356e+01,5.454911082909289277e+00,1.932083091079166426e+00,7.827951888643447376e-01,4.733927910652908189e+00,3.676454956255631235e+00,3.185304854599187330e+00,8.550802163630690345e+00,5.555941644433199045e+00,4.040746369700123353e+00,3.524573112440334111e+00,4.161894784567770955e+00,8.788962806080567347e+00,5.438530497209944414e+00,7.503336501907861944e+00,9.513605401188490518e+00,4.904473531417097298e+00,4.599606805464526715e+00,6.029689998819864449e+00
7.531088191185497216e+00,7.736883262393826399e+00,5.408915736804419616e+00,8.553481225958353917e+00,6.259732112697306228e+00,9.265650878659769774e+00,1.151008697084512278e+01,5.101914561136101867e+00,5.672752473732197487e+00,6.953055277688640956e+00,8.185444624176415829e+00,5.891202154178817985e+00,8.685659405062253313e+00,4.018044669052793338e+00,8.388142810448057318e+00,2.170804286635673819e+00,1.046512265064597536e+01,2.548443008070467641e+00,8.108434221713658019e+00,6.223099927210962612e+00,7.188295005688014605e+00,7.940028620790447356e+00,8.588439841246039208e+00,5.941639055942363967e+00,1.115249711112685560e+01,5.670946628979199211e+00,8.299974820457633129e+00,9.967986491438173502e+00,3.124163525399630714e+00,6.254085589855535865e+00,6.202659246394095938e+00,5.461508146550789533e+00,9.130223374027425010e+00,8.514516358084271985e+00,3.008605205268471749e+00,7.749432277322185314e+00,8.166030450081851910e+00,8.107238916529723838e+00,8.042089645522391805e+00,8.053102778107559701e+00,6.799117048378611194e+00,7.199597468680320134e+00,7.817820823766487237e+00,6.341727739326104007e+00,4.112421044365317968e+00,7.312946741097233527e+00,7.891530629734774038e+00,7.048891469599126935e+00,1.673189244160845135e+00,5.873184661519552208e+00,9.687503645730314972e+00,2.381470181667228125e+00,3.849801128864613009e+00,7.488624349295312399e+00,9.302071357732549117e+00,5.775755246635256412e+00,9.941927430675679744e+00,3.887033812075555872e+00,4.893026599823479650e+00,6.903662087271920100e+00,5.561986483181470931e+00,5.878584756357366103e+00,7.947520173045666603e+00,3.307906890228132113e+00,7.391690087242013263e+00,2.633085521379821436e+00,5.475459376630700703e+00,6.862370153297953301e+00,4.777968813558716832e+00,7.368038187342736300e+00,6.971565034542201111e+00,6.990363096260205467e+00,6.806086000873869502e+00,6.169020699049585943e+00,7.219086316703213768e+00,8.442578152942321168e+00,8.108296502051437926e+00,3.332410792647094944e+00,7.143206464966739944e+00,8.903094290075191708e+00,5.066135641868915407e+00,7.361924205573393998e+00,6.005593075282844140e+00,6.801874026871438161e+00,5.474447583280525720e+00,4.486661388669457295e+00,7.286721792659508701e+00,6.152575523193040574e+00,1.174565638053084449e+00,4.625024807418313344e+00,8.010040966214242886e+00,8.182277803544382166e+00,4.223597462330372032e+00,5.459974276647016289e+00,7.842347984636651503e+00,6.290457541506892625e+00,6.140923509858952301e+00,6.476123322048998432e+00,5.425687568309308872e+00,4.853714158353284347e+00,2.358866375558998030e+00,6.941954770093953009e+00,4.574636334120307346e+00,7.916464543705492574e+00,5.211675013633196407e+00,6.677367008080228317e+00,1.129689888115994734e+01,1.086133384737002849e+01,1.119085016967151347e+01,5.875960725643742499e+00,3.155392947015149829e+00,5.152623753864617129e+00,6.579556062556132900e+00,7.451304344944359670e+00,5.084193915075902126e+00,4.922686840188616131e+00,4.858355068786056385e+00,6.363417255536893080e+00,6.388350410113708300e+00,7.125633649227116173e+00,5.214254824633736796e+00,6.793591561911773269e+00,7.420063271568412056e+00,6.779053475487142322e+00,5.328293512380792407e+00,5.817853126426760113e+00,6.182568315289363348e+00,7.914143914902754595e+00,6.801438252620022773e+00,6.908023222644638750e+00,4.332182274001075584e+00,3.032133206174135065e+00,6.034476256469621269e+00,7.647762408100160059e+00,8.692825072259678265e+00,5.285155991004165443e+00,8.763784144108338836e+00,5.842808803286326125e+00,6.050045722891490563e+00,7.642727719437299783e+00,5.759652934159388060e+00,9.534886530717688657e+00,6.803634065878732429e+00,6.645702230306250513e+00,5.769844542421028066e+00,6.212057069263743792e+00,4.166713822222215313e+00,7.726657798300517577e+00,5.643211715212833823e+00,6.909177351382948196e+00,8.557604922973517603e+00,5.899079355175656403e+00,4.474043751375937461e+00,7.572961550272736986e+00,6.183504352958907546e+00,6.640606157673222931e+00,7.811273889318471220e+00,8.132907050473527022e+00,5.515036167732453087e+00,8.991185136923641963e+00,7.485324146648825838e+00,5.877452502299071568e+00,4.272789644692156941e+00,1.063671727509040998e+01,8.556309827339791951e+00,8.098235793268823812e+00,5.170883287087943536e+00,8.345983695588882867e+00,6.160423784042686535e+00,1.048687298182167993e+01,5.156479305908874267e+00,8.442012267312968277e+00,8.109499621304646411e+00,4.545833886096533050e+00,4.092670325707089773e+00,7.261546406194291592e+00,6.659850336215857425e+00,9.936664196106445246e+00,8.515814114773283094e+00,7.701510080313856754e+00,3.086219573566930219e+00,6.453725240359772464e+00,7.222406776934254147e+00,6.879322995508049488e+00,9.253848171823353397e+00,7.532210866343414857e+00,4.852750893715801261e+00,7.610531480611912869e+00,5.576314016161936671e+00,6.100677677691654921e+00,8.683279614325378759e+00,9.211390965978758061e+00,5.565738981155105236e+00,7.645990846056213819e+00,7.304080714016547127e+00,5.646843862629241428e+00,8.210433162607127855e+00,9.955646697887036822e+00,8.941045315333514765e+00,3.842517317755940631e+00,5.928619909467073512e+00,9.473987686228630523e+00,5.179238653234072842e+00,4.629414369888786851e+00,8.251225290879114382e+00,5.626362606553152901e+00,1.081182118814090742e+01,9.905317708159570245e+00,9.134799100131303362e+00,8.276972602518235078e+00,6.117167727720246972e+00,8.287779535288859023e+00,1.058316515900542676e+01,9.687073320503278850e+00,7.528624772451727232e+00,6.608989825373678073e+00,8.674336258977714209e+00,2.247660227094632646e+00,7.902753266210109651e+00,5.678214657459049519e+00,5.311647962707353621e+00,8.571127373720266007e+00,7.122175210951980695e+00,6.837977115200440714e+00,8.597170170536310607e+00,9.703383143405446276e+00,4.211765656341177610e+00,6.680726374016026980e+00,8.413517408663505392e+00,6.496500281585962711e+00,7.101767061217243437e+00,8.578802517229624058e+00,4.098266053813587106e+00,6.668237216377886689e+00,5.418874413951366265e+00,1.026772767959618093e+01,7.280376124247936787e+00,5.985621921520792199e+00,8.365571509792021132e+00,7.828940864922142140e+00,6.127358978921531474e+00,5.412023049745112502e+00,7.989101431335748238e+00,2.709684107565398570e+00,7.555687361481822961e+00,5.395322170178573629e+00,5.459093705485690506e+00,6.338140328758060882e+00,4.553406097220375592e+00,5.473952861849021190e+00,1.006136944313779402e+01,4.325658612913892753e+00,7.602589714648690489e+00,7.037440740698125197e+00,6.574128663265561556e+00,5.301796156764066126e+00,5.911558926784982404e+00,7.612346478039202502e+00,6.895746857203529423e+00,6.109316715013182630e+00,5.864079909378436817e+00,6.152441396540479168e+00,6.810684466582289431e+00,7.308782879532156329e+00,1.004736867884872353e+01,8.140577075395320605e+00,9.184441002307803359e+00,4.606425489433328302e+00,8.412762858916956077e+00,5.436751814389332083e+00,4.203975222125941436e+00,6.955456795229176592e+00,5.478083685674752346e+00,7.276235751233370408e+00,7.238293881525891038e+00,6.504119239906684946e+00,7.979489323348859742e+00,6.093931389867885962e+00,7.086968931101247371e+00,9.946863647449326606e+00,5.552931304706065774e+00,9.776805707490259678e+00,8.273132889429891890e+00,5.856721797525379358e+00,7.657704407919657896e+00,4.188116131149810073e+00,3.580880866875486568e+00,5.172255244000020014e+00,6.696259348791152810e+00,7.184983383675619173e+00,7.033436433266119892e+00,9.044371128397845183e+00,3.756027570376267999e+00,4.556378117630556446e+00,6.008017872312430896e+00,3.218060843623211653e+00,7.842810495453257147e+00,6.938780066337439933e+00,5.282480991452958463e+00,8.114228084560830112e+00,7.339203293624905200e+00,5.412843418058510991e+00,6.910446748134276618e+00,6.751907542877057189e+00,5.971635297954038357e+00,6.835761750306350137e+00,8.393129844865898193e+00,6.414112843579917289e+00,8.353339658361539577e+00,5.428991771339669370e+00,7.130009074310195594e+00,7.972784924368053083e+00,7.856858686487955268e+00,6.633126045818271699e+00,9.232043071185096039e+00,8.488323095026354181e+00,6.278023665772651363e+00,5.770134168427205168e+00,8.907770442720213566e+00,7.867496098982415198e+00,5.458937971762351182e+00,5.372705915392756104e+00,7.418723262334808055e+00,7.195563904112077580e+00,6.392797967009744120e+00,4.096001469005731366e+00,6.826628285627323045e+00,1.061368500438900497e+01,5.593034399382366573e+00,5.729213026191717795e+00,5.137526019998611915e+00,5.641375681570947265e+00,5.654589103855439447e+00,7.748045368024787827e+00,6.753659208749470899e+00,7.506658600387925873e+00,1.002496295410735350e+01,4.318025342728641469e+00,9.621724299236182887e+00,7.654278886241653090e+00,6.083035936381970821e+00,8.290852629921587891e+00,8.890420302465789959e+00,6.710369384894601552e+00,5.216957973213131261e+00,7.741996257676272641e+00,4.235488858835588566e+00,8.539514075944428129e+00,6.460346619411645896e+00,9.334660614235902543e+00,6.412983072045290278e+00,5.753076186836198147e+00,9.052939812757067273e+00,8.821790239206277917e+00,8.792550493413315849e+00,8.243496865713487054e+00,1.083004832048205301e+01,5.463138067974171008e+00,5.150935504413582500e+00,7.702330370426459183e+00,8.458173570815924691e+00,3.999323155115346751e+00,9.614074051627088835e+00,4.594477936569639986e+00,6.030848782480569881e+00,8.789668895997232667e+00,9.396942084625656832e+00,9.560232527515575285e+00,5.952044719348055679e+00,8.041431236151957762e+00,1.107946419088142420e+01,9.383503723674380126e+00,9.645463595361944087e+00,8.584641424681935362e+00,4.515663289707188000e+00,4.908688264242309529e+00,9.307598772717648572e+00,6.219975212617799620e+00,8.672470985814516808e+00,4.556769833786331603e+00,9.428952671126843654e+00,7.615733059493882351e+00,9.958698605513298219e+00,1.036075907320673117e+01,6.791286435644428465e+00,4.641823665196097792e+00,6.287665567587581883e+00,1.073464465625951725e+01,8.855242281962640405e+00,6.915654153824942973e+00,7.540082552533466043e+00,7.544321903412363639e+00,9.601322749518363509e+00,8.409693911254226606e+00,5.277049630177400807e+00,3.872743421857091306e+00,5.842125008276354947e+00,6.765538810708852324e+00,7.121782780853884276e+00,7.950109733040743087e+00,6.010949706470631426e+00,5.082721717721635279e+00,5.296157966148457241e+00,1.085858940577140075e+01,3.206668777117698266e+00,8.037969467901241671e+00,6.006660334433806980e+00,6.042372816502838084e+00,7.884971262436367923e+00,6.353457011485859951e+00,7.077059918186948906e+00,7.913627851546445768e+00,5.869418367736344067e+00,8.882537763549567700e+00,7.660381460012172461e+00,7.795872043819254138e+00,6.350517184248327673e+00,1.117308751276219425e+01,6.054845521334959457e+00,3.636261870388054707e+00,8.173880928313693062e+00,5.310256691797829554e+00,8.395946297752580278e+00,5.779988604296804056e+00,8.994448105019243300e+00,7.530466284682031386e+00,4.367160112870417166e+00,6.287226024854510875e+00,5.706631251973093732e+00,5.845231058234180210e+00,1.014040191927637125e+01,5.815972332014005985e+00,8.624320590323407032e+00,3.720981644496544671e+00,8.631107497696186570e+00,6.211837608567877034e+00,7.802586778946761115e+00,8.872577824398280910e+00,4.081376973740585612e+00,7.162451774086377121e+00,8.187961972445854997e+00,5.520076856571803248e+00,4.903182324505136691e+00,6.252687646431671631e+00,7.633423760761018251e+00,5.020104751734752568e+00,7.443555723645834732e+00,8.571408959132840621e+00,7.765731528832612085e+00,5.352037684447218169e+00,9.937727307892245676e+00,8.815337955293628625e+00,3.354628816796231927e+00,8.089327773545377909e+00,5.696244773201229350e+00,5.728235847649851387e+00,8.061641494193491297e+00,8.096256448837131359e+00,3.593455432732128862e+00,4.592178849615629943e+00,3.412940318407700513e+00,1.168023825379088976e+01,8.440805828709763148e+00,4.268736601132294695e+00,4.804791989321367751e+00,8.737419597886923128e+00,8.316296091954928471e+00,5.813281259213312069e+00,7.141175994492916068e+00,6.132773684905100886e+00,1.158910605478191869e+01,5.996433486243556210e+00,6.183881360384983594e+00,9.922115473859992818e+00,9.246257995356717885e+00,5.786514347098160371e+00,8.526338652629574355e+00,8.689281315206669021e+00,1.219094400834984881e+01,8.022542520831402513e+00,5.368546522360459150e+00,7.985222918922579183e+00,6.172158724732419444e+00,4.694131474358224310e+00,8.612895322491969097e+00,7.001840305088709471e+00,6.266281452557032061e+00,4.152499195287275846e+00,7.233393105102562615e+00,9.914158627488012243e+00,5.847640801322162574e+00,5.755459879621673380e+00,5.601535536257156167e+00,7.611494650686853269e+00,5.633563317290372296e+00,2.051032999068456597e+00,6.471050284441732359e+00,4.041494506043836310e+00,7.379077464682418430e+00,6.831891701960818075e+00,6.175163453697572358e+00,9.370516801201079105e+00,8.738027448483604687e+00,7.262473407954158411e+00,9.519258594744542279e+00,7.233072834499552961e+00,8.808395777251856629e+00,7.513973255505552729e+00,5.501121166347986424e+00,5.609759604616894713e+00,2.779888412585424184e+00,7.318807762613941392e+00,9.594954294287168395e+00,4.471677873864464914e+00,7.245009587061353784e+00,7.211711099650738532e+00,6.637520468661133322e+00,1.058078562541965084e+01,7.952907194191101148e+00,5.669474518472997104e+00,5.627806223010882292e+00,9.381244292265824569e+00,3.715284877326797464e+00,6.782248648823864912e+00,2.981573495775362126e+00,4.021216116898751025e+00,5.173409203561215364e+00,7.792747140144784090e+00,6.290355538104071442e+00,4.685682842157605776e+00,7.141585275459536142e+00,6.194040394978710395e+00,6.418544116396141419e+00,5.744880644498116418e+00,5.262596238080702093e+00,7.332919793135635800e+00,5.841113556528616968e+00,3.700650365385916629e+00,8.512599025149000909e+00,8.674409508933088375e+00,7.368978193618684003e+00,5.440476340156294555e+00,8.169788872804669921e+00,6.940321761534027800e+00,8.326447763780109312e+00,5.712431218486857532e+00,7.541992107741206652e+00,6.412068062500060783e+00,6.463868017626128726e+00,4.647756225283741216e+00,8.073474701367391759e+00,6.719344910921575931e+00,6.072435435238952905e+00,4.377147606093382493e+00,7.290342174928606589e+00,7.264360173764000450e+00,1.127860407639404983e+01,4.389624640047354198e+00,8.963834458421349183e+00,6.283543822116468114e+00,7.231484056228630664e+00,8.354241537771303072e+00,5.921674007837436804e+00,7.096323048953237844e+00,1.015880052199675276e+01,9.781949217298972599e+00,3.793736201326206370e+00,5.795107167728938080e+00,7.962781619014025480e+00,7.015312236952105707e+00,6.729636921964259777e+00,4.193731708860742202e+00,8.497075108953179523e+00,6.639505770591843437e+00,7.897163845544782568e+00,5.865762726577715469e+00,4.848863898982944676e+00,7.159019887170919638e+00,7.149963731373463638e+00,9.709419281550808023e+00,1.130958160973457005e+01,7.638419334802584615e+00,8.992423767373255217e+00,7.491568378428180353e+00,8.267854606492623049e+00,4.494521426369134431e+00,8.887177837091279287e+00,5.830762914946284958e+00,4.217090056644033247e+00,7.224864075215669423e+00,8.331029703882688153e+00,7.714766332904066992e+00,4.883978632574701884e+00,8.346652884784933946e+00,4.053893179057308060e+00,9.908718986477630608e+00,9.583381921708596707e+00,8.908774410452117820e+00,8.446046567873123578e+00,6.919964095609271837e+00,4.784074512321218720e+00,8.000003464636858297e+00,8.393109752788092237e+00,6.852616568070815539e+00,9.145387041065633937e+00,6.722654936240400225e+00,3.132343507948253336e+00,5.399359785283634139e+00,1.052903674396911349e+01,4.366194109414899494e+00,4.964318722174687615e+00,5.663485047416673801e+00,3.558019750874786613e+00,1.057740601313652462e+01,6.539373752620865510e+00,5.008510175978287293e+00,6.870901012320390855e+00,7.623329282840656695e+00,8.301140415092785219e+00,5.800354898717736241e+00,3.186914451168234574e+00,2.462367353325003450e-01,5.251324472871656823e+00,7.319195775291311712e+00,6.066115921821698898e+00,6.156213615665396155e+00,8.636034320922622243e+00,5.283481600116838095e+00,7.435507453520162180e+00,5.771180453249051823e+00,1.087296290990935965e+01,5.420426870142981635e+00,7.980949903419444880e+00,2.773744858643260258e+00,8.453161483121085951e+00,9.856305760001355054e+00,7.110545501279910141e+00,1.078152382619718708e+01,6.449446132000691279e+00,5.802652160109209589e+00,6.457512097706097798e+00,6.194323582345747425e+00,1.040881976324844871e+01,7.696430541327375252e+00,8.321383871545465993e+00,5.661196647223317058e+00,6.394376367905056036e+00,7.809194006484847073e+00,1.055410836193936142e+01,6.826013093694530021e+00,9.554275386644196288e+00,8.442205172961305237e+00,8.758288514151711723e+00,6.995106954685298639e+00,1.007855722208853422e+01,8.319857618895611040e+00,7.701058002759101129e+00,6.827647594456783153e+00,8.681214122586915494e+00,6.177753805759558681e+00,3.930215027227242253e+00,8.297166391935700602e+00,6.135992932755663709e+00,6.764847742281367537e+00,7.472330666161741242e+00,6.856860137690418355e+00,4.158469108907699052e+00,5.059260486120457756e+00,8.490571564578067054e+00,4.612445004408388449e+00,6.884636300459435532e+00,7.613773541857419502e+00,4.426485240512755936e+00,2.986464644348148845e+00,4.962491164183935766e+00,6.911711326152552459e+00,6.831891045684063357e+00,6.163227604967330464e+00,3.759619423759396728e+00,6.817850811618722418e+00,7.799341717308261757e+00,9.381414002464318003e+00,9.134834849608457930e+00,9.752722558463558400e+00,6.429843201736717084e+00,1.025446560241000071e+01,9.339578566418374805e+00,3.473002719588329068e+00,7.709539849778058951e+00,8.026088431973031234e+00,5.883015598326522877e+00,9.423071574801618056e+00,8.061834306705142339e+00,7.016498656682827573e+00,4.914130504652170828e+00,1.045288526562871034e+01,6.945883944520327979e+00,7.389014810850635939e+00,6.832496605284151592e+00,4.356362465528276218e+00,5.141025639258137936e+00,8.485002976045125322e+00,4.166262927183105091e+00,7.529894634226769412e+00,9.674102152905426522e+00,9.395582093652192768e+00,7.624659012150676318e+00,6.714630245326002722e+00,1.069268265783348681e+01,6.156276082100164082e+00,8.300410196616487823e+00,4.855707994838134312e+00,5.808306137271056713e+00,5.148211074767640838e+00,7.385533458389945238e+00,8.010651469470881025e+00,8.916924654847768750e+00,3.698173243173278557e+00,5.161309929827778475e+00,5.707151004410880191e+00,5.666448636739707112e+00,7.131540873444897954e+00,3.860419372442677410e+00,7.048809936361080553e+00,6.310365159594787166e+00,5.147973613531666714e+00,9.256246855427482600e+00,8.978251945385157029e+00,7.182777001757883362e+00,2.198839524965116254e+00,7.857435212224213039e+00,5.843116186920896737e+00,7.277269271685407048e+00,4.934603946229329630e+00,7.566507992396732440e+00,6.923833853714158160e+00,8.255999935294813241e+00,8.591391674267878642e+00,5.240695069006978457e+00,5.669628509026409802e+00,6.841689842686854206e+00,4.253057073249911113e+00,8.051261931961121832e+00,7.606739724646774725e+00,8.794190538522673961e+00,7.848826171801296603e+00,6.919143633089729128e+00,9.251587262994533489e+00,1.089189531632069219e+01,5.013776563555044419e+00,7.182787585470046920e+00,9.901578526223385524e+00,6.794698365714496369e+00,6.926579456476359198e+00,8.434988530962792552e+00,8.017276999348206701e+00,5.171389735050146541e+00,4.155360008176505637e+00,5.713982596116706780e+00,3.669717733585275976e+00,5.289343328763818519e+00,8.750895464796871082e+00,6.151367234921815808e+00,6.202112943028157410e+00,4.589503583885846894e+00,8.592588181738470610e+00,5.143697258849115883e+00,7.608511297511867610e+00,4.640607634468979725e+00,5.981264581712061101e+00,4.202383617910730784e+00,2.223534665845969371e+00,6.517152298573829050e+00,8.062687595460044321e+00,7.553630393031160573e+00,7.164196020387012531e+00,9.615696889021418059e+00,5.585275240616271120e+00,7.485405756770552976e+00,7.314048834772425955e+00,7.361249413627280802e+00,7.402834578661552811e+00,7.756486989947113386e+00,7.065168271390919408e+00,5.161852024228402058e+00,5.214016407649588736e+00,5.421642204160905365e+00,7.961289597240459592e+00,3.349842661880812589e+00,8.621650847596059819e+00,4.440170936222283871e+00,8.462846315567745137e+00,5.827615527594383948e+00,7.364404536423651670e+00,8.242700394137933984e+00,1.057389960592675671e+01,8.336656791322882398e+00,5.738780432441336288e+00,7.763666548405207202e+00,6.623950495159481200e+00,4.965145850800304572e+00,1.077663601818423800e+01,7.224621761916058205e+00,4.858786404490967215e+00,6.686700897936636245e+00,1.021921392755702840e+01,6.707404101750692682e+00,6.855320606601887690e+00,8.707293833054720267e+00,4.839177801980248717e+00,5.888692186374735016e+00,8.621283511889341611e+00,5.338156610489726006e+00,5.606637983178309526e+00,7.758200203557687580e+00,8.499651593455723741e+00,8.972256548668745779e+00,9.208331112577868183e+00,5.156356841523335177e+00,5.677438646791534538e+00,3.254467488800630193e+00,8.810355067129419737e+00,6.269948698702564549e+00,7.427845489802555434e+00,7.037682455382484825e+00,8.562237429306891912e+00,9.059492452990925315e+00,7.929246184420605914e+00,5.737101041589355965e+00,4.475165840722799437e+00,4.751446952987601335e+00,7.680108102591750807e+00,4.299727128341341853e+00,4.761453572510124133e+00,6.990826860955102084e+00,7.708959656680632655e+00,8.272705008104317415e+00,6.096111856000983487e+00,9.371377878024215846e+00,4.036203400814413200e+00,3.966904608350013017e+00,6.865369720771442807e+00,7.008655496076593217e+00,7.467239052082089934e+00,8.625527227583999590e+00,7.476622534878837989e+00,5.695259695886531581e+00,7.538728601511992089e+00,7.066137383533843241e+00,5.684243476983078303e+00,1.129764438662317261e+01,6.779715204791719074e+00,8.569426257835603522e+00,2.039521998469697728e+00,5.404176807059600129e+00,8.153927806353514995e+00,1.081523289536745125e+01,6.925597438074437839e+00,6.987777685306872932e+00,5.660279065222884931e+00,8.560226904710493301e+00,3.974568771446256310e+00,8.220580364623170766e+00,1.000618263190083823e+01,7.545731048547838604e+00,8.759037971529966882e+00,1.635582735607340688e+00,7.102361069857392906e+00,8.257690700360516445e+00,5.828489875593588998e+00,6.699446016248235658e+00,7.230183427755054737e+00,5.813598137904312679e+00,7.133671513991180824e+00,6.128371275780390981e+00,5.110190289007161546e+00,3.172087573700487440e+00,6.473922460543826141e+00,8.059249738649965522e+00,7.791931472498887068e+00,4.981886265797522029e+00,7.142253577801884745e+00,8.939572850053382425e+00,7.723802796347692734e+00,4.563660400168215503e+00,9.817214267223343782e+00,5.918520742943143453e+00,7.517575207758346423e+00,6.390114243046655318e+00,5.572742458489951645e+00,7.079080033945048811e+00,8.390726642159327398e+00,2.784030865830360746e+00,1.069708607051747684e+01,4.395434468339398215e+00,6.486301322997470642e+00,5.751032889610235621e+00,6.784083567487969368e+00,5.080055421028616180e+00,5.027798802647192034e+00,4.681128099709040313e+00,7.448973203562265333e+00,7.502323504808826371e+00,8.850812758582632611e+00,5.308031213800991743e+00,1.025701120403533118e+01,7.414703024325579150e+00,6.144706049623460231e+00,6.959116482686621197e+00,8.193613430352211680e+00,7.421417304199147580e+00,8.337029291028176914e+00,7.401792005959962673e+00,1.003760169313009243e+01,9.411294650369576686e+00,2.305019450009035964e+00,3.657468936275854343e+00,6.554358449611719983e+00,1.062307371152358471e+01,5.871868660836558895e+00,3.537794850919561362e+00,8.367580660763373146e+00,7.351423271646585711e+00,8.506192753102368442e+00,6.300443694530821759e+00,1.075467039062550079e+01,4.533297855838034351e+00,6.762256882010643899e+00,6.654347233585413690e+00,6.798221269996111538e+00,7.798413682785527712e+00,5.660324561067932692e+00,9.010241893176528905e+00,7.378164233655422954e+00,5.609618966968929143e+00,1.017727440002817296e+01,8.908583426184494058e+00,5.952384396516381848e+00,9.120725894002164935e+00,4.656512148924195849e+00,8.185907219282556824e+00,8.165278113723681841e+00,5.734161524384946418e+00,8.466776813675581437e+00,5.644076862275439588e+00,6.822629229345790414e+00,6.753776781898367609e+00,7.208803323297955146e+00,7.996151532266111417e+00,9.016178919156526916e+00,6.713686186650644316e+00,6.044456807314508850e+00,9.375320128382972129e+00,8.008186693992318084e+00,7.861566081682035190e+00,6.391201754880414754e+00,3.940501274776788687e+00,6.533260264902173375e+00,5.413895364925090270e+00,6.673948280831988100e+00,5.428382245218402957e+00,1.009735722130013613e+01,9.399098015219284008e+00,7.292164832842543021e+00,5.793342796786665971e+00,8.390555376448746827e+00,1.139208565872789514e+01,3.862450580520893517e+00,7.877674092836890907e+00,4.941141430852431071e+00,8.533232376161262067e+00,1.013031091505638948e+01,5.458087388838128717e+00,5.985515229561259254e+00,6.314298793954473688e+00,5.811068318008441480e+00,5.850981309742649294e+00,7.372057026042249106e+00,8.292416127676268900e+00,8.440136785762460292e+00,8.354348139938327478e+00,1.110871007980820302e+01,6.667810292724960064e+00,7.612314597446184550e+00,3.600045567481925168e+00,5.577595110618731589e+00,4.838046115173035844e+00,6.266572853792482078e+00,5.511065674387493729e+00,6.485956045092602373e+00,5.447621326584249246e+00,5.458673902755358576e+00,6.092642891189772314e+00,1.139671992819927837e+01,7.248784843199729266e+00,9.530603097127775314e+00,8.981080759324305163e+00,7.795959428360957233e+00,9.417685585027816941e+00,6.370164279236021798e+00
7.862626862227505065e+00,9.543758170874221847e+00,9.562271264867421294e+00,9.261051893834116200e+00,9.660210359790198709e+00,9.317042007036830498e+00,9.465893326206797909e+00,9.057575839271386542e+00,1.040203514693066467e+01,9.774134135739656060e+00,9.883190079464494460e+00,9.839737636892188277e+00,1.046372547316183343e+01,9.741935502997611351e+00,1.088069700324586364e+01,1.039252274994376535e+01,9.512572870754965493e+00,1.088813207276667860e+01,1.188882858067002246e+01,1.007659403312347379e+01,1.126409148934486737e+01,9.011913206106463292e+00,1.173712729884897854e+01,1.396401067225774462e+01,8.685801888151225114e+00,1.251172933471705484e+01,9.041883030510597052e+00,8.703022350383456285e+00,9.861733353526947354e+00,1.031198291290294655e+01,8.868055745280139845e+00,1.039895216553243706e+01,9.758559230354311609e+00,9.139016263596376533e+00,9.109624717275897510e+00,7.066108995652035318e+00,9.854845862742079632e+00,1.127556042151792148e+01,9.559322198663332770e+00,1.087432489305235528e+01,9.649884419431902671e+00,1.153963911230898098e+01,1.017172745006926426e+01,9.615446666830226974e+00,1.153433287185865019e+01,8.241165650793613295e+00,9.736757698009833817e+00,1.060803806326954657e+01,1.044448550832596467e+01,1.235133100350608615e+01,7.840371965928911280e+00,1.148170146124388857e+01,1.053777376466498161e+01,9.956804984864882968e+00,9.617318844939905631e+00,1.076130713870140454e+01,1.024815439355900892e+01,1.283727895300044963e+01,9.756014813083350390e+00,1.182611684452442447e+01,9.233875121552680199e+00,1.064852709215006854e+01,9.481447105375373496e+00,9.752727557744549358e+00,7.427558542791780738e+00,1.059098267873852883e+01,1.078408267260746989e+01,1.084087168825723246e+01,9.789356649385752007e+00,1.135481448147134387e+01,1.112430593248037525e+01,9.310543054078831204e+00,7.693492505975617846e+00,1.113316651256596757e+01,1.084786814097623164e+01,9.585494004453074979e+00,8.386201932777538559e+00,1.207652909118890072e+01,8.813480935254888848e+00,1.008945787152864959e+01,9.903195847712948918e+00,9.527126888281216566e+00,9.303268617545723984e+00,1.051325453439408264e+01,9.878785898092363738e+00,1.148090935937041657e+01,1.011464757342137410e+01,1.027075406855413497e+01,1.180207757535363022e+01,1.100506044292074215e+01,1.215230393911814133e+01,9.326921860660501551e+00,1.133072201266154444e+01,9.289372209617393850e+00,1.100366369699285229e+01,1.169509031170237456e+01,8.363588651648926842e+00,1.123860557739431698e+01,1.200966480579159068e+01,9.749059307957555376e+00,8.710002229271195162e+00,1.168638300491885396e+01,1.118976516561399492e+01,1.216015895794353696e+01,1.018704651255382565e+01,9.077918916634056146e+00,8.791339971850685941e+00,8.345352901114384991e+00,9.204001637032153127e+00,9.725248858070411728e+00,1.250990086472054941e+01,1.086384756873516011e+01,9.217032635853936284e+00,9.727803418345835951e+00,1.178873544666410389e+01,7.929702792447553605e+00,1.123910524292820057e+01,9.185467225239040800e+00,1.092672042227674289e+01,1.004126289676530170e+01,1.039872960210506392e+01,9.378121776757287975e+00,7.763291789773488993e+00,1.017982815105697014e+01,1.290330996202643199e+01,1.090943462979405787e+01,1.012423737173901728e+01,1.068586103150228439e+01,1.068086028155505574e+01,1.112433455379220248e+01,1.032282929521017323e+01,1.106998010180864256e+01,8.722696636074177334e+00,1.185437916584558771e+01,9.341355711418330543e+00,1.019731620311822518e+01,7.706028471394894552e+00,1.081107090831763173e+01,8.691814989996588636e+00,1.105900863166375458e+01,9.514535629438963582e+00,1.088964354078958152e+01,8.997824022465797711e+00,1.133469020674329286e+01,1.004041613747744854e+01,7.286531225927404876e+00,1.070738650035499084e+01,1.040580880718014534e+01,1.073300638276421459e+01,1.031032153162643539e+01,8.911897360478885588e+00,1.082560311979649903e+01,1.013678802349754982e+01,1.006816867211247413e+01,9.418386438070426081e+00,1.212647126418935528e+01,1.093911213386595627e+01,8.904009420908748140e+00,1.266008010559589181e+01,8.546876233642880294e+00,1.045109529879771237e+01,8.058838073264778856e+00,9.076857113644601682e+00,1.032882334662234669e+01,7.907661074707442062e+00,8.681199136338689115e+00,1.124580180941419094e+01,1.195241136553913108e+01,1.155959495107638979e+01,9.950339125375272431e+00,1.047472367140584915e+01,9.379795113752011915e+00,9.975078733741552739e+00,1.129055396575671821e+01,1.031797575228550023e+01,1.057026451953048074e+01,8.747234286162344219e+00,9.155410066354544796e+00,9.380682396453904559e+00,9.963372072919936429e+00,1.027996608593028149e+01,1.013909050252605049e+01,1.070123327717317174e+01,9.587842473332262472e+00,9.950616559417508000e+00,1.030728697784575765e+01,1.044697924153324209e+01,1.015438055644196069e+01,1.057689743954275663e+01,1.060568932448339474e+01,8.751357524683770706e+00,1.049555245802003789e+01,1.087132557762727458e+01,1.245719337538356797e+01,1.176157667763992976e+01,1.175547821372439650e+01,8.631652665116591905e+00,1.258386158581483372e+01,1.043570382696051801e+01,1.095687805835198603e+01,1.058725481052107575e+01,9.659045644397156849e+00,1.049325406043241671e+01,9.832252784216708008e+00,6.513643591367095809e+00,1.031530147424139976e+01,9.376001338034093635e+00,1.026779604832172588e+01,9.925702193198029377e+00,9.807339656491599555e+00,9.925282277755576033e+00,1.049347335352880606e+01,1.006542019655960374e+01,7.800938201068175815e+00,9.245554966320790768e+00,1.028063069231031967e+01,1.103833167108945190e+01,1.247581724533091574e+01,9.829189383004328207e+00,8.922911103061096583e+00,1.104216904109678232e+01,9.646673418051346260e+00,1.089213049584835247e+01,9.703412115753481615e+00,9.395197644896633449e+00,9.815160740050044907e+00,1.015118897684319421e+01,1.006297304138314885e+01,9.010878348353205780e+00,1.150425189517734026e+01,8.010012854453927744e+00,1.109279636950380699e+01,1.107324009962148104e+01,9.957900320645016734e+00,1.044150967618604398e+01,9.327231845491787965e+00,9.351332673584542121e+00,1.235077047789793170e+01,1.001002800066134668e+01,8.903315860452293506e+00,1.134181300057522002e+01,9.959789428837321879e+00,1.161611705506937753e+01,9.621636338516863063e+00,1.024500239716222261e+01,1.148623731362307154e+01,1.066678175262386219e+01,1.038235812601007524e+01,1.081125934634928143e+01,1.017691109808985317e+01,9.173151652819663937e+00,9.161040481062793006e+00,9.524667454925664245e+00,1.053678089100402460e+01,9.995996370524734331e+00,1.169449201905534075e+01,1.053396792813265037e+01,9.006221421720285392e+00,1.168819054052795181e+01,8.965303919056843540e+00,8.375161494284794728e+00,1.255590570943967244e+01,1.009604807785495417e+01,1.067406261053545968e+01,9.007671341466132020e+00,1.000399093090737601e+01,7.768595029006666763e+00,9.415604445442088632e+00,9.289490848347455199e+00,9.524966435449647051e+00,1.098775984963090124e+01,8.501957758072922644e+00,1.004242336079518516e+01,9.030766905996031824e+00,1.033568919885876980e+01,9.345976766979651629e+00,1.028688349013254566e+01,1.005128858370220613e+01,1.160238820965944484e+01,9.164550625539561679e+00,1.022192132354761540e+01,9.366778178966351120e+00,8.670146804520070916e+00,1.010444847233495302e+01,1.014176405522742641e+01,1.058602709382197560e+01,9.227422971296064702e+00,9.504187524951518640e+00,1.148375621728888873e+01,1.330275455064942314e+01,1.109145266880475944e+01,1.083751230548261546e+01,1.154874174082506144e+01,1.173111048144779289e+01,1.066136781971265535e+01,1.094762566153966787e+01,9.342406798292406833e+00,9.081765518607479493e+00,9.502797495939450556e+00,1.079373252899645586e+01,9.849801798405774633e+00,9.841381660879340743e+00,9.664200628593174969e+00,9.506294626404548254e+00,1.050333409348115588e+01,9.394439897159315933e+00,1.135248011191556117e+01,1.152672279230730190e+01,1.042070127390351075e+01,1.139927708254453975e+01,1.327930953617272358e+01,1.063008862776970886e+01,7.635571771291425058e+00,1.010916277921741901e+01,1.008519653794123627e+01,1.076166037627629990e+01,1.076686319929975433e+01,1.003116111655715947e+01,1.127989904895428275e+01,1.077713569796680737e+01,9.974959894725298426e+00,1.213707385739669853e+01,1.054038915614721894e+01,1.028759288679998463e+01,1.064484285165864463e+01,9.768177893594202743e+00,9.512746442526252011e+00,9.380960533509522747e+00,8.855324670745492455e+00,8.136288345419341539e+00,9.269448551046664875e+00,1.038733629256418745e+01,9.241471634736468488e+00,1.018071425923246487e+01,9.935605754095121256e+00,1.074209945332163763e+01,1.111438829014950969e+01,1.131039650701500143e+01,6.748397090597839210e+00,1.104282775992848187e+01,1.015579943334123314e+01,8.409339701272273260e+00,8.461186117018410613e+00,1.151025344784611271e+01,9.452293595818131777e+00,8.497700261223069873e+00,1.143031832602922826e+01,1.018768858343244510e+01,9.520618606321372468e+00,7.867097450835185413e+00,8.743046399105773858e+00,1.047730148094288261e+01,9.557891049439470876e+00,9.892133761087409383e+00,9.617288610311868879e+00,1.033231579155431135e+01,9.545432287759380685e+00,1.014903541482169125e+01,1.040953451493083293e+01,9.524022872568245646e+00,7.861387831925876313e+00,1.010278894568104135e+01,9.919611997280881610e+00,1.166271644231849969e+01,7.808814082293627834e+00,1.161589509987931201e+01,9.442891179807215707e+00,8.757787645323372061e+00,9.854563459663278735e+00,1.057219593091235588e+01,1.051198361084698085e+01,9.325875774023392850e+00,7.231930322937403233e+00,9.805022981732845366e+00,9.087992906448535635e+00,1.112067221038313569e+01,8.377285966470243039e+00,9.639508298062539282e+00,8.533535415625820519e+00,8.286933428553048486e+00,9.696798045569574143e+00,9.281729526946989495e+00,1.069437190546855554e+01,1.115058407263765794e+01,1.230983094315680404e+01,1.014837548098186382e+01,9.459690729599003589e+00,7.701472277558098156e+00,1.017323987408219033e+01,1.077218962012550030e+01,1.022229821316415155e+01,7.675525252914335184e+00,1.007656931236377140e+01,1.127088170682029933e+01,1.024400878688577698e+01,1.206537268975877097e+01,1.093518743950865968e+01,1.108826819344699643e+01,1.151168716711691609e+01,1.127337386576495604e+01,1.087192730810623686e+01,1.047452288982473334e+01,1.169183925561969772e+01,1.200039208578374961e+01,1.081962255028308739e+01,1.012027054932916847e+01,9.341976584687596841e+00,9.369106887268097594e+00,8.362994224523751186e+00,1.132866243625855596e+01,8.713671461888912617e+00,7.902711835842179511e+00,8.894339289534736182e+00,1.136603124025778655e+01,7.092545876669770877e+00,8.450712854940917396e+00,7.513231731110204592e+00,9.199140653486413299e+00,9.683178641732739678e+00,1.023338156050842329e+01,1.083590964331386175e+01,8.180747570916921063e+00,9.333613861134477219e+00,1.192051178639283826e+01,9.435140686473953764e+00,1.014890117663908242e+01,9.495000924060096992e+00,1.066213437797230590e+01,1.012022942188843189e+01,9.953840413338484794e+00,9.837658503001586396e+00,9.850407823889847592e+00,1.138265452738825445e+01,1.131071150436675232e+01,1.193288573493843252e+01,1.030280071562510713e+01,9.665529028137106238e+00,8.526598017500788274e+00,9.185834953106231993e+00,1.139786215955538040e+01,1.100264604587694528e+01,9.659282434193551481e+00,1.052229438621266411e+01,8.892896423862108435e+00,1.002378271598372272e+01,1.197378332626155562e+01,8.308721505326170487e+00,8.982163986493928221e+00,1.082506072430614097e+01,1.083263366130663918e+01,6.713396228440078772e+00,1.068954320018409199e+01,1.033364892360190446e+01,9.739531321203815040e+00,7.768891623583957795e+00,1.276169853233143492e+01,8.512066314188883709e+00,9.800099698157998418e+00,9.588823344597635412e+00,1.152290172109387711e+01,9.657155559156171520e+00,8.619505695076062679e+00,1.125493939450690917e+01,9.915011958653753510e+00,1.173903200308569161e+01,7.779631551701681857e+00,1.003264858551235328e+01,1.180708024043232562e+01,1.150501983415056273e+01,1.019108999027778317e+01,7.726701728455243945e+00,1.094947546242797642e+01,9.529835473604171270e+00,1.054987909273526014e+01,9.559554200847767191e+00,1.027299135134803443e+01,9.904470241460368030e+00,9.283247938796659326e+00,6.612812879490814311e+00,1.057146405223829611e+01,8.497120703448491241e+00,9.618609672892937112e+00,9.321406613809600117e+00,1.200613185196615618e+01,9.970214821939045180e+00,8.960259199311281009e+00,1.044346839834167895e+01,8.965932837394987587e+00,1.083974781432947054e+01,1.004206559642761931e+01,9.610944668886144626e+00,9.427742604219638167e+00,1.013341217904488722e+01,8.614279592912110317e+00,1.172259300717654895e+01,1.077449081861797353e+01,1.065640750362822686e+01,1.317727438070453694e+01,1.148952382168640796e+01,1.070084051666833602e+01,1.069175809152350531e+01,1.054956630423301256e+01,8.648880406812848420e+00,1.177497959028731067e+01,1.010571448456736654e+01,8.670611649598235715e+00,8.988901776290212808e+00,9.286419031732991769e+00,1.067856974657457769e+01,9.738758989226989016e+00,1.074722356224407704e+01,9.741933721234945054e+00,9.370372389216942821e+00,1.030704952566893873e+01,1.079563872129025270e+01,1.102329078148919805e+01,9.681740750024776077e+00,8.328880395679242099e+00,1.050260754503189453e+01,8.767150241600926819e+00,1.128058236175390583e+01,1.067726146256530839e+01,1.167938225855635181e+01,9.086272456947700249e+00,1.182162849841647301e+01,1.035527771187872936e+01,1.109025577968060894e+01,9.958583814012843760e+00,1.083448487904160018e+01,1.056105900191239577e+01,1.067393705400028558e+01,1.083558701140724345e+01,8.372476354747265148e+00,1.121942553744284865e+01,1.141443226269371536e+01,8.522715492079157684e+00,8.281205717707251779e+00,1.000037420977074731e+01,9.489261752843805908e+00,1.121253418721570050e+01,9.600231317039739309e+00,1.207830363752258407e+01,9.360286150860027021e+00,1.253657632405745304e+01,1.123276257117999144e+01,9.332352130550180647e+00,1.148678704205809353e+01,9.907576285687785145e+00,9.785316281030915775e+00,9.286370362494825059e+00,9.658382849249568025e+00,1.058387915277404367e+01,8.239200567495519323e+00,1.171046340491768056e+01,8.431007822997305112e+00,8.178794957957025602e+00,1.036078335112434878e+01,1.031700616823834515e+01,9.757946477373179661e+00,8.240802536691321123e+00,1.081551018423939858e+01,1.041364509197478583e+01,1.093864236124446521e+01,9.678375863898047271e+00,1.129876334455606823e+01,1.059080419353517399e+01,1.056791399325275371e+01,9.444098431900771473e+00,7.843918503252719887e+00,9.834797928680943713e+00,9.951294529487965335e+00,9.302741993263554221e+00,9.019476689567875738e+00,9.133537190595419020e+00,9.461259597336677984e+00,1.130522668650114859e+01,1.167797093918375140e+01,1.036953649395817578e+01,8.459412863622716827e+00,9.737885778801491199e+00,8.420655563957893719e+00,1.019601035713784576e+01,9.498819882177205187e+00,9.150964401085991184e+00,1.191594019291744644e+01,1.095899472438161837e+01,7.214932503174965817e+00,1.055630137299832150e+01,8.142897537716043743e+00,8.703443389764286664e+00,7.575526592590197339e+00,1.035495278353934978e+01,1.166560276691073739e+01,8.819551251215386856e+00,1.037760259423752096e+01,1.109084386539437794e+01,8.291504950265391471e+00,9.262582473301856467e+00,9.710609490917480713e+00,9.272687200116997985e+00,9.299545016793361540e+00,9.555109075762915793e+00,1.094557689501554165e+01,1.163079549014012137e+01,9.641731508860633681e+00,9.804014077803856253e+00,1.075866551002841121e+01,1.083878531298311465e+01,8.008650753051517412e+00,1.080974028900065598e+01,9.495128009328304586e+00,1.127879193405028602e+01,1.079745940417958749e+01,7.584496563938261104e+00,1.084110301401201504e+01,9.942932825404319885e+00,1.018367274020581625e+01,8.732168932982585119e+00,1.168890541674944750e+01,1.131263949843547678e+01,1.083667751304620275e+01,1.138048467369797123e+01,9.963058859798755051e+00,1.032553441886085466e+01,1.015253499204590071e+01,6.832820465066458127e+00,7.310940841983833316e+00,1.099793060899357400e+01,1.078172989501335977e+01,1.061860819514642884e+01,8.040200790989537438e+00,1.066721402087819470e+01,9.141966601198692643e+00,1.133165788012720121e+01,9.009918798608820723e+00,1.113772773660172710e+01,1.150715479336071922e+01,9.202773628322947985e+00,8.323918899954168893e+00,9.181147200635395578e+00,8.013679514454095099e+00,1.062609573584702360e+01,7.301342050777897441e+00,9.681631292930754640e+00,9.605160145771332481e+00,9.974627685902193619e+00,1.175470630984730391e+01,9.485500337606161736e+00,9.697598825812322687e+00,1.031456272881476721e+01,1.019284877719363713e+01,9.524720908885582205e+00,1.118520431443402607e+01,1.040347671182504286e+01,1.063191132485324175e+01,1.118402374860160897e+01,1.035185903192072132e+01,8.665769546810437873e+00,1.059404479320259718e+01,1.059808326586015603e+01,1.243179376594197372e+01,8.081602920728535366e+00,1.109702497603913152e+01,7.608063695024495310e+00,9.401302988201962307e+00,1.150676892118575978e+01,1.067663668691480261e+01,8.272806825399463548e+00,9.945061946107669471e+00,1.020376740660971393e+01,1.125483332321701901e+01,1.211684350051934800e+01,1.127896481723680466e+01,1.129382197047518943e+01,9.315071822428334869e+00,8.666060837569954600e+00,7.653014702378554190e+00,1.108446316904615792e+01,1.227726057627775624e+01,9.834526687976746118e+00,1.030540760937891420e+01,8.758638122475225885e+00,9.187472911948480814e+00,9.333757924629745517e+00,1.146071189143322400e+01,9.723004179337140229e+00,9.893934885552635450e+00,1.045946090333940148e+01,6.384450920921556083e+00,1.064940626810112612e+01,1.064911118362542730e+01,8.465253803372485564e+00,9.345046944832590796e+00,1.177501982404664282e+01,1.019485175236527574e+01,7.765837347851741512e+00,1.095272546131816327e+01,7.803369925898834936e+00,1.312715892772859405e+01,1.272795913372864618e+01,1.099405232212230210e+01,1.062961479986492286e+01,1.277774921189116064e+01,1.068900290267688113e+01,9.023335950579824072e+00,9.577323045019991099e+00,7.309900117548548515e+00,1.005669495319167872e+01,9.172307613675769744e+00,1.061463842856625739e+01,1.063295308449418286e+01,1.130303409160570638e+01,1.033103148149082884e+01,1.240399962632678310e+01,1.035523254037029339e+01,9.252208843686030804e+00,9.718338442051875248e+00,9.074696590861201173e+00,1.083384871682861039e+01,8.795156441800003222e+00,8.693329919163810260e+00,1.154806892852826827e+01,8.930198798236554936e+00,1.062261666096355128e+01,1.014091556442483721e+01,8.577627201961522729e+00,8.545972607670105248e+00,7.095308881409936319e+00,9.477771538528658724e+00,9.593261917292123186e+00,9.324800532463932257e+00,9.826845005605022720e+00,1.065217603945829516e+01,9.485439219839031821e+00,1.022477742820153779e+01,1.128142816018753436e+01,1.058688740005253770e+01,1.106416539673849897e+01,1.009899822842908179e+01,1.199864212480000525e+01,9.345613389733570031e+00,1.119874512893494511e+01,1.116876977793250703e+01,9.347425192427621710e+00,9.003438274395813679e+00,1.037161983706734070e+01,6.980733946510090604e+00,9.632656001949467139e+00,1.065527747021549665e+01,9.453053748073870111e+00,1.086922158937962912e+01,8.877971862835238426e+00,8.942962667029284773e+00,1.012885014083019897e+01,9.337647513825423573e+00,7.648886579770426408e+00,1.104101564453259776e+01,1.066592602498110764e+01,1.132162801392583162e+01,9.871026963377280694e+00,1.086437256424617992e+01,8.893589905955835206e+00,8.898961631472028344e+00,8.745872775737174365e+00,1.158385208615233175e+01,8.490086502285457470e+00,1.032581672117671623e+01,1.062343874576927050e+01,9.191088936156305067e+00,9.998070087509347559e+00,8.845758140791522450e+00,1.079507390771603781e+01,9.896334662040066732e+00,9.857076151314801749e+00,1.007955920440579334e+01,1.059194880746784406e+01,8.777843035978762032e+00,9.248176493937350529e+00,9.216616400978876911e+00,9.697505092190167986e+00,1.051059998098543780e+01,9.820504446774657836e+00,1.083684519321742457e+01,1.153557711687122200e+01,1.157059653496055063e+01,1.021446810746259004e+01,1.128814065442232462e+01,1.046739644585607820e+01,1.130390524283612308e+01,1.002602005695542076e+01,1.114794700538915428e+01,9.905524122690167133e+00,9.696197245329853942e+00,1.212841959649265355e+01,1.050621418657291528e+01,1.006844435503026780e+01,9.129937136837586564e+00,1.052481149727982057e+01,1.090253269677286774e+01,1.097140271614546592e+01,8.970129296643921890e+00,9.158361108963255504e+00,8.971576918594994510e+00,1.145884513654920234e+01,9.770132952927077952e+00,1.036156579905474295e+01,1.043661415920991331e+01,8.471006862584866681e+00,7.412223714492673921e+00,8.893653515943988452e+00,8.066771368201147041e+00,7.989607863344245331e+00,1.166220377307856992e+01,9.104683241695202156e+00,9.090172881911778191e+00,9.502800501065928884e+00,7.377331373264118142e+00,9.012826146663952542e+00,1.147174197176777533e+01,1.105805028489896635e+01,1.188118654335541535e+01,1.012034677351219436e+01,7.612843600023618151e+00,1.080944458736960634e+01,9.584961119455154943e+00,8.559028204022816055e+00,9.979407032020882085e+00,9.075764637709735183e+00,7.957330931000464957e+00,1.082545156166460920e+01,1.256424517537743135e+01,8.750910798964762094e+00,9.484008747729518518e+00,1.010348892334329385e+01,7.824039559571403402e+00,1.060990365517685241e+01,8.406996765114335801e+00,1.082598196811438918e+01,1.032842426584073614e+01,9.888790501920619036e+00,1.061681815986429278e+01,7.772910917350870363e+00,1.055004659993155158e+01,7.488773855607787411e+00,1.079263564840041845e+01,9.902986551087192169e+00,9.256224738741581248e+00,1.126369137801727582e+01,8.975034963802881904e+00,1.159365591343634350e+01,1.069654780973200658e+01,1.158916653696754651e+01,8.212112340055629289e+00,1.305522710399495523e+01,1.016609392671725765e+01,1.309997607070692460e+01,9.959122760220052939e+00,1.140197444718224595e+01,1.108742288172632406e+01,1.059351323578149540e+01,9.924329101782291218e+00,9.778524824100477630e+00,1.029146380820462348e+01,8.666898266285896213e+00,9.430950290846043416e+00,1.016865624443244442e+01,1.110306407190818412e+01,8.471846009552862711e+00,9.292667471473251339e+00,1.005573928643619830e+01,1.226565053311178843e+01,1.070119803163307992e+01,8.549609370924134311e+00,1.018366706740894934e+01,1.017104249004690431e+01,8.361418890702545070e+00,1.081185518805795986e+01,8.463886806735482438e+00,1.018702795983436182e+01,7.387021242410464872e+00,1.001532962252604264e+01,1.081228834849988196e+01,7.067130726507681260e+00,1.084440686610700766e+01,1.114328804735679590e+01,1.196036750983371810e+01,1.179495739876099591e+01,7.785361386295564401e+00,8.149581577195190718e+00,1.072966700775242188e+01,1.057413678603097651e+01,8.939061199242880562e+00,1.317302657167926760e+01,1.066391074173909281e+01,1.210144500881572327e+01,1.042880569609284791e+01,1.038417976161364642e+01,7.869411369365774789e+00,8.744421562479471888e+00,1.203124657988588808e+01,1.012749062734230954e+01,1.007712044828097397e+01,1.083009142600895913e+01,9.958511158208999348e+00,9.417606857804949883e+00,7.395257148812223846e+00,1.155337876130655594e+01,1.146084698567295135e+01,9.209068301966865988e+00,9.141509114304215089e+00,8.787565785264185081e+00,8.482082022722806869e+00,8.860826010742263392e+00,1.126873172840798532e+01,9.820863194796194406e+00,1.061294174989300743e+01,1.072839722579719002e+01,1.014056412184091194e+01,9.086355382047722529e+00,1.114767877458560363e+01,1.058119875925964770e+01,9.554081541518145926e+00,1.035122087924502132e+01,1.169946549492421184e+01,9.896471299210567452e+00,9.469165394367644595e+00,1.018134993602420657e+01,1.035666258123805683e+01,9.840593747715237427e+00,1.172168019073464862e+01,1.002067497958601017e+01,1.071430183272515002e+01,9.221341093953295598e+00,1.015986586190385665e+01,1.084695125207229793e+01,9.990258994725722985e+00,9.722869221845927612e+00,9.362167187649157896e+00,1.174154570780130769e+01,7.475980493862066645e+00,9.166916827939253665e+00,1.050918936411895110e+01,8.282535484704784068e+00,9.107729922811561352e+00,1.013541515321914055e+01,9.961733739402166776e+00,1.034099682111059515e+01,8.557393962580155389e+00,1.169297976859803612e+01,9.945352019430144352e+00,1.020388785815465127e+01,9.477654023882340795e+00,1.002966253508938976e+01,9.613281215940236990e+00,8.710638792452787271e+00,1.099016612156102646e+01,1.147349846041386279e+01,1.165700165917009379e+01,1.042468880565467160e+01,9.399884566343658321e+00,1.157354073328948907e+01,9.093006901236853068e+00,9.517912919758511947e+00,8.318437930438454586e+00,8.173950734006144359e+00,8.019060378611978734e+00,7.255773039851419526e+00,1.118206845022022478e+01,9.843379352678066851e+00,9.487961737273707286e+00,6.298775867816644336e+00,1.160422143590521138e+01,9.786643483514717801e+00,1.088634366876453718e+01,9.057681338776506053e+00,1.235375886505784315e+01,8.477651256324854501e+00,9.057966805117027675e+00,1.081902956278619499e+01,9.594467928755282315e+00,1.122327882659839915e+01,8.569116522424472748e+00,9.688565576884720087e+00,1.252051444825900894e+01,1.117550909351476029e+01,9.391780403317307346e+00,9.980567627679663545e+00,1.116542914227221317e+01,7.120443477976263758e+00,9.149614171789682615e+00,1.022156301205128948e+01,1.021310735078571419e+01,9.852203124719943972e+00,9.214751168776301071e+00,1.020414782338655435e+01,9.364081166808661649e+00,8.304484647806861020e+00,9.969822162252020448e+00,1.112465511711430821e+01,9.268493953678639485e+00
statred/ass2/eigenimages.py
deleted
100755 → 0
View file @
c9fce26c
#!/usr/bin/env python
"""
File: EigenImages.py
Class: Statistisch Redeneren 2011
Author: Joris Stork
Student nr: 6185320
Created: 18 April 2011
Modified: 18 April 2011
Plots the first k eigenvectors from the dataset specified by data='xxx'
"""
from
pylab
import
figure
,
subplot
,
imshow
,
gray
,
sqrt
import
pickle
NR_COMPONENTS
=
6
EV_FILENAME
=
'eigenvectors'
E_IMAGES_FILENAME
=
'figure_2_eigen_images.svg'
welcome
=
'*** Eigenimages plotter ***'
# plots the first k eigenvectors from the dataset specified by data = 'xxx'
def
eigenimages
(
k
,
vectorsfile
,
imagesfile
):
# load the eigenvectors created by pca_main.py
file
=
open
(
vectorsfile
,
'r'
)
U
=
pickle
.
load
(
file
)
print
'%s%s%s'
%
(
'Loaded eigenvectors from file:
\
'
'
,
vectorsfile
,
'
\
'
'
)
# pick the first k eigenvectors
kU
=
U
[:,
0
:
k
]
kU_rows
,
kU_columns
=
kU
.
shape
# plot each chosen eigenvector : one 25x25 image per vector
kU_sqrt
=
int
(
sqrt
(
kU_rows
))
fig1
=
figure
()
for
i
in
range
(
k
):
subplot
(
3
,
2
,
i
+
1
)
imshow
(
kU
[:,
i
].
reshape
(
kU_sqrt
,
kU_sqrt
))
gray
()
fig1
.
savefig
(
imagesfile
)
print
'%s%s%s'
%
(
'Saved eigen images to file:
\
'
'
,
imagesfile
,
'
\
'
'
)
if
__name__
==
'__main__'
:
print
"
\
n
"
,
welcome
eigenimages
(
NR_COMPONENTS
,
EV_FILENAME
,
E_IMAGES_FILENAME
)
statred/ass2/image.py
0 → 100644
View file @
6f07e9e9
from
pylab
import
imread
,
figure
,
subplot
,
imshow
,
savefig
a
=
imread
(
'trui.png'
)
figure
(
1
)
subplot
(
1
,
2
,
1
)
imshow
(
a
)
d
=
a
[
100
:
126
,
100
:
126
]
subplot
(
1
,
2
,
2
)
imshow
(
d
)
savefig
(
'trui_with_details.pdf'
,
bbox_inches
=
'tight'
)
print
d
.
shape
statred/ass2/pca.py
0 → 100644
View file @
6f07e9e9
from
pylab
import
eig
,
argsort
,
mean
,
tile
,
newaxis
,
loadtxt
,
dot
,
\
show
,
plot
,
figure
,
arange
,
legend
def
sortedeig
(
M
):
d
,
U
=
eig
(
M
)
si
=
argsort
(
d
)[
-
1
::
-
1
]
return
(
d
[
si
],
U
[:,
si
])
def
calc_PCA
(
**
kwargs
):
data
=
kwargs
[
'data'
]
if
data
==
'natural'
:
X
=
loadtxt
(
'natural400_700_5.asc'
).
T
N
=
219
elif
data
==
'munsell'
:
X
=
loadtxt
(
'munsell380_800_1.asc'
).
reshape
(
1269
,
421
).
T
N
=
1269
else
:
raise
ValueError
(
'Undefined data set.'
)
Xzm
=
X
-
tile
(
mean
(
X
,
1
)[:,
newaxis
],
N
)
S
=
dot
(
Xzm
,
Xzm
.
T
)
/
(
N
-
1
)
return
sortedeig
(
S
)
def
PCA
(
**
kwargs
):
d
,
U
=
calc_PCA
(
**
kwargs
)
figure
(
1
)
plot
(
d
)
show
()
def
EigenImages
(
k
,
**
kwargs
):
d
,
U
=
calc_PCA
(
**
kwargs
)
if
kwargs
[
'data'
]
==
'natural'
:
min
,
max
,
step
=
400
,
701
,
5
elif
kwargs
[
'data'
]
==
'munsell'
:
min
,
max
,
step
=
380
,
801
,
1
else
:
raise
ValueError
(
'Undefined data set.'
)
figure
(
2
)
a
=
arange
(
min
,
max
,
step
)
for
i
in
range
(
k
):
plot
(
a
,
U
[:,
i
],
label
=
str
(
i
+
1
))
legend
()
show
()
#PCA(data='natural')
#PCA(data='munsell')
EigenImages
(
5
,
data
=
'natural'
)
statred/ass2/pca_main.py
deleted
100755 → 0
View file @
c9fce26c
#!/usr/bin/env python
"""
File: PCA_Main.py
Class: Statistisch Redeneren 2011
Author: Joris Stork
Student nr: 6185320
Created: 18 April 2011
Modified: 18 April 2011
The main routine for the PCA lab exercise, and the PCA() function, which reads
in the relevant data, performs a PCA analysis, displays a 'scree diagram'.
"""
import
sys
from
pylab
import
eigh
,
argsort
import
pickle
# choose number of relevant principal components by looking at scree diagram
K_VALUE
=
6
DETAIL_D
=
25
SCREE_FILE
=
'figure_1_scree.pdf'
IMAGE_FILE
=
'trui.png'
EV_FILE
=
'eigenvectors'
BIG_MATRIX_FILE
=
'big_matrix'
MEAN_FILE
=
'mean'
welcome
=
'*** The PCA programme ***'
# R v.d. Boomgaard's wrapper to return the eigenvalues in sorted order
def
sorted_eig
(
M
):
d
,
U
=
eigh
(
M
)
# store sorted index numbers in si
si
=
argsort
(
d
)[
-
1
::
-
1
]
# use sorted index numbers to place elements from d in sorted order
d
=
d
[
si
]
# so the same with columns of U
U
=
U
[:,
si
]
print
'Sorted the eigenvalues and eigenvectors.'
return
(
d
,
U
)
# converts the data file into a matrix (credit: R.vd.Boomgaard)
def
PCA
(
img
,
scree_file
,
ev_file
,
mean_file
,
big_matrix_file
):
# load the image data
img
=
img
print
'Loaded the image file.'
n
,
N
=
img
.
shape
# nr of details of size DETAIL_D X DETAIL_D in an n X m image
nr_details
=
(
n
-
DETAIL_D
+
1
)
*
(
N
-
DETAIL_D
+
1
)
# nr of variables in a detail
detail_size
=
DETAIL_D
*
DETAIL_D
# matrix whose columns are the (nr_details) details of the image
big_m
=
zeros
((
detail_size
,
nr_details
),
dtype
=
'float'
)
printer
=
0
# populate big_m with all details from img: one detail per column
sys
.
stdout
.
write
(
'Populating the big matrix with all details'
)
sys
.
stdout
.
flush
()
for
i
in
range
(
nr_details
):
for
j
in
range
(
detail_size
):
printer
+=
1
x
=
(
int
(
j
/
DETAIL_D
)
%
DETAIL_D
)
+
int
(
i
/
(
N
-
DETAIL_D
+
1
))
y
=
(
j
%
DETAIL_D
)
+
(
i
%
(
N
-
DETAIL_D
))
big_m
[
j
,
i
]
=
img
[
x
,
y
]
if
((
printer
%
1000000
)
==
0
):
sys
.
stdout
.
write
(
'.'
)
sys
.
stdout
.
flush
()
print
' Done.'
#
# now we're going to derive the covariance matrix of our big matrix using an
# incremental, memory-saving method:
#
# matrix that holds the running sum of each detail multiplied by its transpose
sigma_runner
=
zeros
((
detail_size
,
detail_size
),
dtype
=
'float'
)
# vector that holds the running sum of the details
mean_runner
=
zeros
((
detail_size
,
1
),
dtype
=
'float'
).
flatten
(
1
)
# incrementally compute the runner
sys
.
stdout
.
write
(
'Incrementally calculating Sigma and mean'
)
for
i
in
range
(
nr_details
):
sigma_runner
=
sigma_runner
+
big_m
[:,
i
]
*
big_m
[:,
i
].
reshape
(
detail_size
,
1
)
mean_runner
=
add
(
big_m
[:,
i
],
mean_runner
)
if
(
i
%
2000
==
0
):
sys
.
stdout
.
write
(
'.'
)
sys
.
stdout
.
flush
()
print
' Done.'
bigm_mean
=
mean_runner
/
nr_details
temp
=
sigma_runner
-
nr_details
*
(
bigm_mean
*
bigm_mean
.
reshape
(
detail_size
,
1
))
Sigma
=
temp
/
(
nr_details
-
1
)
# calculate eigenvalues and eigenvectors
d
,
U
=
sorted_eig
(
Sigma
)
# plot (ordered) eigenvalues, save to pdf file
plot
(
d
)
savefig
(
scree_file
)
print
'%s%s'
%
(
'Saved scree diagram to '
,
scree_file
)
file
=
open
(
big_matrix_file
,
'w'
)
pickle
.
dump
(
big_m
,
file
)
print
'%s%s'
%
(
'Saved matrix of image details to '
,
big_matrix_file
)
file
=
open
(
ev_file
,
'w'
)
pickle
.
dump
(
U
,
file
)
print
'%s%s'
%
(
'Saved eigenvectors to '
,
ev_file
)
file
=
open
(
mean_file
,
'w'
)
pickle
.
dump
(
bigm_mean
,
file
)
print
'%s%s'
%
(
'Saved mean to '
,
mean_file
)
return
U
if
__name__
==
'__main__'
:
print
"
\
n
"
,
welcome
img
=
imread
(
IMAGE_FILE
)
U
=
PCA
(
img
,
SCREE_FILE
,
EV_FILE
,
MEAN_FILE
,
BIG_MATRIX_FILE
)
#eigenimages(U, K_VALUE)
#reconstruct(K_VALUE, (40,70))
statred/ass2/reconstruct.py
deleted
100755 → 0
View file @
c9fce26c
#!/usr/bin/env python
"""
File: Reconstruct.py
Class: Statistisch Redeneren 2011
Author: Joris Stork
Student nr: 6185320
Created: 18 April 2011
Modified: 18 April 2011
performs reconstruction
"""
import
pickle
from
pylab
import
figure
,
subplot
,
gray
,
imshow
,
dot
REC_IMG_FILE
=
'figure_3_3_details.pdf'
SCREE_FILE
=
'figure_3_1_scree.pdf'
BIG_MATRIX_FILE
=
'big_matrix'
EV_FILE
=
'eigenvectors'
MEAN_FILE
=
'mean'
E_IMAGES_FILE
=
'figure_3_2_eigen_images.pdf'
welcome
=
'*** Reconstructor ***'
NR_COMPONENTS
=
6
DETAIL_NR
=
10123
DETAIL_D
=
25
# performs reconstruction
def
reconstruct
(
k
,
detail_nr
):
# load a sample of the full image
file
=
open
(
BIG_MATRIX_FILE
,
'r'
)
big_m
=
pickle
.
load
(
file
)
print
'big_m'
print
big_m
.
shape
detail
=
big_m
[:,
detail_nr
]
print
'%s%s%s'
%
(
'Loaded image detail from file:
\
'
'
,
BIG_MATRIX_FILE
,
'
\
'
'
)
# load eigenvectors generated by pca_main
file
=
open
(
EV_FILE
,
'r'
)
U
=
pickle
.
load
(
file
)
print
'%s%s%s'
%
(
'Loaded eigenvectors from file:
\
'
'
,
EV_FILE
,
'
\
'
'
)
# load mean generated by pca_main
file
=
open
(
MEAN_FILE
,
'r'
)
bigm_mean
=
pickle
.
load
(
file
)
print
'%s%s%s'
%
(
'Loaded eigenvectors from file:
\
'
'
,
MEAN_FILE
,
'
\
'
'
)
# translate + transform detail to eigenbasis + remove last (detail size - k) elements
temp
=
detail
-
bigm_mean
eig_detail
=
dot
(
U
.
transpose
(),
temp
)
print
'eig_detail'
print
eig_detail
.
shape
eig_detail_k
=
eig_detail
[
0
:
k
]
# transform + translate back to reconstruct
kU
=
U
[:,
0
:
k
]
reconstructed
=
dot
(
kU
,
eig_detail_k
)
reconstructed
=
reconstructed
+
bigm_mean
reconstructed
=
reconstructed
.
reshape
(
DETAIL_D
,
DETAIL_D
)
# plot original detail and reconstructed detail side by side, save to file
detail
=
detail
.
reshape
(
DETAIL_D
,
DETAIL_D
)
fig3
=
figure
(
3
)
subplot
(
1
,
2
,
1
)
imshow
(
detail
)
gray
()
subplot
(
1
,
2
,
2
)
imshow
(
reconstructed
)
gray
()
fig3
.
savefig
(
REC_IMG_FILE
)
print
'%s%s%s'
%
(
'Saved detail and reconstructed detail to:
\
'
'
,
REC_IMG_FILE
,
'
\
'
'
)
if
__name__
==
'__main__'
:
print
"
\
n
"
,
welcome
reconstruct
(
NR_COMPONENTS
,
DETAIL_NR
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment