Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/completepgramv2.R
Function to calculate the complete DFT.
1 | completeDFT(x, freq = 2 * pi * (1:length(x))/length(x), ...)
|
x |
time series vector. |
freq |
frequency vector. |
... |
Arguments used in the |
The default frequencies are 2*pi*(1:n)/n, where n is a length of a time series.
Complex valued complete DFT vector.
Junho Yang
S. Das, S. Subba Rao, and J. Yang. Spectral methods for small sample time series: A complete periodogram approach. Submitted, 2020.
1 2 3 | set.seed(123)
x <- arima.sim(model=list(ar=0.7), n=100)
v <- completeDFT(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.