ml-spectra-processing
    Preparing search index...

    Function xyGetNMaxY

    • Returns the numberMaxPoints points with the bigger y.

      Parameters

      • data: DataXY

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

      • numberMaxPoints: number

        number of points to keep.

      Returns DataXY

      the points filtered to keep the numberMaxPoints most intense points of the input.