• Join x / y values when difference in X is closer than delta. When joining, y values are summed and x values are weighted average

    Parameters

    • data: DataXY<NumberArray>

      Object that contains property x (an ordered increasing array) and y (an array)

    • options: XYJoinXOptions = {}

      Options

    Returns DataXY<number[]>

    • An object with the xyIntegration function