Applying Von Hann Windowing to a Data Set with N=3144

  • Thread starter Thread starter andrey21
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on applying the Von Hann windowing technique to a data set with N=3144 terms. The formula for the Von Hann window is defined as w(n) = 0.5 - 0.5 cos(2 * PI * n / N), where n ranges from 0 to N-1. Participants confirm that to apply the window, each data element x(n) should be multiplied by the corresponding w(n). For improved symmetry, it is recommended to use w(n) = 0.5 - 0.5 cos(2 * PI * n / (N-1)) or to consider the Hamming window, w(n) = 0.54 - 0.46 cos(2 * PI * n / (N-1)).

PREREQUISITES
  • Understanding of windowing functions in signal processing
  • Familiarity with the Von Hann and Hamming window formulas
  • Basic knowledge of trigonometric functions
  • Experience with data manipulation in programming environments
NEXT STEPS
  • Implement the Von Hann windowing technique in Python using NumPy
  • Explore the differences between Von Hann and Hamming windows in practical applications
  • Learn about the effects of windowing on frequency analysis
  • Investigate other windowing techniques such as Blackman and Bartlett
USEFUL FOR

Data analysts, signal processing engineers, and anyone interested in applying windowing techniques to time series data.

andrey21
Messages
475
Reaction score
0
I have been asked to apply a suitable window to a data set, for this I have chosen Von Hann's approach



This is the formula I know must be used


w(n) = 0.5-0.5 cos (2* PI* n/N)

where n = 0,1,2,3...N-1
N= number of terms


My question is how do I apply this to an already given data set, with N=3144? Do I simply use n=0,1,2 or other values.
 
Physics news on Phys.org
andrey21 said:
I have been asked to apply a suitable window to a data set, for this I have chosen Von Hann's approach



This is the formula I know must be used


w(n) = 0.5-0.5 cos (2* PI* n/N)

where n = 0,1,2,3...N-1
N= number of terms


My question is how do I apply this to an already given data set, with N=3144? Do I simply use n=0,1,2 or other values.

Yes just use n-0,1,2,..N-1 and simply multiply each element x(n) of your data by the corresponding w(n) of the Window.

Notes.

1. Consider using w(n) = 0.5-0.5 cos (2* PI* n/(N-1)) for better symmetry.

2. Even better to use the Hamming Window. w(n) = 0.54-0.46 cos (2* PI* n/(N-1))
 
Thank you uart, so as my data set consists of 3144 terms the equation for either Von or Hamming would be:

w(n)= 0.5-0.5cos(2*PI*n/3143)

or

w(n) = 0.54-0.46cos(2*PI*n/3143)

Also is it more common to use N-1 rather than N as you said for better symmetry, I have only seen N used that's all. Thank you
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
2K