To create Hamming window of length 64 with overlap 60% in Matlab

本小妞迷上赌 提交于 2019-12-01 10:29:14

问题


I am trying to give for Wigner-Ville Distribution Hamming Window of length 64 with 60% overlap here. I can create Hamming window of length 64 by

h=hamming(64);

Here is some theoretical pieces of advice about the issue. The window seems to be some sort of convolution of three Hamming waves with 60% probability for convolution.

The overlap seems to be some sort of convolution of three functions. My try for three windows and their overlaps

conv(conv(hamming(64), hamming(64)), conv(hamming(64), hamming(64)))

My try for two windows and their overlaps

h = conv(hamming(64), hamming(64));

Both of the results do not seem to give me any better Wigner-Ville distribution results. Many cloudy peaks are still visible. So the key seems to separate in time the windows, since the current result of the window function returns exactly the same picture as with hamming(64) window only.

Thinking the 60% overlap

The dimensions of hamming(64) are 64x1 double, while of conv(hamming(64), hamming(64)) 127x1 double. To make a probabilistic algorithm of 60% chance is not straightforward, because we cannot iterate both functions linearly.

How can you create hamming window with 60% overlap?


回答1:


A quick search indicated buffer might be worth attempting.

h = hamming(64);
y = buffer(h, 1, floor(64 * 0.6));

But my Matlab version does not support this function, so I didn't try.




回答2:


Based on Floris' comment. Run Wigner-Ville distribution with 60% overlap of Hamming window 64.

h = hamming(64);
h2 = hamming(38);
h = conv(h, h2);
[B,T,F] = tfrwv(data, 1:length(data), length(data), h);

The picture seems to be exactly the same as with hamming-64 window. The picture should not be the same, since the vector hamming-64 and this windowing function differ in values. So probably the norm should be studied to estimate the thing.

The log(abs(data)) gives on the left-hand-side, while the original on the right-hand side

Here now logarithmic function applied to distribution with Hamming 64 and to the other with Hamming 64 but with overlap 60%

The pictures seem to be the same after logaritmic function too.



来源:https://stackoverflow.com/questions/20763707/to-create-hamming-window-of-length-64-with-overlap-60-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!