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.
Merges the peaks of many spectra around the most intense ones.
This is
xyArrayAlignByIntensitywithout the per spectrum y arrays: the most intense peak of the whole set takes every peak withindeltaof 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 ofyis 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.