import type { DataXY } from 'cheminfo-types'; export interface NoiseOptions { /** * Type of random distribution. * 'uniform' (true random) or 'normal' (gaussian distribution) * @default 'normal' */ distribution?: 'uniform' | 'normal'; /** * Seed for a deterministic sequence of random numbers. * @default 0 */ seed?: number; /** * Percentage of noise. The range of the noise will be the percentage so if a peak is 100 and you * have a percent of 10, the noise will be values between -5 and 5. * In the case of normal distribution the range will correspond to the standard deviation * @default 1 */ percent?: number; } /** * Adds noise to the spectrum data. * @param data - The spectrum data to modify. * @param options - Configuration for noise generation. * @returns The modified spectrum data. */ export default function addNoise(data: DataXY, options?: NoiseOptions): DataXY; //# sourceMappingURL=addNoise.d.ts.map