# dtw

> Dynamic time warping

Latest version **0.0.3** (published 2014-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install dtw
pnpm add dtw
yarn add dtw
bun add dtw
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2014-09-01 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Elmar Langholz |
| Maintainers | langholz |
| Keywords | signal, processing, dynamic, time, warping |

## Links

- npm: https://www.npmjs.com/package/dtw
- Repository: https://github.com/langholz/dtw
- Issues: https://github.com/langholz/dtw/issues
- npm.io page: https://npm.io/package/dtw

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) >= 0.7.3

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2014-09-01
- 0.0.2 — 2014-08-31
- 0.0.1 — 2014-08-31

## README

# 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

```js
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
* [API reference](./doc/api/dtw.md)

## Future work
* Implement fast (O(n)) and sparse versions.

---
_Source: https://npm.io/package/dtw · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
