Function tanimoto

  • Returns the Tanimoto similarity between vectors p and q, and accepts the bitVector use, see the test case for an example

    Link

    Tanimoto similarity algorithm

    Parameters

    • a: NumberArray

      first vector

    • b: NumberArray

      second vector

    • Optional bitvector: boolean

      bitVector

    Returns number