Obfuscate numeric values

Normalize to interval [-1, 1] and add noise. Same values are mapped to same values after obfuscation.

obfuscate_numeric(x, abs = 0, rel = 0.1)

Arguments

x

vector of numeric values

abs

absolute noise on interval [-1, 1]

rel

relative noise

Value

numeric vector of the same length as x