adaptive_noise {deident}R Documentation

Function factory to apply white noise to a vector proportional to the spread of the data

Description

Function factory to apply white noise to a vector proportional to the spread of the data

Usage

adaptive_noise(sd.ratio = 1/10)

Arguments

sd.ratio

the level of noise to apply relative to the vectors standard deviation.

Value

a function

Examples


f <- adaptive_noise(0.2)
f(1:10)


[Package deident version 1.0.0 Index]