find time shift between two similar waveforms
scipy provides a correlation function which will work fine for small input and also if you want non-circular correlation meaning that the signal will not wrap around. note that in mode=”full” , the size of the array returned by signal.correlation is sum of the signal sizes minus one (i.e. len(a) + len(b) – 1), so … Read more