Hann function

From Wikipedia, the free encyclopedia

Template:Short description Script error: No such module "Distinguish".

Hann function (left), and its frequency response (right)

The Hann function is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing or hanning.[1][2] The function, with length L and amplitude 1/L, is given by:

w0(x){1L(12+12cos(2πxL))=1Lcos2(πxL),|x|L/20,|x|>L/2}.   [a]

For digital signal processing, the function is sampled symmetrically (with spacing L/N and amplitude 1):

w[n]=Lw0(LN(nN/2))=12[1cos(2πnN)]=sin2(πnN)},0nN,

which is a sequence of N+1 samples, and N can be even or odd. It is also known as the raised cosine window, Hann filter, von Hann window, Hanning window, etc.[2][3][4]

Fourier transform

Top: 16 sample DFT-even Hann window. Bottom: Its discrete-time Fourier transform (DTFT) and the 3 non-zero values of its discrete Fourier transform (DFT).

The Fourier transform of w0(x) is given by:

W0(f)=12sinc(Lf)(1L2f2)=sin(πLf)2πLf(1L2f2)   [b]

Page Template:Math proof/styles.css has no content.

Derivation

Using Euler's formula to expand the cosine term in w0(x), we can write:

w0(x)=1L(12rect(x/L)+14ei2πx/Lrect(x/L)+14ei2πx/Lrect(x/L)),

which is a linear combination of modulated rectangular windows:

1Lrect(x/L)Fourier transformsinc(Lf)sin(πLf)πLf.

Transforming each term:

W0(f)=12sinc(Lf)+14sinc(L(f1/L))+14sinc(L(f+1/L))=12sin(πLf)πLf+14sin(π(Lf1))π(Lf1)+14sin(π(Lf+1))π(Lf+1)=12π(sin(πLf)Lf12sin(πLf)Lf112sin(πLf)Lf+1)=sin(πLf)2π(1Lf+1211Lf1211+Lf)=sin(πLf)2π1Lf(1Lf)(1+Lf)=12sinc(Lf)(1L2f2).

Discrete transforms

The discrete-time Fourier transform (DTFT) of the N+1 length, time-shifted sequence is defined by a Fourier series, which also has a 3-term equivalent that is derived similarly to the Fourier transform derivation:

{w[n]}n=0Nw[n]ei2πfn=eiπfN[12sin(π(N+1)f)sin(πf)+14sin(π(N+1)(f1N))sin(π(f1N))+14sin(π(N+1)(f+1N))sin(π(f+1N))].

The truncated sequence {w[n], 0nN1} is a DFT-even (aka periodic) Hann window. Since the truncated sample has value zero, it is clear from the Fourier series definition that the DTFTs are equivalent. However, the approach followed above results in a significantly different-looking, but equivalent, 3-term expression:

{w[n]}=eiπf(N1)[12sin(πNf)sin(πf)+14eiπ/Nsin(πN(f1N))sin(π(f1N))+14eiπ/Nsin(πN(f+1N))sin(π(f+1N))].

An N-length DFT of the window function samples the DTFT at frequencies f=k/N, for integer values of k. From the expression immediately above, it is easy to see that only 3 of the N DFT coefficients are non-zero. And from the other expression, it is apparent that all are real-valued. These properties are appealing for real-time applications that require both windowed and non-windowed (rectangularly windowed) transforms, because the windowed transforms can be efficiently derived from the non-windowed transforms by convolution.[5][c][d]

Name

The function is named in honor of von Hann, who used the three-term weighted average smoothing technique on meteorological data.[6][2] However, the term Hanning function is also conventionally used,[7] derived from the paper in which the term hanning a signal was used to mean applying the Hann window to it.[4][8] It is distinct from the similarly-named Hamming function, named after Richard Hamming.

See also

Page citations

Template:Notelist-la

References

  1. ^ Page Module:Citation/CS1/styles.css has no content.Essenwanger, O. M. (Oskar M.) (1986). Elements of statistical analysis. Elsevier. ISBN 0444424261. OCLC 152410575.
  2. ^ a b c Page Module:Citation/CS1/styles.css has no content.Kahlig, Peter (1993), "Some aspects of Julius von Hann's contribution to modern climatology", in McBean, G.A.; Hantel, M. (eds.), Interactions Between Global Climate Subsystems: The Legacy of Hann, Geophysical Monograph Series, vol. 75, American Geophysical Union, pp. 1–7, doi:10.1029/gm075p0001, ISBN 9780875904665, retrieved 2019-07-01, Hann appears to be the inventor of a certain data smoothing procedure, now called "hanning" ... or "Hann smoothing" ... Essentially, it is a three-term moving average (running mean) with unequal weights (1/4, 1/2, 1/4).
  3. ^ Page Module:Citation/CS1/styles.css has no content.Smith, Julius O. (Julius Orion) (2011). Spectral audio signal processing. Stanford University. Center for Computer Research in Music and Acoustics., Stanford University. Department of Music. [Stanford, Calif.?]: W3K. ISBN 9780974560731. OCLC 776892709.
  4. ^ a b Page Module:Citation/CS1/styles.css has no content.Blackman, R. B.; Tukey, J. W. (1958). "The measurement of power spectra from the point of view of communications engineering — Part I". The Bell System Technical Journal. 37 (1): 273. doi:10.1002/j.1538-7305.1958.tb03874.x. ISSN 0005-8580.
  5. ^ Page Template:Citation/styles.css has no content.US patent 6898235, Carlin, Joe; Collins, Terry & Hays, Peter et al., "Wideband communication intercept and direction finding device using hyperchannelization", published Script error: No such module "auto date formatter"., issued Script error: No such module "auto date formatter". , also available at https://patentimages.storage.googleapis.com/4d/39/2a/cec2ae6f33c1e7/US6898235.pdf
  6. ^ Page Module:Citation/CS1/styles.css has no content.von Hann, Julius (1903). Handbook of Climatology. Macmillan. p. 199. The figures under b are determined by taking into account the parallels 5° away on either side. Thus, for example, for latitude 60° we have ½[60 + (65 + 55)÷2].
  7. ^ Page Module:Citation/CS1/styles.css has no content.Harris, Fredric J. (Jan 1978). "On the use of Windows for Harmonic Analysis with the Discrete Fourier Transform" (PDF). Proceedings of the IEEE. 66 (1): 51–83. CiteSeerX 10.1.1.649.9880. doi:10.1109/PROC.1978.10837. The correct name of this window is 'Hann.' The term 'Hanning' is used in this report to reflect conventional usage. The derived term 'Hann'd' is also widely used.
  8. ^ Page Module:Citation/CS1/styles.css has no content.Blackman, R. B. (Ralph Beebe); Tukey, John W. (John Wilder) (1959). The measurement of power spectra from the point of view of communications engineering. New York : Dover Publications. pp. 98. LCCN 59-10185.{{cite book}}: CS1 maint: publisher location (link)

Page Template:Refbegin/styles.css has no content.

  1. Page Module:Citation/CS1/styles.css has no content.Nuttall, Albert H. (Feb 1981). "Some Windows with Very Good Sidelobe Behavior". IEEE Transactions on Acoustics, Speech, and Signal Processing. 29 (1): 84–91. doi:10.1109/TASSP.1981.1163506.


Cite error: There are <ref group=lower-alpha> tags or {{efn}} templates on this page, but the references will not show without a {{reflist|group=lower-alpha}} template or {{notelist}} template (see the help page).