BartlettHannWindow

BartlettHannWindow[x]

represents a BartlettHann 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  (31)/(50)-(12 x)/(25)+(19)/(50) cos(2 pi x) 0<=x<=1/2; (31)/(50)+(12 x)/(25)+(19)/(50) cos(2 pi x) -1/2<=x<0; 0 TemplateBox[{x}, Abs]>1/2; .
  • BartlettHannWindow automatically threads over lists.

Examples

open allclose all

Basic Examples  (3)

Shape of a 1D BartlettHann window:

Shape of a 2D BartlettHann window:

Extract the continuous function representing the BartlettHann window:

Scope  (4)

Evaluate numerically:

Translated and dilated BartlettHann window:

2D BartlettHann window with a circular support:

Discrete BartlettHann window of length 15:

Discrete 15×10 2D BartlettHann window:

Applications  (3)

Create a moving average filter of length 11:

Smooth the filter using a BartlettHann window:

Log-magnitude plot of the frequency spectrum of the filters:

Use a window specification to calculate sample PowerSpectralDensity:

Calculate the spectrum:

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:

Use a window specification for time series estimation:

Specify window for spectral estimator:

Properties & Relations  (2)

The area under the BartlettHann window:

Normalize to create a window with unit area:

Fourier transform of the BartlettHann window:

Power spectrum of the BartlettHann window:

Wolfram Research (2012), BartlettHannWindow, Wolfram Language function, https://reference.wolfram.com/language/ref/BartlettHannWindow.html.

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_2024_bartletthannwindow, author="Wolfram Research", title="{BartlettHannWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/BartlettHannWindow.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_bartletthannwindow, organization={Wolfram Research}, title={BartlettHannWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/BartlettHannWindow.html}, note=[Accessed: 18-November-2024 ]}