ahwillia/affinewarp ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python package for aligning multi dimensional time series with piecewise linear time warping.
I want to be able to take repeated noisy trials, learn a shared template, and estimate a separate warping function for each trial so the important timing patterns line up better than simple averaging. It should support both simple linear warping and piecewise linear warping, and it should feel useful for neural recording style data, but still work for other kinds of time series too.
Please include a few clear example scripts or notebooks that show how to fit a model, warp the data, and plot the results on synthetic data so I can see the difference between plain averaging and the warped alignment. If there are any current best practice docs or dependencies to check, look them up online if needed.
Are you gonna build this?
make sure you review the code using coderabbit