Function getJaccardSimilarityCoefficient

  • Aalso known as the Jaccard Similarity Coefficient, it is a mathematical formula devised by Paul Jaccard in 1912, and individually discovered again by T. Tanimoto in 1958.

    • Formal definition: |(A ∩ B)|/|(A ∪ B)|, or the size of the intersection of A and B, divided by the size of the union of A and B.

    Type Parameters

    • TElement

    Parameters

    • a: Set<TElement>

      Set A of type <TElement> elements

    • b: Set<TElement>

      Set B of type <TElement> elements

    Returns number

    a normalized percentage from [0, 1] which measures the similarity between two sets

Generated using TypeDoc