dtw

0.0.3 • Public • Published

DTW

Dynamic time warping javascript implementation

Installation

npm install dtw

Tests

The test suite can be invoked from the command line like this:

npm test

Usage

var DTW = require('dtw');
var s = [1,1,2,3,2,0];
var t = [0,1,1,2,3,2,1];
var dtw = new DTW();
var cost = dtw.compute(s, t);
var path = dtw.path();
console.log('Cost: ' + cost);
console.log('Path: ');
console.log(path);

Documentation

Future work

  • Implement fast (O(n)) and sparse versions.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    257
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    257
  • 0.0.2
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i dtw

Weekly Downloads

93

Version

0.0.3

License

MIT

Last publish

Collaborators

  • langholz