Last active
April 14, 2020 03:45
-
-
Save nihalpasham/79e857e2ef19b4bc5eb7725491406adb to your computer and use it in GitHub Desktop.
Finding the first correlation peak
This file contains hidden or 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
| 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