Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python SciPy插值-缺少函数_Python_Scipy_Interpolation - Fatal编程技术网

Python SciPy插值-缺少函数

Python SciPy插值-缺少函数,python,scipy,interpolation,Python,Scipy,Interpolation,我从安装了用于Python2.7的SciPy 0.12.0,但我只有SciPy.interp而不是SciPy.interpolate函数。这不是我想要的,因为interp不提供立方插值。我在谷歌上搜索了一些信息,但到处都有使用scipy.interpolate的例子。我卸载了scipy,并从scipy.org安装了相同的版本,甚至是0.9.0版本-结果相同 我找到了“手动”立方插值的示例,但我更愿意使用scipy.interpolation。如何得到它 问候,, mopsiok导入后是否会出现任

我从安装了用于Python2.7的SciPy 0.12.0,但我只有SciPy.interp而不是SciPy.interpolate函数。这不是我想要的,因为interp不提供立方插值。我在谷歌上搜索了一些信息,但到处都有使用scipy.interpolate的例子。我卸载了scipy,并从scipy.org安装了相同的版本,甚至是0.9.0版本-结果相同

我找到了“手动”立方插值的示例,但我更愿意使用scipy.interpolation。如何得到它

问候,,
mopsiok

导入后是否会出现任何错误,例如:
来自scipy.interpolate import interp1d
,可以将其放在这里吗?实际上它可以工作。很奇怪。。。无论如何,谢谢!
scipy
名称空间包含
numpy
顶级名称,
numpy
具有
interp
功能,因此
scipy.interp
只是
numpy.interp
的别名。要获得完整的SciPy interpolation包,您必须明确导入
SciPy.interpolate
(或
从SciPy.interpolate导入…
,等等)。@WarrenWeckesser您的评论包含了问题的原因,如果能将其作为答案,那就太好了