represents a Bartlett window function of x.



open allclose all

Basic Examples  (3)

Shape of a 1D Bartlett window:

Shape of a 2D Bartlett window:

Extract the continuous function representing the Bartlett window:

Scope  (4)

Translated and dilated Bartlett window:

2D Bartlett window with a circular support:

Evaluate numerically:

Discrete Bartlett window of length 15:

Discrete 15×10 2D Bartlett window:

Applications  (3)

Create a moving average filter of length 11:

Smooth the filter using a Bartlett 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  (3)

BartlettWindow is equivalent to a raised UnitTriangle:

The area under the Bartlett window:

Normalize to create a window with unit area:

Fourier transform of the Bartlett window:

Power spectrum of the Bartlett window:

Introduced in 2012