由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Extrapolation in Python?
相关主题
单开主题:为何痛恨python球python大牛给指导一下:写python最大的难点是什么?最重要的品质是什么?
最新官网上下载的tutorial上的例子无法运行,python simple question
How to find the best fit dimension of Polynomial interpolation/curve fitting ?python debug tool?
请教 一个matlab画图的问题那位大侠介绍一下python的webcrawler吧
问一个python的string split问题啥脚本可以进行网页操作?
[合集] 我也花了一小时读了一下python为什么我认为 Python 3 没有前途?(zz)
现在哪些script最流行?python download pdf
什么风格是pythonic?Re: USER_AGENT: python-requests/2.18.4
相关话题的讨论汇总
话题: python话题: when话题: do话题: range
进入Programming版参与讨论
1 (共1页)
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:
1 (共1页)
进入Programming版参与讨论
相关主题
Re: USER_AGENT: python-requests/2.18.4问一个python的string split问题
我最近写的一个屏保程序[合集] 我也花了一小时读了一下python
function declaration现在哪些script最流行?
a question什么风格是pythonic?
单开主题:为何痛恨python球python大牛给指导一下:写python最大的难点是什么?最重要的品质是什么?
最新官网上下载的tutorial上的例子无法运行,python simple question
How to find the best fit dimension of Polynomial interpolation/curve fitting ?python debug tool?
请教 一个matlab画图的问题那位大侠介绍一下python的webcrawler吧
相关话题的讨论汇总
话题: python话题: when话题: do话题: range