📜 ⬆️ ⬇️

Reverse engineering comic xkcd

About a week ago, Randall Munro published the Frequency comic, in which various inscriptions blink with a frequency that roughly corresponds to the frequency of these events in the real world: birth, death, heartbeat, wedding, someone breaks the iPhone screen, a European resident kisses, etc. d. A beautiful throbbing picture actually consists of 50 animated GIF files.

One of the lovers of creativity Munro wondered : how long does it take a full cycle for all frames? To do this, he downloaded the GIF files, wrote his own GIF parser - and fixed the cycle of each file. The results are shown in the table below: the planned cycle in seconds, the planned number of impressions per hour, the real cycle in seconds and the actual number of impressions per hour.

For 21 pictures, the planned figure differs from the real one, because no modern browser supports frame delay of less than 0.02 s. If this occurs, the browser simply replaces the delay by 0.1 s.
loop_secondsper_hourneeds_adjloop_seconds_adjper_hour_adj
name
birth0.2415000.00*0.3410588.24
death0.566428.57*0.665454.55
domain0.645625.00*0.744864.86
wikipedia0.675373.13*0.774675.32
wedding0.754800.00*0.854235.29
shark0.834337.35*0.933870.97
heartbeat0.864186.05*0.963750.00
turnsignal20.904000.00*1.003600.00
iphone0.933870.97*1.033495.15
flight0.933870.97*1.033495.15
turnsignal10.943829.79*1.043461.54
car_elsewhere1.033495.15*1.133185.84
phoenixshoes1.083333.33*1.183050.85
meteor1.153130.43*1.252880.00
littleleague1.232926.83*1.332706.77
bottles1.272834.65*1.372627.74
denverpizza1.272834.65*1.372627.74
ndsex1.382608.70*1.482432.43
pulsar1.402571.43*1.502400.00
cat_mockingbird1.821978.02*1.921875.00
car_china1.891904.76*1.991809.05
phoenix2.051756.102.051756.10
tattoo2.061747.572.061747.57
earthquake12.431481.482.431481.48
keys2.431481.482.431481.48
eagle2.691338.292.691338.29
vibrator2.991204.012.991204.01
car_japan4.01897.764.01897.76
facebook4.32833.334.32833.33
recycled4.64775.864.64775.86
bieber4.73761.104.73761.10
kiss5.53650.995.53650.99
car_germany5.80620.695.80620.69
house6.22578.786.22578.78
car_us6.95517.996.95517.99
dogbite7.01513.557.01513.55
amelia7.79462.137.79462.13
parliament_toilet10.06357.8510.06357.85
dog15.60230.7715.60230.77
us_cancer18.99189.5718.99189.57
cat21.30169.0121.30169.01
fire_dept23.00156.5223.00156.52
earthquake224.26148.3924.26148.39
bike24.93144.4024.93144.40
book_mockingbird42.0585.6142.0585.61
us_cancer_death54.3466.2554.3466.25
holeinone180.0020.00180.0020.00
earthquake3242.6014.84242.6014.84
earthquake42426.001.482426.001.48
oldfaithful5640.000.645640.000.64

Five of the most frequent events.


')








Five of the rarest events.











The frequency of each event is presented on the heatmap. The darker the color, the more often the event occurs.



The rarest events are earthquakes with a magnitude of 4 and the Old Faithful geyser spout (cycle 94 minutes).

Source: https://habr.com/ru/post/213745/


All Articles