Visualizes the DTW alignment between two waveforms.
Usage
plotDTW(
dtw_result,
x = NULL,
y = NULL,
type = c("alignment", "cost", "waveforms", "all")
)References
Sakoe H, Chiba S (1978). "Dynamic programming algorithm optimization for spoken word recognition." IEEE Transactions on Acoustics, Speech, and Signal Processing, 26(1), 43-49.
Examples
x <- sin(seq(0, pi, length.out = 100)) * 30
y <- sin(seq(0, pi, length.out = 100) + 0.3) * 30
dr <- dtwDistance(x, y)
plotDTW(dr)