Created
August 25, 2018 19:07
-
-
Save mdhk/ad0725cf494385d699aef6d6c40131be to your computer and use it in GitHub Desktop.
Cross-correlation signal alignment
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
ipywidgets==7.4.0 | |
matplotlib==2.2.2 | |
numpy==1.14.5 | |
scipy==1.1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A little script + interactive widget for playing with time-alignment of two cosines with different delay values. The optimal lag value is determined by finding the maximum cross-correlation peak between the two signals.
Binder link (for running the notebook & trying out the widget): https://mybinder.org/v2/gist/mdhk/ad0725cf494385d699aef6d6c40131be/master?filepath=align_signals_crosscorr.ipynb