Skip to main content

CFFI binding for UTC DTW suite

Project description

UCRDTW-cffi: Dynamic Time Warping with UCR optimizations

[![Build Status](](

Based on [Searching and Mining Trillions of Time Series Subsequences under Dynamic Time Warping]( .

C implementation from [libdtw](

Interface and tests from

### Requirements

Python 2.7+ or 3.3+, numpy 1.8+

### Usage

from ucrdtw_cffi import dtw_query
import numpy as np
import matplotlib.pyplot as plt

data = np.cumsum(np.random.uniform(-0.5, 0.5, 1000000))
query = np.cumsum(np.random.uniform(-0.5, 0.5, 100))
loc, dist = _ucrdtw.ucrdtw(data, query, 0.05, True)
query = np.concatenate((np.linspace(0.0, 0.0, loc), query)) + (data[loc] - query[0])


Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for utcdtw-cffi, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size utcdtw-cffi-0.1.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page