[SciPy-User] Spline with constraint

Paweł Kwaśniewski pawel.kw@gmail....
Thu Jan 10 08:24:29 CST 2013

Hi Fabrice,

You can just add the additional points you want the interpolated curve to
go through - for example using scipy.insert (at the beginning of the array)
or scipy.append (at the end of the array). I suppose that anyhow the fitted
spline might go crazy sooner or later - by adding additional data points
you just move this away from real data.



2013/1/10 Fabrice Silva <silva@lma.cnrs-mrs.fr>

> Hi,
> I am currently smoothing a set of data points using
> scipy.interpolate.UnivariateSpline. It seems OK while only considering
> the interval delimited by the data. The trouble is that the behaviour
> gets wild when looking beyond the extrema. Would it be possible to force
> the resulting the spline to pass through a pair of specified extra
> points ?
> It seems trivial for Bezier curves, but is there a tool in scipy for
> spline?
> Thanks,
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20130110/6eabdfc6/attachment.html 

More information about the SciPy-User mailing list