| jaccard | R Documentation |
Computes |A intersection B| / |A union B|. Matches the web tool's convention of returning 0 when both sets are empty (NaN-safe).
jaccard(size_a, size_b, intersection)
size_a |
Inclusive size of set A (integer >= 0). |
size_b |
Inclusive size of set B (integer >= 0). |
intersection |
Inclusive intersection size |A intersection B|. |
Numeric in [0, 1].
jaccard(10, 10, 5)
jaccard(0, 0, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.