add_noise
Add noise to a column with numbers or lists of numbers.
Given a distribution name with a scale and loc parameters,
the step optionally applies another scaling to it either based on the standard deviation of the column or a proportionally to each point through
the relative
parameter in order to preserve the underlying structure of the data. Then the computation is carried as follows:
new value = original value + relative scaling factor * random sample from the distribution.
If this relative
parameter is not given or is set to abs
, then the relative scaling factor is 1.
Was this page helpful?