Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Daubechies orthogonal wavelet in python

I am newbie in Signal Processing, In here I want to ask how to use Daubechies orthogonal wavelet 'db6' to filter a array data, for example like this:

x = [1,2,3,4]

I have read the documentation in here, but i did not find an idea to do it.

like image 417
markov zain Avatar asked Jul 05 '26 08:07

markov zain


1 Answers

May be you can use mlpy.wavelet and try this one:

>>> import numpy as np
>>> import mlpy.wavelet as wave
>>> X = np.array([ 5.65685425,  3.41458985,  0.29185347, -0.29185347, -0.28310081,
...               -0.07045258,  0.28310081,  0.07045258])
>>> wave.idwt(X=X, wf='d', k=6)
array([  1.00000000e+00,   2.00000000e+00,   3.00000000e+00,
         4.00000000e+00,   3.00000000e+00,   2.00000000e+00,
         1.00000000e+00,  -3.53954610e-09])

For detail explanation you can visit here

like image 181
Priagung Khusumanegara Avatar answered Jul 07 '26 21:07

Priagung Khusumanegara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!