ml-spectra-processing
    Preparing search index...

    Function xyArrayMergeByIntensity

    • Merges the peaks of many spectra around the most intense ones.

      This is xyArrayAlignByIntensity without the per spectrum y arrays: the most intense peak of the whole set takes every peak within delta of it, the most intense of the remaining peaks opens the next slot, and so on. Every peak ends up in exactly one slot, so the sum of y is the sum of the intensities of all the spectra.

      The x values of each spectrum must be ascending. Only the merged peaks are held in memory, so it scales to tens of millions of peaks where a dense alignment matrix does not.

      Parameters

      Returns XYArrayMergeByIntensityResult

      the common peaks, ascending by x.