Out of curiosity, how is this better than, for instance, using B-splines or some other smoothing spline to fit a given chunk of data? I'm not being snarky, I'm just trying to get my head around the use cases for this.
The goal of this library isn't to fit data, but rather to determine if 2 curves have similar shape to each other. So, for instance, if want to determine if a hand-drawn curve has a similar shape to the letter "S" you could use this library to find a similarity score between the curves.
Ahh, I see. Interesting.
This looks neat! I found the Hanzi Writer demo, but you might want to put some (static) examples in the ReadMe, to explain exactly what the library does.
Good call! I just added an image showing 2 curves and their similarity scores to the readme.
Reminds me of some interesting papers that are related to this topic, off the top of my head check out [0-1]. Perhaps relative geodesics is a key word to search. If you picture curves as made out of some sort of pliable material, you can ask how much energy does it take to deform one curve into another.
The original motivation was for doing Chinese character stroke quizzes in Hanzi Writer [https://chanind.github.io/hanzi-writer]. Beyond that I'm not too sure, but hopefully it's useful for somebody :)
Perhaps this could be used for "curve fitting" [0]? (used in CAM software to optimise CNC toolpaths)