e*******l 发帖数: 55 | 1 I want to do some very simple interp/extrap in python. When the requested
points is in the data range, do interpolation, when they are out of range,
do some extrapolation.
But with the scipy.interpolate.interp1d(), when the requested point is out
of range, it only returns NaN, or a prespecified value. Is there any way to
do simple extrapolation? Thanks. | r****t 发帖数: 10904 | 2 Try "interpolate.UnivariateSpline", 把 bbox 设好就行。
Type: type
Base Class:
String Form:
Namespace: Interactive
File: /usr/lib/python2.5/site-packages/scipy/interpolate/
fitpack2.py
Docstring:
Univariate spline s(x) of degree k on the interval
[xb,xe] calculated from a given set of data points
(x,y).
Can include least-squares fitting.
Constructor information:
Definition: |
|