Function getComputedSimilarity

  • Retrieves the similarity score for a pair of vectors in the graph

    Parameters

    • simGraph: SimilarityGraph

      The pre-computed store of similarities between all vectors

    • i: number

      Index of a vector in the graph

    • j: number

      Index of another vector in the graph

    Returns number

    The similarity score of the two vectors.