lib/hotwater/jaro_ffi.rb
def jaro_distance(s1, s2)
    result = C::jaro_distance(s1, s2)
    raise("memory allocation error") if result < 0.0
    result
  end
# compute Jaro edit distance between 2 strings
# @param s1 [String] first string
# @param s2 [String] seconds string
# @return [Float] edit distance between 0.0 and 1.0
compute Jaro edit distance between 2 strings
compute Jaro edit distance between 2 strings
def jaro_distance(s1, s2)
    result = C::jaro_distance(s1, s2)
    raise("memory allocation error") if result < 0.0
    result
  end
def jaro_distance ( s1 , s2 ) result = C :: jaro_distance ( s1 , s2 ) raise ( "memory allocation error" ) if result < 0.0 result end
compute Jaro edit distance between 2 strings
compute Jaro edit distance between 2 strings
None
Float
s1
None
s2
None