Chalkboard - v3.0.4
    Preparing search index...

    Function correlation

    • Calculates the cross-correlation of two arrays.

      Parameters

      • arr1: number[]

        The first array

      • arr2: number[]

        The second array

      Returns number[]

      const result = Chalkboard.stat.correlation([1, 2, 3], [3, 2, 1]); // Returns the cross-correlation