答案 0 :(得分:0)
可能您可以使用mlpy.wavelet
并试试这个:
>>> 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])
有关详细说明,您可以访问here
答案 1 :(得分:0)
或者更好地使用pywt python包:http://www.pybytes.com/pywavelets/