[SciPy-User] Spline with constraint
Thu Jan 10 08:24:29 CST 2013
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 <email@example.com>
> 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
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User