export function fromPeaks(peaks: any): Spectrum; export function fromText(text: any, options: any): Spectrum; /** * Class dealing with mass spectra and peak picking */ export class Spectrum { /** * * @param {import('cheminfo-types').DataXY} data * @param {object} [options={}] * @param {number} [options.threshold=0.00025] */ constructor(data?: import("cheminfo-types").DataXY, options?: { threshold?: number | undefined; }); data: { x: import("cheminfo-types").NumberArray; y: import("cheminfo-types").NumberArray; }; options: { threshold: number; }; info: { minX: number; maxX: number; minY: number; maxY: number; }; cache: {}; /** * someProperty is an example property that is set to `true` * @type {array} * @public */ public peaks: any[]; minMaxX(): { min: number; max: number; }; /** * * @param {import('ml-spectra-processing').XYMaxYOptions} options * @returns */ maxY(options: import("ml-spectra-processing").XYMaxYOptions): number; sumY(): any; scaleY(intensity?: number): this; rescaleX(callback: any): this; ensureOriginalX(): void; normedY(total?: number): this; peakPicking(): any[]; peaksWidth(): { widths: { x: any; y: any; }; fit: { x: never[]; y: never[]; }; score: any; predictFct: any; tex: any; A: any; B: any; predictFctString: string; }; getBestPeaks(options: any): any[]; /** * This is a very intensive function so better to calculate it on a selection of peaks * @param {Array} selectedPeaks * @param {object} [options={}] * @param {number} [options.min=1] * @param {number} [options.max=10] * @param {number} [options.low=-1] * @param {number} [options.high=1] * @param {number} [options.precision=30] * @returns */ getSelectedPeaksWithCharge(selectedPeaks: any[], options?: { min?: number | undefined; max?: number | undefined; low?: number | undefined; high?: number | undefined; precision?: number | undefined; }): any[]; getPeakChargeBySimilarity(targetMass: any, options: any): number; getPeaks(options: any): any[]; getPeaksAsDataXY(options: any): { x: any[]; y: any[]; }; /** * Returns also peaks possible for a specific molecular formula * @example * const spectrum = new Spectrum({x:[], y:[]}) * await spectrum.getFragmentPeaks(); * @param {string} mf * @param {object} options * @returns */ getFragmentPeaksFct(mf: string, options: object): any[]; isContinuous(): any; /** * Remove an integer number of time the specifiedd monoisotopic mass * Mass remainder analysis (MARA): https://doi.org/10.1021/acs.analchem.7b04730 */ getMassRemainderFct(mass: any, options?: {}): import("cheminfo-types").DataXY; } //# sourceMappingURL=Spectrum.d.ts.map