Lines Matching defs:ratio
77 .ratio() returns a float in [0, 1], measuring the "similarity" of the
78 sequences. As a rule of thumb, a .ratio() value over 0.6 means the
81 >>> print(round(s.ratio(), 3))
189 >>> s.ratio()
202 >>> s.ratio()
205 >>> s.ratio()
228 >>> s.ratio()
231 >>> s.ratio()
597 def ratio(self):
605 .ratio() is expensive to compute if you haven't already computed
611 >>> s.ratio()
623 """Return an upper bound on ratio() relatively quickly.
625 This isn't defined beyond that it is an upper bound on .ratio(), and
652 """Return an upper bound on ratio() very quickly.
654 This isn't defined beyond that it is an upper bound on .ratio(), and
655 is faster to compute than either .ratio() or .quick_ratio().
706 s.ratio() >= cutoff:
707 result.append((s.ratio(), x))
934 # note that ratio() is only expensive to compute the first
939 cruncher.ratio() > best_ratio:
940 best_ratio, best_i, best_j = cruncher.ratio(), i, j