[SciPy-User] scipy 0.11.0 to 0.12.0 changes scipy.interpolate.interp1d, breaks constantly updated interpolator
Sat Jul 20 10:17:03 CDT 2013
20.07.2013 18:04, Pauli Virtanen kirjoitti:
> The short answer is that interp1d does not currently support what you
> are trying to do. Since it supports also spline interpolants, it is in
> general not possible to update the interpolant online.
To clarify: the easiest way is to recompute the spline coefficients when
points are added, but this the same cost as reconstructing the whole
interpolant so it's not really an on-line operation.
It's probably possible to extend B-splines cheaply when points are
added, but implementing this takes some work.
If someone wants to take on adding an `add_points` method to the
interpolator, that would be useful. For this particular use case, it can
be useful even if it works only for linear interpolants (and raises an
exception for the spline ones).
More information about the SciPy-User