I have a set of datapoints (459, x/y coordinates) which can be seen here.
I already fitted a spline to the dataset. However, I would also like to fit a spiral to the datapoints. I was able to draw a sprial manually, but I couldnt find a ready-to-use function to fit the spiral to the datapoints. Probabaly I need to calculate the distances between each point and the closest points on a set of spirals and minimize the distances to find the bestfitting spiral. But how can I do that?
Thanks you for your help:)
I already fitted a spline to the dataset. However, I would also like to fit a spiral to the datapoints. I was able to draw a sprial manually, but I couldnt find a ready-to-use function to fit the spiral to the datapoints. Probabaly I need to calculate the distances between each point and the closest points on a set of spirals and minimize the distances to find the bestfitting spiral. But how can I do that?
Thanks you for your help:)

Iy it is an Euler Spiral, you can use Fresnel integrals