ShortTimeFT | R Documentation |
Short Time Fourier Transformation
ShortTimeFT(Datavec, LenWindow,
TypeWindow, GaussianApha=1,
PlotIt=TRUE,Window, ...)
Datavec |
[1:n], numerical vector of data |
LenWindow |
Width of the window defined as a length which is typical a small fraction of data |
TypeWindow |
"hanning", "gaussian" or "specific" can be selected |
GaussianApha |
standard deviation of gaussian windwo |
PlotIt |
plots the spectrogram |
Window |
if specific provide window in convention of |
... |
see |
Gaussian Window results in Gabor Transformation
I would be better if data length n is dividable with 2 (e.g. 1024), otherwise approximations are made internally.
"specific" requires a vector which is the result of a window function of signal
List with
Amplitude |
Amplitude[1:m:1k] numerical matrix |
Spectrogram |
|
Transformations of Tics to frequencies in Hz are not provided so far..
Michael C. Thrun
Lectures of MCT
stft
,
specgram
t0=seq(from=0.001,
to=2.5,
length.out = 256)
y=c(cos(2*pi*1.0*t0),
cos(2*pi*2.5*t0),
cos(2*pi*5.0*t0),
cos(2*pi*7.5*t0))
#10sec of ticks of time
t=seq(from=0.001,
to=10,
length.out = 256*4)
plot(t,y,type='l',
ylab='Amplitude',xlab='Time in sec')
x=ShortTimeFT(y,WindowLen = 8,PlotIt = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.