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

    • OptionalnbPeaks: number

    Returns DataXY<NumberArray>

    filtered data