• Filter an array x/y based on various criteria x points are expected to be sorted

    Parameters

    • data: DataXY<NumberArray>

      object containing 2 properties x and y

    • options: XYFilterOptions = {}

      options

    Returns DataXY<number[]>

    filtered array