powered by
S computes the spectral density of its argument, and then derives the season length from it.
S
S(y, preprocess = T)
The input time series.
If true, y is detrended and z-normalized before computation.
The S season length estimate of y.
# NOT RUN { season_length <- 26 y <- sin(1:400*2*pi/season_length) S(y) S(y, preprocess = FALSE) # }
Run the code above in your browser using DataLab