Function xyFilterTopYValues

  • 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

    • Optional nbPeaks: number

    Returns DataXY<NumberArray>

    filtered data