取消
显示结果 
搜索替代 
您的意思是: 

Understanding Hanning Window

已解决!
转到解答

I would like to understand how Hanning Window works. In the help section, the equation of Hanning Window is:

 

yi = 0.5xi[1 – cos ( ( 2 * PI * i  ) / n) ]

for i = 0, 1, 2, …, n – 1,

where n is the number of elements in X.

 

I created a array of four values: 150, 250, 250, 300. After Hanning Window I got the array: 0, 125, 250, 150

 

I am not able to realize how the equation was performed for each number because I don't understand where I will input the position of the value (first value of the series, second value of the series). The position its important because the same value 250 in the original array, resulted in different values in the array after Hanning, revealing that the position its important.

 

How would be the 4 equations to manipulate these four values in the original array?

 

Thanks for help

 

Dan07

0 项奖励
1 条消息(共 19 条)
9,653 次查看
解答
已被主题作者 dan07 接受

y0 = 0,5*150*(1- cos(2*PI*0/4)) = 0

y1 = 0,5*250*(1-cos(2*PI*1/4)) = 125

y2 = 0,5*250*(1- cos(2*PI*2/4)) = 250

y3 = 0,5*300*(1- cos(2*PI*3/4)) = 150

 

Does that help?

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
2 条消息(共 19 条)
9,637 次查看

Hello Yamaeda...

 

Thanks for the answer, your equation its correct. I did not know about the 0/4, 1/4, 2/4....

 

But I still have a problem, when I tested your equatio in Microsoft Excel, I got the correct results, but when I tried to perform the calculation using a pocket calculator (HP 10s), the result for COS its different from that obatined in excel. For example, COS (1), its 0.540302306 in excel, and 0.999847695 in HP 10s. Do you know what is happening?

 

Thanks

 

 

Daniel

Message Edited by dan07 on 11-26-2008 08:05 AM
0 项奖励
3 条消息(共 19 条)
9,615 次查看

Daniel,

 

One is in degrees and  the other in radians. 

 

Lynn 

4 条消息(共 19 条)
9,610 次查看

John...

 

you are right.

 

Problem solved!

 

Thanks all!

0 项奖励
5 条消息(共 19 条)
9,602 次查看
can u give me information about 1/4th hanning window used to calculate weighted average. 
0 项奖励
6 条消息(共 19 条)
9,488 次查看

Please can any one tell me about hanning window which is used for calculating weighted average.

 

0 项奖励
7 条消息(共 19 条)
9,429 次查看

Hello NBS

 

Sorry for the delayed answer. I don't know nothing about 1/4th hanning window used to calculate weighted average, but I will get some information about this and will send to you soon.

 

What kind of data you will apply the hanning window?

 

Thanks

 

Dan07

0 项奖励
8 条消息(共 19 条)
9,401 次查看

I am doing project on DCT based iris recognition.

I am going to apply it to a normalised iris image of size 88 X 512.

Before applying DCT 1/4th hanning window is applied twice one in horizontal direction and other in vertical.

got information about hanning but not abt 1/4th.

Really confused abt its use.

Hope that u will find some way for me.

thanks alot.

  

0 项奖励
9 条消息(共 19 条)
9,384 次查看

Hello NBS,

 

I searched by informations to help you with your problem, but I got no success doing this.

 

I got tons of information about hanning window, but not for 1/4th.

 

Sorry and good luck

 

Dan07

0 项奖励
10 条消息(共 19 条)
9,294 次查看