/** * Filter the array by taking the higher peaks and only * keep one per slot. * There are 2 different slots, the smallest one will have the * extra annotation `close` to true * @param {array} peaks - array of all the peaks * @param {object} [options={}] * @param {number} [options.from] - min X value of the window to consider * @param {number} [options.to] - max X value of the window to consider * @param {number} [options.minValue=Number.NEGATIVE_INFINITY] - min Y value of the window to consider * @param {number} [options.maxValue=Number.POSITIVE_INFINITY] - max Y value of the window to consider * @param {number} [options.searchMonoisotopicRatio=0] - search previous peaks with at least ratio height * @param {number} [options.limit=20] - max number of peaks * @param {number} [options.threshold=0.01] - minimal intensity compare to base peak * @param {number} [options.numberSlots=10] - define the number of slots and indirectly the slot width * @param {number} [options.numberCloseSlots=50] * @returns {array} - copy of peaks with 'close' annotation */ export function getBestPeaks(peaks: any[], options?: { from?: number | undefined; to?: number | undefined; minValue?: number | undefined; maxValue?: number | undefined; searchMonoisotopicRatio?: number | undefined; limit?: number | undefined; threshold?: number | undefined; numberSlots?: number | undefined; numberCloseSlots?: number | undefined; }): any[]; //# sourceMappingURL=getBestPeaks.d.ts.map