Skip to content

Instantly share code, notes, and snippets.

@suhaskv
Created December 23, 2020 11:42
Show Gist options
  • Save suhaskv/55ab0dc7ca33e336ae2e288b9ce4bf4e to your computer and use it in GitHub Desktop.
Save suhaskv/55ab0dc7ca33e336ae2e288b9ce4bf4e to your computer and use it in GitHub Desktop.
VSB Power Line Blog - Decompose the signal into detail and approximation coefficients
# 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