class

Similar::Text::QuickSeqRatio(T)

Inherits Reference < Object

Internal utility to calculate an upper bound for a ratio for get_close_matches. This is based on Python's difflib approach of considering the two sets to be multisets.

It counts the number of matches without regard to order, which is an obvious upper bound.

Constructors

new(seq : Array(T))
Source

Instance methods

calc(seq : Array(T)) : Float32
Source