• This function calculates a rolling average. This methods will recalculate the x values by using xRollingAverage

    Parameters

    • data: DataXY<NumberArray>

      array of points {x,y}

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

      callback function that from an array returns a value.

    • options: XRollingOptions = {}

      options

    Returns DataXY