• This function calculates a rolling average

    Parameters

    • array: NumberArray

      array

    • Optionalfct: (callbackArray: Float64Array<ArrayBufferLike>) => number

      callback function that from an array returns a value

    • options: XRollingOptions = {}

      options

    Returns number[]