Function correlationCoefficient

Calculates the Pearson correlation coefficient of two arrays.

  • Parameters

    • arr1: number[]

      The first array

    • arr2: number[]

      The second array

    Returns number