fit#

Spline.fit(points, arc_length_parameterization=False)#

Fit the provided points with the spline using least squares. For details refer to Data approximation.

Parameters#

pointsnumpy.ndarray

The data points that should be fit.

arc_length_parameterizationbool

Whether or not to space the knots based on the distance between the provided points. This is usefull when the points are not equally spaced. Default is False.