mvtsa.warping.window_mask#

mvtsa.warping.window_mask(n, m, window=None)[source]#

Admissible cells of the warping path.

window may be None (no constraint), an int or float r (Sakoe–Chiba band of half-width r samples, or r times the length if r < 1), ("sakoe_chiba", r), ("itakura", s) with maximal slope s (Itakura parallelogram), or a boolean array. The band follows the diagonal of the rectangular n x m grid.

Examples using mvtsa.warping.window_mask#

Dynamic time warping and global constraints

Dynamic time warping and global constraints