Smoothing function

Smoothening of the time series

Smoothening of the time series

Smoothing(timeseries, frequency = 52, smoothening_algorithm = "lowess", breaks)

Arguments

  • timeseries: Given time series
  • frequency: Timeseries frequency, defaults to 12 points
  • smoothening_algorithm: Smoothening algorithm required
  • breaks: Breakpoints identified by the previous algorithm
  • lowess: Lowess smoothener

Returns

The smoothened time series

Examples

Smoothing(timeseries = StructuralDecompose::Nile_dataset[,1], breaks = c(4, 50, 80)) Smoothing(timeseries = runif(n = 50, min = 1, max = 10), breaks = c(4, 20, 30))