Not sure what is intended, but it seems to have some bugs?<p><a href="https://assets.opentoken.com/sha256/N1ShZ7kcVmH_-auZEGaGOS_baJxgQTG2" rel="nofollow">https://assets.opentoken.com/sha256/N1ShZ7kcVmH_-auZEGaGOS_b...</a><p>Ah nevermind, it's matching the curve against template fields so it makes sense that it would show the best match even when the match is poor.
I created a method similar to this one for curve extrapolation based on sample curves. I took the second derivative of each point on the training data, added it's contributions to a vector field.<p>To extrapolate, you can take 'position' and 'velocity' of live data and integrate over the vector field to produce an extrapolation. I enjoyed the project and it worked fairly well. I think there's plenty of room for extension around this method.