Chalkboard - v3.0.4
    Preparing search index...

    Function mad

    • Calculates the mean absolute deviation of an array.

      Parameters

      • arr: number[]

        The array

      Returns number

      const result = Chalkboard.stat.mad([1, 1, 2, 2, 4]); // Returns the mean absolute deviation