jaccardIndex<E> function
Returns the Jaccard index between two list of items.
Parameters
source
is the variant listtarget
is the prototype list
Details
Jaccard index is a metric used to measure similarity and diversity of two samples sets. This is known by several other names:
- Jaccard similarity coefficient
- Tanimoto index
- Tanimoto coefficient
See Also: tverskyIndex
Complexity: Time O(n log n)
| Space O(n)
Implementation
double jaccardIndex<E>(List<E> source, List<E> target) {
return tverskyIndex(source, target, alpha: 1, beta: 1);
}