Add noise to an mrs_data object.
add_noise(mrs_data, sd = 0.1, fd = TRUE)
mrs_data object with additive normally distributed noise.
data to add noise to.
standard deviation of the noise.
generate the noise samples in the frequency-domain (TRUE) or time-domain (FALSE). This is required since the absolute value of the standard deviation of noise samples changes when data is Fourier transformed.