Created
December 23, 2020 11:42
-
-
Save suhaskv/55ab0dc7ca33e336ae2e288b9ce4bf4e to your computer and use it in GitHub Desktop.
VSB Power Line Blog - Decompose the signal into detail and approximation coefficients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decompose to get the wavelet coefficients | |
# 'db4' refers to the daubechies 4 wavelet | |
# 'per' refers to periodic-padding, as the raw signal is a periodic one | |
# x refers to the raw signal data | |
wavlt_coeffs = pywt.wavedec(x, 'db4', mode="per") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment