jaccard
The Jaccard similarity of two sets: the size of their intersection over the size of their union.
1.0 means the sets are equal, 0.0 that they share nothing. Two empty sets are equal, so
they score 1.0.
Import
Section titled “Import”Cargo feature set (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | &HashSet<T, S> | The first set. |
b | &HashSet<T, S> | The second set. |
Returns
Section titled “Returns”f64 — A value between 0.0 and 1.0.
