X
. First, time-slices of length win
are
extracted from the vector. The shift of one time-slice to the next one is
given by inc
. The values of these time-slices are smoothed by
mulitplying them with a window function specified in wtype
. For
the thus obtained windows, the Fast Fourier Transform is computed.
stft(X, win=min(80,floor(length(X)/10)), inc=min(24,
floor(length(X)/30)), coef=64, wtype="hanning.window")
coef
Fourier coefficients of one
window.win
inc
wtype
x<-rnorm(500)
y<-stft(x)
plot(y)
Run the code above in your browser using DataLab