summaryrefslogtreecommitdiff
path: root/reversing_game_mechanics/splits_and_ejects
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-29 02:03:06 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-29 02:03:06 +0200
commit24fd1057a1b78715e6bd3038754dfb62efe4f369 (patch)
treec94e3fca0a69b2c21f35bb571152bebc6dc473fe /reversing_game_mechanics/splits_and_ejects
parent07fde40a846f11d123ddc2ccf182e417c561931a (diff)
.
Diffstat (limited to 'reversing_game_mechanics/splits_and_ejects')
-rw-r--r--reversing_game_mechanics/splits_and_ejects/README34
1 files changed, 34 insertions, 0 deletions
diff --git a/reversing_game_mechanics/splits_and_ejects/README b/reversing_game_mechanics/splits_and_ejects/README
index 6e33969..d8a68e6 100644
--- a/reversing_game_mechanics/splits_and_ejects/README
+++ b/reversing_game_mechanics/splits_and_ejects/README
@@ -14,3 +14,37 @@ split cell eject/split distances: mean = 388.2279635920042, stddev=222.714651069
ejected mass eject/split distances: mean = 442.90229450857305, stddev=189.2221703217239, ndata=252
75% of the values lie in the interval 535.71 plusminus 8.61
+distances are measured between "spawn point of cell" and "end point of movement".
+Spawnpoint is usually near "parentcell.midpoint + parentcell.size".
+
+
+
+Now if we measure distances between "midpoint of parent cell" and "end point of movement" by
+applying the following patch:
+
+diff --git a/stats.py b/stats.py
+index bb88c3e..1c0a196 100644
+--- a/stats.py
++++ b/stats.py
+@@ -338,7 +338,7 @@ class Stats:
+ # print(str(n) + "\t" + str(x))
+
+ def analyze_distances(self, celltype):
+- ds = [v[0] for v in self.data.eject_distlogs[celltype]]
++ ds = [v[1] for v in self.data.eject_distlogs[celltype]]
+
+ try:
+ mean, stddev = fit_gaussian(ds)
+
+we get this:
+
+split cell eject/split distances: mean = 560.4528176561469, stddev=276.25260008531626, ndata=314
+ 75% of the values lie in the interval 556.62 plusminus 322.76
+
+ejected mass eject/split distances: mean = 767.2502438544719, stddev=168.80422060053823, ndata=252
+ 75% of the values lie in the interval 732.30 plusminus 86.28
+
+
+As one can see, the "plusminus" values are much larger than above. So measuring between "spawnpoint" and
+"endpoint" is more appropriate.
+