sazed.maj: SAZED Ensemble (Majority)

Description Usage Arguments Value Examples

View source: R/sazed.R

Description

sazed.maj estimates a time series' season length by computing 6 different estimates and taking a majority vote.

Usage

1
sazed.maj(y, iter = 0, method = "down", preprocess = T)

Arguments

y

The input time series.

iter

The recursion depth.

method

The method used for breaking ties. One of c("alt","diff","down").

preprocess

If true, y is detrended and z-normalized before computation.

Value

The season length of the input time series.

Examples

1
2
3
season_length <- 26
y <- sin(1:400*2*pi/season_length)
sazed.maj(y)

sazedR documentation built on Oct. 23, 2020, 6:37 p.m.