Skip to content
Yash Garg edited this page Feb 6, 2019 · 1 revision

Getting Started

Using MMDTW is quick and easy. Copy the codec in your project directory, and import the MMDTW class

Importing MMDTW package

from codec import MMDTW

Initializing the Object

MMDTW allows for both parametric and non-parameter object initialization.

Parameteric : MMDTW(time_series_1=[], time_series_2=[], metadata=[]) Non-Parameteric : MMDTW()

For non-parametric initialization, we also provide setter() methods for

  • Time Series : set_time_series_1() and set_time_series_2()
  • Metadata : set_metadata()

MMDTW Object Creation

mmdtw = MMDTW()

Computing Dynamic Time Warping Distance

VDTW : Vectorized Dynamic Time Warping : mmdtw.vdtw()

IDTW : Independent Dynamic Time Warping : mmdtw.idtw()

WDTW : Weighted Dynamic Time Warping : mmdtw.wdtw()

PDTW : Projected Dynamic Time Warping : mmdtw.pdtw()

Clone this wiki locally