feat: add func idwt inverse wavelet db4

This commit is contained in:
Skudalen 2021-06-24 14:28:21 +02:00
parent bca743d651
commit c9b6230db8

View File

@ -147,8 +147,10 @@ def plot_trans(N_trans, y_trans):
plt.plot(N_trans, np.abs(y_trans))
plt.show()
def inverse_wavelet(N, cA, cD):
return None
def inverse_wavelet(cA_filtered, cD):
wavelet = pywt.Wavelet('db4')
cA, cD = pywt.idwt(cA_filtered, cD, wavelet)
return cA, cD
#'''
handler = Handler.CSV_handler()