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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wavelet packet decomposition

SantiagoLunaRomero opened this issue · comments

if you compare your code with the funtion "wpdec()" in matlab.
What is the diference?

Hi, I'm using this library to implement a project that once was implemented in Matlab. I'd validated it uses but it has a few differences:

Matlab "appcoef" returns the recomposition of "wavedec" decomposition, using the Wavelet parameters you choosed. When you return your "appcoef" results, it will show (N + 5) samples, 'N' as 1/(2^s) of total samples you enter in "wavedec" function and 's' the scale order you choosed to recompose.

Using this library, when you recompose your signal, it will return the same number of samples, but in fact, only the N/(2^s) is the recomposition data.

I don't know if this library has an option to fix it automatically, since I just began to use Wavelet and this library.

Hope it helps.
Regards.

The dwttest result is different from pywt result
image
image