fftper | R Documentation |
Compute a periodogram of the univariate time series via FFT.
fftper(y, window = 1, plot = TRUE, ...)
y |
a univariate time series. |
window |
smoothing window type. (0: box-car, 1: Hanning, 2: Hamming) |
plot |
logical. If |
... |
graphical arguments passed to |
Hanning Window : | W_0 = 0.5 | W_1 = 0.25 |
Hamming Window : | W_0 = 0.54 | W_1 = 0.23 |
An object of class "spg"
, which is a list with the following components:
period |
periodogram. |
smoothed.period |
smoothed periodogram. If there is not a negative number, logarithm of smoothed periodogram. |
log.scale |
logical. If |
tsname |
the name of the univariate time series |
We assume that the length N
of the input time series y
is a power
of 2. If N
is not a power of 2, calculate using the FFT by appending 0's
behind the data y
.
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
# Yaw rate, rolling, pitching and rudder angle of a ship
data(HAKUSAN)
YawRate <- HAKUSAN[, 1]
fftper(YawRate, window = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.