fuzzyclust.relational.plot_dtw_alignment#

fuzzyclust.relational.plot_dtw_alignment(x, y, window=None, ax=None, offset=None, every=1, colors=None)[source]#

Two series with the dynamic-time-warping correspondences between them.

The second series is drawn shifted downwards by offset and every every-th pair of the optimal warping path is connected by a gray line, so that stretched and compressed stretches are visible.

Parameters:
x, yarray_like of shape (length,)

Univariate series.

windowint, float or None, default=None

Sakoe–Chiba band passed to dtw_alignment().

axmatplotlib Axes, optional
offsetfloat, optional

Vertical shift of the second series (default: 1.5 times the range).

everyint, default=1

Draw every every-th correspondence.

colorspair of colors, optional
Returns:
axmatplotlib Axes

Examples using fuzzyclust.relational.plot_dtw_alignment#

Fuzzy c-medoids on dynamic-time-warping dissimilarities of time series

Fuzzy c-medoids on dynamic-time-warping dissimilarities of time series