From: Han-Wen Nienhuys Date: Wed, 17 Jan 2007 14:43:36 +0000 (+0100) Subject: encompass complete real range for profile distance. X-Git-Tag: release/2.11.12-1~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c046cfb4e5cbf45025f1b673fd23fa5bc55bbbf7;p=lilypond.git encompass complete real range for profile distance. --- diff --git a/buildscripts/output-distance.py b/buildscripts/output-distance.py index 07f8705e3f..48d0d22b31 100644 --- a/buildscripts/output-distance.py +++ b/buildscripts/output-distance.py @@ -486,7 +486,7 @@ class ProfileFileLink (FileCompareLink): str += '%-8s: %d\n' % (k, int (self.results[oldnew][k])) else: str += '%-8s: %8d (%5.3f)\n' % (k, int (self.results[oldnew][k]), - self.get_ratio (k)) + self.get_ratio (k)) return '
%s
' % str @@ -508,12 +508,13 @@ class ProfileFileLink (FileCompareLink): note_info, self.contents[oldnew]) dist = 0.0 - factor = {'time': 2.0 , - 'cells': 10.0, + factor = {'time': 3.0 , + 'cells': 5.0, } for k in ('time', 'cells'): - dist += math.tan (self.get_ratio (k) /(0.5* math.pi)) * factor[k] - 1 + real_val = math.tan (self.get_ratio (k) * 0.5* math.pi + dist += math.exp (fabs (real_val) * factor[k]) - 1 dist = min (dist, 100) return dist