import pywt
import matplotlib.pyplot as plt
import numpy as np
ts = [2, 56, 3, 22, 3, 4, 56, 7, 8, 9, 44, 23, 1, 4, 6, 2]
(ca, cd1) = pywt.dwt(ts,'haar')
(ca, cd2) = pywt.dwt(ca,'haar')
cat = pywt.threshold(ca, np.std(ca)/2,mode='soft')
cdt = pywt.threshold(cd2, np.std(cd2)/2,mode='soft')
cat_rec = pywt.idwt(cat, cdt, 'haar')
cat1 = pywt.threshold(cat_rec, np.std(ca)/2,mode='soft')
cdt1 = pywt.threshold(cd1, np.std(cd2)/2,mode='soft')
ts_rec = pywt.idwt(cat1, cdt1, 'haar')
--
You received this message because you are subscribed to the Google Groups "PyWavelets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pywavelets+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pywavelets+...@googlegroups.com.