Calculates the moving mean of an array.

  • Parameters

    • arr: number[]

      The array

    • windowSize: number

      The size of the moving window

    Returns number[]