noise_saltpepper: Filter to add salt-and-pepper noise

View source: R/filter.R

noise_saltpepperR Documentation

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)

Arguments

p

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

Value

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

See Also

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


ruta documentation built on Jan. 9, 2023, 1:20 a.m.