orbingol/NURBS-Python

Approximation deviation

vicetingeltangel opened this issue · 0 comments

Hello,

I would like to program my approximation to insert control points until the MSE reaches a defined value and my approximation is sufficiently accurate by n control points. Is there a way to calculate the MSE of my approximation?

Here is the algorithm I use for the approximation, while points is my list of measurment points:

curve = geomdl.fitting.approximate_curve(points, degree, ctrlpts_size= 30, centripetal=True)

next I would like to put this approximation into a while loop and insert the variable n for ctrlpts_size

Thanks for your help and sorry I am still a complete beginner