rafat / wavelib

C Implementation of 1D and 2D Wavelet Transforms (DWT,SWT and MODWT) along with 1D Wavelet packet Transform and 1D Continuous Wavelet Transform.
Other
363 stars 119 forks source link

gaus1 CWT implementation? #11

Open ashayk opened 5 years ago

ashayk commented 5 years ago

Hi Rafat,

I was wondering if there is a gaus1 CWT implementation available in wavelib? I'm assuming gaus2 is DOG with param = 2, but I'm also searching for a gaus1 CWT implementation. Perhaps I am missing something?

Any help much appreciated.

Thanks,

--Alex

rafat commented 5 years ago

DOG with param=2 is the Mexican Hat Wavelet. I think you may want to try DOG with param =1. More info here http://atoc.colorado.edu/research/wavelets/bams_79_01_0061.pdf Page 65.

ashayk commented 5 years ago

Thanks Rafat,

The docs say param must be a positive even integer for DOG and this is consistent with other implementations (Matlab). I suppose I can try with param = 1, but was hoping you had some ideas.

Thanks.

--Alex

rafat commented 5 years ago

I haven't looked at the code in quite some time but I believe the algorithm should work for positive integers and not just even ones. Can you post a link to the matlab page so I can take a look ?

ashayk commented 5 years ago

Sorry for the late reply. Here it is... https://au.mathworks.com/help/wavelet/ref/cwtft.html