Class: String
- Defined in:
- lib/rust/core/types/datatype.rb,
lib/rust/stats/probabilities.rb
Instance Method Summary collapse
-
#_rust_prob_distance(other) ⇒ Object
Computes the distance between this and another string.
- #to_R ⇒ Object
Instance Method Details
#_rust_prob_distance(other) ⇒ Object
Computes the distance between this and another string.
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 |
#to_R ⇒ Object
186 187 188 |
# File 'lib/rust/core/types/datatype.rb', line 186 def to_R return self.inspect end |