test: test the plotting of denoising
This commit is contained in:
parent
bdd476eb5e
commit
21da6ba6a8
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user