# Von Hann Windowing( HELP)

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.

Related Calculus and Beyond Homework Help News on Phys.org
uart
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 thats all. Thank you