MCPcopy Index your code
hub / github.com/DynamicTimeWarping/dtw-python / test_plot_twoway

Method test_plot_twoway

tests/test_plot.py:39–47  ·  view source on GitHub ↗

Test the two-way plot.

(self)

Source from the content-addressed store, hash-verified

37 alignment.plot(type="threeway")
38
39 def test_plot_twoway(self):
40 """Test the two-way plot."""
41 # Align and plot with the Rabiner-Juang type VI-c unsmoothed recursion
42 dtw(
43 self.query,
44 self.template,
45 keep_internals=True,
46 step_pattern=rabinerJuangStepPattern(6, "c"),
47 ).plot(type="twoway", offset=-2)
48
49 def test_plot_twoway_multivariate_raises(self):
50 """Test the two-way plot rejects multivariate time series."""

Callers

nothing calls this directly

Calls 3

dtwFunction · 0.90
rabinerJuangStepPatternFunction · 0.85
plotMethod · 0.45

Tested by

no test coverage detected