add_noise: Adds noise to any function
add_noise(func, noise = 0, noise_type = "Gauss")
A function that has noise
Function to add noise to.
Standard deviation of Gaussian noise
Type of noise, only option now is "Gauss" for Gaussian noise.
tf <- add_noise(function(x)sin(2*x*pi));curve(tf) tf <- add_noise(function(x)sin(2*x*pi), noise=.1);curve(tf)
Run the code above in your browser using DataLab