| ftwindow {seewave} | R Documentation |
Generates different Fourier Transform windows.
ftwindow(wl, wn = "hamming")
wl |
window length |
wn |
window name: bartlett, blackman,
flattop, hamming, hanning, or rectangle
(by default hamming). |
A vector of length wl.
Try the example to see windows shape.
Jérôme Sueur jerome.sueur@univ-tours.fr
Harris, F.J., 1978. On the use of windows for harmonic analysis with the discrete Fourier Transform. Proceedings of the IEEE, 66(1): 51-83.
covspectro, dfreq, meanspec,
spec, spectro, spectro3D
a<-ftwindow(512)
b<-ftwindow(512,wn="bartlett")
c<-ftwindow(512,wn="blackman")
d<-ftwindow(512,wn="flattop")
e<-ftwindow(512,wn="hanning")
f<-ftwindow(512,wn="rectangle")
all<-cbind(a,b,c,d,e,f)
matplot(all,type="l",col=1:6,lty=1:6)
legend(legend=c("hamming","bartlett","blackman","flattop","hanning","rectangle"),
x=380,y=0.95,col=1:6,lty=1:6,cex=0.75)