Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created September 4, 2019 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/444f30a17230b5b66b68644b9a5143f2 to your computer and use it in GitHub Desktop.
Save aravindpai/444f30a17230b5b66b68644b9a5143f2 to your computer and use it in GitHub Desktop.
import numpy as np
energy = np.array([sum(abs(x[i:i+window_length]**2)) for i in range(0, len(x), window_length)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment