Ucrdtw
Python extension for UCR Suite highly optimized subsequence search using Dynamic Time Warping (DTW)
Install / Use
/learn @klon/UcrdtwREADME
ucrdtw
Python extension for UCR Suite highly optimized subsequence search using Dynamic Time Warping (DTW)
Based on the paper Searching and Mining Trillions of Time Series Subsequences under Dynamic Time Warping
More info on the UCR Suite web page http://www.cs.ucr.edu/~eamonn/UCRsuite.html
Requirements
Python 2.7+, numpy 1.8+
Installation
python setup.py build && python setup.py install
Usage
import _ucrdtw
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])
plt.figure()
plt.plot(data)
plt.plot(query)
plt.show()
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
