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

  • Thread starter Thread starter andrey21
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
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