diff --git a/Signal_prep.py b/Signal_prep.py index ae6c5e3..4c7dc7a 100644 --- a/Signal_prep.py +++ b/Signal_prep.py @@ -139,7 +139,7 @@ def sure_threshold_filter(cA, cD): # soft filtering of wavelet trans with 0.25 lower percent def soft_threshold_filter(cA, cD): - cA_filt = pywt.threshold(cA, 0.25 * cA.max()) + cA_filt = pywt.threshold(cA, 0.4 * cA.max()) cD_filt = cD return cA_filt, cD_filt diff --git a/Test_functions.py b/Test_functions.py index 91f2411..2c9fca0 100644 --- a/Test_functions.py +++ b/Test_functions.py @@ -44,7 +44,7 @@ def test_plot_wavelet_both_ways(): cA_filt, cD_filt = soft_threshold_filter(cA, cD) plot_arrays(x, cA_filt) #print(len(cA_filt)) - y_new_values = inverse_wavelet(df, cA, cD) + y_new_values = inverse_wavelet(df, cA_filt, cD_filt) #print(len(y_new_values)) plot_arrays(N, y_new_values) diff --git a/__pycache__/Signal_prep.cpython-38.pyc b/__pycache__/Signal_prep.cpython-38.pyc index 2a578c0..0df3168 100644 Binary files a/__pycache__/Signal_prep.cpython-38.pyc and b/__pycache__/Signal_prep.cpython-38.pyc differ