• 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}

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

      callback function that from an array returns a value.

        • (array): number
        • Parameters

          • array: Float64Array

          Returns number

    • options: XRollingOptions = {}

      options

    Returns DataXY