Function getOverlapCoefficient

  • Also known as the Szymkiewicz–Simpson coefficient, it is a mathematical formula that computes the overlap between two sets by dividing the size of the intersection by the size of the the smallest set.

    Type Parameters

    • TElement

    Parameters

    • a: Set<TElement>

      Set A of type <TElement> elements

    • b: Set<TElement>

      Set B of type <TElement> elements

    Returns number

    The overlap score between 2 sets

Generated using TypeDoc