/** * Internal class to deal with isotopic distribution calculations */ export class Distribution { constructor(array?: any[]); array: any[]; cache: { isEmpty: boolean; xSorted: boolean; ySorted: boolean; minX: number; maxX: number; minY: number; maxY: number; sumY: number; }; emptyCache(): void; get length(): number; get xs(): any[]; get ys(): any[]; get sumY(): number; get minX(): number; get maxX(): number; get minY(): number; get maxY(): number; multiplyY(value: any): void; setArray(array: any): void; move(other: any): void; push(...points: any[]): void; /** * Sort by ASCENDING x values * @returns {Distribution} */ sortX(): Distribution; /** * Sort by DESCENDING y values * @returns {Distribution} */ sortY(): Distribution; normalize(): this; /** * Only keep a defined number of peaks * @param {number} limit * @returns */ topY(limit: number): this; /** * remove all the peaks under a defined relative threshold * @param {number} [relativeValue=0] Should be between 0 and 1. 0 means no peak will be removed, 1 means all peaks will be removed */ threshold(relativeValue?: number): this | undefined; square(options?: {}): any; multiply(b: any, options: any): any; power(p: any, options: any): any; copy(): Distribution; maxToOne(): this; joinX(threshold: any): any; append(distribution: any): void; closestPointX(target: any): any; } //# sourceMappingURL=Distribution.d.ts.map