[Eeglablist] re: TF with complex morlet wavelet
wu xiang
rwfwu at ustc.edu
Fri Mar 12 17:48:31 PST 2004
Hi Marial
I'm sorry reply so lately for I participated a meeting last week. Zero padding is used in fourier transform in which to fast the transform the number of time points should be times of two,and in wavelet transform there is no such limitation. But for good result you may do like below
///////////////////////////////////////////////////////////////////////////////////////
SD_f = freq_center/Q; //SD_f equal half width of frequency window at a center //fequency,
//Q is the ratio of wavelet family
SD_t = 1/(2*pi*SD_f); //SD_t equal half width of time window
t = -1*pad*SD_t:ts:pad*SD_t; //t is the with of wavelet you actrally use.Compared with //my previous code, I add a pad, now I use 2 respect to //effect and speed, you could alter it and see what //change would happen.I see this method in 4-D tool,you //can find it in internet.And I think this method may be //a interpolation,but is it really?
//and ts is sampling period,equal 1/sampling rate
////////////////////////////////////////////////////////////////////////////////////////
hope which would help you.
¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ wu xiang
rwfwu at ustc.edu
rwfwu at mail.ustc.edu.cn
rwfwu at hotmail.com
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-03-13
More information about the Eeglablist
mailing list