Double value of numbers with an error

fuzzydouble(number, sd = 1)

Arguments

number

a numeric vector.

sd

the standard deviation of the Gaussian error added.

Value

A vector of the same length as number containing the transformed values.

Details

Calculate the double values of numbers and add a random error to the result.

Examples

fuzzydouble(2)
#> [1] 2.599956
fuzzydouble(1:4)
#> [1] 2.255317 1.562736 5.994429 8.621553