Engee documentation

barthannwin

Modified Bartlett—Hannah window.

Library

EngeeDSP

Syntax

Function call

  • w = barthannwin(L) — returns L-point modified Bartlett—Hanna window.

  • w = barthannwin(L,typeName) — indicates the possibility of returning the window w with single or double precision.

Arguments

Input arguments

# L — window length

+ positive integer

Details

The window length specified as a positive integer.

If you set L as a non-integer, the function will round it to the nearest integer value.
Типы данных

Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

# typeName — type of output data

+ Float64 (by default) | Float32

Details

The type of output data (class) specified in one of the following ways:

  • Float64 — use this value to return the output w with double precision.

  • Float32 — use this value to return the output w with single precision.

Типы данных

DataType

Output arguments

# w — modified Bartlett—Hanna window

+ column vector

Details

Modified Bartlett—Hanna window, returned as a column vector of length L.

Algorithms

The equation for calculating the coefficients of the modified Bartlett—Henning window has the form

Where and the length of the window is .

Like the Bartlett, Hahn and Hamming windows, this window has a main lobe at the origin and asymptotically decaying side lobes on both sides. It is a linear combination of weighted Bartlett and Hanna windows, while the near side lobes are smaller than those of Bartlett and Hanna windows, and the far side lobes are smaller than those of Bartlett and Hamming windows. The width of the main lobe of the modified Bartlett—Hanna window does not increase relative to the main lobes of either Bartlett or Hanna windows.

Literature

  1. Ha, Y. H., and J. A. Pearce. «A New Window and Comparison to Standard Windows.» IEEE® Transactions on Acoustics, Speech, and Signal Processing. Vol. 37, Number 2, 1999, pp. 298–301.

  2. Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999, p. 468.