ml-distance
    Preparing search index...

    Function pearson

    • Returns the Pearson correlation between vectors a and b, i.e. the cosine similarity of the mean-centred vectors

      Parameters

      • a: NumberArray

        first vector

      • b: NumberArray

        second vector

      Returns number