represents a Bartlett–Hann window function of x.


BartlettHannWindow
represents a Bartlett–Hann window function of x.
Details

- BartlettHannWindow is a window function typically used in signal processing applications where data needs to be processed in short segments.
- Window functions have a smoothing effect by gradually tapering data values to zero at the ends of each segment.
- BartlettHannWindow[x] is equal to
.
- BartlettHannWindow automatically threads over lists.

Examples
open all close allBasic Examples (3)
Scope (4)
Applications (3)
Create a moving average filter of length 11:
Smooth the filter using a Bartlett–Hann window:
Log-magnitude plot of the frequency spectrum of the filters:
Use a window specification to calculate sample PowerSpectralDensity:
Compare to spectral density calculated without a windowing function:
The plot shows that window smooths the spectral density:
Compare to the theoretical spectral density of the process:
Related Guides
History
Text
Wolfram Research (2012), BartlettHannWindow, Wolfram Language function, https://reference.wolfram.com/language/ref/BartlettHannWindow.html.
CMS
Wolfram Language. 2012. "BartlettHannWindow." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BartlettHannWindow.html.
APA
Wolfram Language. (2012). BartlettHannWindow. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BartlettHannWindow.html
BibTeX
@misc{reference.wolfram_2025_bartletthannwindow, author="Wolfram Research", title="{BartlettHannWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/BartlettHannWindow.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_bartletthannwindow, organization={Wolfram Research}, title={BartlettHannWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/BartlettHannWindow.html}, note=[Accessed: 11-August-2025]}