adaptive_noise: Function factory to apply white noise to a vector...

View source: R/pertruber.R

adaptive_noiseR 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)


deident documentation built on April 3, 2025, 6:14 p.m.