Interface NoiseOptions

interface NoiseOptions {
    distribution?: "uniform" | "normal";
    percent?: number;
    seed?: number;
}

Properties

distribution?: "uniform" | "normal"

Type of random distribution. 'uniform' (true random) or 'normal' (gaussian distribution)

'normal'
percent?: 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

1
seed?: number

Seed for a deterministic sequence of random numbers.

0