Description Usage Arguments Value Examples
Compute power spectrum and returns period (1/frequency) at which its density is maximized.
1 | get.period(x)
|
x |
a numerical vector. |
Period (1/frequency) of maximum power density
1 2 3 4 5 6 7 | # Regular motif of length 15 repeated 5 times + Linear Trend
x <- rep(1:15, 5)
x <- x + seq(0, 10, length.out = length(x))
x_period <- get.period(x)
# Use the period to perform classical decomposition
x_decomp <- classical.decomposition(ts = x, period = x_period)
plot_decomposition(x_decomp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.