• Ensure x values are unique

    Parameters

    • data: DataXY<NumberArray>

      Object that contains property x (Array) and y (Array)

    • options: XYUniqueXOptions = {}

      Object containing a property algorithm (can be 'sum' or 'average', the latter being the default value), and a property isSorted (boolean indicating if the x-array is sorted).

    Returns DataXY<number[]>