TS.SaltPepper: Salt and pepper variation imposed

View source: R/Time_Series_Distortions.R

TS.SaltPepperR Documentation

Salt and pepper variation imposed

Description

Similar to salt and pepper image noise but applying to time series. In this case, salt and pepper variations correspond to max(Y) and min(Y) respectively.

Usage

TS.SaltPepper(Y, prop, beta = 1)

Arguments

Y

A time series with real values.

prop

contamination percentage for the salt and pepper noise [0,1].

beta

the factor that multiplies the minimum and maximum of the series to determine the value of salt and pepper respectively

Value

The input time series with the salt and pepper noise variation imposed.


juancbellass/time-series-r-package documentation built on Aug. 26, 2023, 8:06 p.m.