summaryrefslogtreecommitdiff
path: root/stats.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-27 21:05:22 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-27 21:05:22 +0200
commitea4515d0516dc3f0bd20428f6d032714ca5ffdea (patch)
tree6119669b4827d078f9c1b8bf9d9a717a67178146 /stats.py
parenta973a8986191a7a492a18a8f52d33bce9b821292 (diff)
reverse engineered zoom level
Diffstat (limited to 'stats.py')
-rw-r--r--stats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stats.py b/stats.py
index 6744d0b..0b460c5 100644
--- a/stats.py
+++ b/stats.py
@@ -190,12 +190,12 @@ class Stats:
maxwidth = quantile(sorted(map(lambda x:x[0], rects)), 0.75)
maxheight = quantile(sorted(map(lambda x:x[1], rects)), 0.75)
- if (math.sqrt(maxwidth**2+maxheight**2) < 4000):
+ if math.sqrt(maxwidth**2+maxheight**2) < 4000:
# TODO FIXME
svw[size] = (maxwidth,maxheight)
ratios += [maxwidth/maxheight]
- if verbose: print(str(size)+"\t"+str(math.sqrt(maxwidth**2+maxheight**2)))
+ if verbose: print(str(size)+"\t"+str(math.sqrt(maxwidth**2+maxheight**2))+"\t\t"+str(len(rects)))
print ("median ratio = "+str(quantile(sorted(ratios),0.5)))