Lines Matching full:ratio
76 .ratio() returns a float in [0, 1], measuring the "similarity" of the
77 sequences. As a rule of thumb, a .ratio() value over 0.6 means the
80 >>> print(round(s.ratio(), 3))
141 ratio()
145 Return an upper bound on .ratio() relatively quickly.
148 Return an upper bound on ratio() very quickly.
220 >>> s.ratio()
233 >>> s.ratio()
236 >>> s.ratio()
259 >>> s.ratio()
262 >>> s.ratio()
622 def ratio(self):
630 .ratio() is expensive to compute if you haven't already computed
636 >>> s.ratio()
648 """Return an upper bound on ratio() relatively quickly.
650 This isn't defined beyond that it is an upper bound on .ratio(), and
677 """Return an upper bound on ratio() very quickly.
679 This isn't defined beyond that it is an upper bound on .ratio(), and
680 is faster to compute than either .ratio() or .quick_ratio().
728 s.ratio() >= cutoff:
729 result.append((s.ratio(), x))
969 # note that ratio() is only expensive to compute the first
974 cruncher.ratio() > best_ratio:
975 best_ratio, best_i, best_j = cruncher.ratio(), i, j