Learn R Programming

ruta (version 1.2.0)

noise_saltpepper: Filter to add salt-and-pepper noise

Description

A data filter which replaces some values with zeros or ones

Usage

noise_saltpepper(p = 0.05)

Value

Object which can be applied to data with \link{apply_filter}

Arguments

p

Probability that a feature in an instance is set to zero or one

See Also

Other noise generators: noise_cauchy(), noise_gaussian(), noise_ones(), noise_zeros()