• This function calculates a rolling average

    Parameters

    • array: NumberArray

      array

    • Optional fct: ((callbackArray) => number)

      callback function that from an array returns a value

        • (callbackArray): number
        • Parameters

          • callbackArray: Float64Array

          Returns number

    • options: XRollingOptions = {}

      options

    Returns number[]