Skip to content

Instantly share code, notes, and snippets.

@nihalpasham
Last active April 14, 2020 03:45
Show Gist options
  • Save nihalpasham/79e857e2ef19b4bc5eb7725491406adb to your computer and use it in GitHub Desktop.
Save nihalpasham/79e857e2ef19b4bc5eb7725491406adb to your computer and use it in GitHub Desktop.
Finding the first correlation peak
h3 = sorted((v,i) for (v,i) in enumerate(squared_correlation_magnitude_buffer) if (i > 125) and ( v < 4000))
h4 = max([i for v,i in h3])
print(h3)
print(h4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment