ftwindow | R Documentation |

Generates different Fourier Transform windows.

```
ftwindow(wl, wn = "hamming",
correction = c("none", "amplitude", "energy"))
```

`wl` |
window length |

`wn` |
window name: |

`correction` |
a character vector of length 1 to apply an amplitude ("amplitude") or an energy ("energy") correction to the FT window. By default no correction is applied ("none"). |

A vector of length `wl`

.

Try the example to see windows shape.

Jerome Sueur sueur@mnhn.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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.