dtw_merge#
- diffsptk.functional.dtw_merge(x: Tensor, y: Tensor, indices: Tensor) tuple[Tensor, Tensor] [source]#
Align two vector sequences according to the given path.
- Parameters:
- xTensor [shape=(T1, …)]
The query vector sequence.
- yTensor [shape=(T2, …)]
The reference vector sequence.
- indicesTensor [shape=(T, 2)]
The indices of the path.
- Returns:
- x_alignTensor [shape=(T, …)]
The aligned query vector sequence.
- y_alignTensor [shape=(T, …)]
The aligned reference vector sequence.
See also