powered by
Generate Synthetic Noise
noise_gen(n = 500, type = "gaussian", level = 0.01, seed = NULL)
A tibble with two columns:
value: Numeric vector of generated noise samples.
value
type: Character string indicating the type of noise.
type
Integer. Number samples to generate. Default is 500.
Character string specifying the type of noise to generate. Supported types:
"gaussian": Standard normal distribution.
"gaussian"
"uniform": Uniform distribution between -level and +level.
"uniform"
"lognormal": Log-normal distribution.
"lognormal"
"t_distributed": Heavy-tailed t-distribution with 3 degrees of freedom.
"t_distributed"
"cauchy": Extremely heavy-tailed Cauchy distribution.
"cauchy"
"beta_noise": Beta distribution shifted and scaled to [-level, level].
"beta_noise"
[-level, level]
"exponential": Positive-only exponential distribution.
"exponential"
"microstructure": Oscillatory sinusoidal pattern with additive Gaussian noise.
"microstructure"
Numeric. Controls the scale (standard deviation, range, or spread) of the noise. Default is 0.01.
0.01
Optional integer. Sets a random seed for reproducibility.
# Gaussian noise with small scale noise_gen(500, type = "gaussian", level = 0.05) # Heavy-tailed noise noise_gen(500, type = "t_distributed", level = 0.1)
Run the code above in your browser using DataLab