[SciPy-User] Gradient of spline interpolation at a point wrt changing the knot points
Fri Jun 14 16:47:05 CDT 2013
Pauli Virtanen <pav <at> iki.fi> writes:
> John Salvatier <jsalvatier <at> gmail.com> writes:
> > I'm using scipy.interpolate.InterpolatedUnivariateSpline in a statistical
> > y = InterpolatedUnivariateSpline(x0,y0)(x)
> > I need the derivatives of the spline evaluated at
> > a given point with respect to changing the knot values (y0).
> > That is, I need the derivative of y wrt to y0. Is there
> > a way I could compute this?
> You can work it out from the B-spline representation:
> Not that there is ready-made code for it, but it should be
> possible to write it.
Sorry, wrote it too fast. Computing the spline coefficients
is IIRC is a global process, and it is affected by knot locations,
so I doubt there is a simple formula for the derivative.
More information about the SciPy-User