Fig. 2
From: Time-warping analysis for biological signals: methodology and application

Alignment of signals via time-warping. (A) Two synthetic signals with similar two-peaked structure. An exemplary landmark of interest is the first peak marked with black dots in both signals to highlight the misalignment in time. (B) Alignment via time-warping of the green dashed signal to the black dashed signal rendering the green solid signal. The corresponding warping function is on the right, the black dots showing the temporal alignment of the peaks. (C) Alignment via time-warping of the black dashed signal to the green dashed signal. The corresponding warping function is shown on the right. (D) Simultaneous alignment of both signals to render a mean signal shown in red. The corresponding warping functions are shown on the right, again highlighting the temporal alignment of the first peaks.