Method: String#_rust_prob_distance

Defined in:
lib/rust/stats/probabilities.rb

#_rust_prob_distance(other) ⇒ Object

Computes the distance between this and another string.

Raises:

  • (TypeError)


39
40
41
42
43
# File 'lib/rust/stats/probabilities.rb', line 39

def _rust_prob_distance(other)
    raise TypeError, "no implicit conversion of #{other.class} into String" unless other.is_a? String
    
    return self.bytes._rust_prob_distance other.bytes
end