diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-27 21:05:22 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-27 21:05:22 +0200 |
commit | ea4515d0516dc3f0bd20428f6d032714ca5ffdea (patch) | |
tree | 6119669b4827d078f9c1b8bf9d9a717a67178146 /stats.py | |
parent | a973a8986191a7a492a18a8f52d33bce9b821292 (diff) |
reverse engineered zoom level
Diffstat (limited to 'stats.py')
-rw-r--r-- | stats.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) |