Module: StrMetrics::SorensenDice
- Defined in:
- lib/str_metrics.rb
Overview
Namespace for Sorensen-Dice
Class Method Summary collapse
Class Method Details
.coefficient(a, b, ignore_case: false) ⇒ Object
35 36 37 |
# File 'lib/str_metrics.rb', line 35 def self.coefficient(a, b, ignore_case: false) Native.sorensen_dice_coefficient(a&.to_utf8, b&.to_utf8, ignore_case ? 1 : 0) end |