tokens: In this paper , we introduce a new time warping algorithm , called trainable time warping ( TTW ) with linear computational complexity in both and , where and are the number and the length of time - series , respectively(For the sake of simplicity in notations , we assume time - series have the same length .