Function factory to apply log-normal noise to a vector

lognorm_noise(sd = 0.1)

Arguments

sd

the standard deviation of noise to apply.

Value

a function

Examples


f <- lognorm_noise(1)
f(1:10)
#>  [1]  1.5069907  0.8377089  2.1701109  4.0814995  6.3598670 11.8160752
#>  [7]  4.5292953  4.0802485  4.6051359  9.6058921