ref = np.array([1, 2, 3, 4, 5])
x = np.hstack(([2, -3, 9], 1.5 * ref, [0, 3, 8]))
match(x, ref)
x = np.hstack((1.5 * ref, [0, 3, 8], [2, -3, -9]))
match(x, ref)
x = np.hstack((1.5 * ref[1:], [0, 3, 8], [2, -3, -9, 1]))
match(x, ref)
find time shift between two similar waveforms