[SciPy-User] Points fitting (non lin)

Pauli Virtanen pav@iki...
Fri Dec 14 10:33:07 CST 2012

Paolo Zaffino <p.zaffino <at> yahoo.it> writes:
> I have a set of points (2D) and I would compute a curve that fits them.
> The points are ordered in a precise way (not crescent order) and
> I can't change this order (the curve should fit the points in that order).
> I'm interseting in a non linear fit (the ideal case would be more
> intervals of quadratic curves).
> Has anyone any advice about?

splprep may be the function you are looking for, it fits a parametric
spline to a set of points.

Read the documentation on how to choose the smoothing `s` parameter.


Pauli Virtanen

More information about the SciPy-User mailing list