Methods
(static) similarity(s1, s2) → {number}
Calculates the Sørensen-Dice similarity between two sets.
Parameters:
Name | Type | Description |
---|---|---|
s1 |
Array.<string> | Set | The first set of elements. |
s2 |
Array.<string> | Set | The second set of elements. |
- Source:
Returns:
- The Sørensen-Dice similarity coefficient, a value between 0.0 (no similarity) and 1.0 (perfect similarity).
- Type
- number