ArticleslgStudy

mathematics

Hann function

Hann function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hann function rather than just read about it. In short: The Hann function is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing or hanning.

Hann function — main illustration
Hann function — illustration

Key takeaways

  • Hann function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hann function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hann function from memory before moving on to harder problems.

Reference excerpt

The Hann function is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing or hanning. 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}. For digital signal processing, the function is sampled symmetrically (with spacing L/N and amplitude 1):

w[n]=L⋅w0(LN(n−N/2))=12[1−cos⁡(2πnN)]=sin2(πnN)},0≤n≤N, 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.

Fourier transform

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

W0(f)=12sinc⁡(Lf)(1−L2f2)=sin⁡(πLf)2πLf(1−L2f2)

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]⋅e−i2πfn=e−iπfN[12sin⁡(π(N+1)f)sin⁡(πf)+14sin⁡(π(N+1)(f−1N))sin⁡(π(f−1N))+14sin⁡(π(N+1)(f+1N))sin⁡(π(f+1N))]. The truncated sequence {w[n], 0≤n≤N−1} 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]}=e−iπf(N−1)[12sin⁡(πNf)sin⁡(πf)+14e−iπ/Nsin⁡(πN(f−1N))sin⁡(π(f−1N))+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.

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

See also Window function Apodization Raised cosine distribution Raised-cosine filter

Page citations

References

External links Hann function at MathWorld

Illustrations

Hann function: Hann function (left), and its frequency response (right)
Hann function (left), and its frequency response (right)
Hann function: 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).
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).

Worked examples

Example 1 — a first encounter with Hann function

Start with the simplest possible case. Write down what Hann function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hann function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hann function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hann function

In research
Hann function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hann function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hann function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Signal processing, so understanding it makes those chapters shorter.
In everyday life
Look for Hann function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hann function” →

How to study Hann function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hann function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hann function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hann function in simple terms?

The Hann function is named after the Austrian meteorologist Julius von Hann. It is a window function used to perform Hann smoothing or hanning.

Why does Hann function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hann function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hann function.

Tags

  • Signal processing

Keep exploring