sazed.maj {sazedR}R Documentation

SAZED Ensemble (Majority)

Description

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

Usage

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

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

[Package sazedR version 2.0.2 Index]