Skip to contents

Mean level checks

Usage

MeanCleaning(timeseries, mean_level = 0.5, breaks, frequency = 52)

Arguments

timeseries

Given time series

mean_level

Mean distance between two levels

breaks

breakpoints returned

frequency

Timeseries frequency, defaults to 12 points

Value

The series cleaned with the mean check

Examples

MeanCleaning(timeseries = StructuralDecompose::Nile_dataset[,1], breaks = c(1,4,5), frequency = 1)
#> [1]   0   1   4   5 100

MeanCleaning(timeseries = runif(n = 50, min = 1, max = 10), breaks = c(1,4,5), frequency = 12)
#> [1]  0  1  4  5 50