python - 在 numpy.interp 与 scipy.interpolate.interp1d 之间进行选择(种类为 ='linear' )

标签 python numpy scipy

我正在尝试在 numpy.interpscipy.interpolate.interp1d 之间做出选择(当然是 kind='linear') .我意识到它们有不同的接口(interface),但这对我来说并不重要(我可以围绕任一接口(interface)进行编码)。我想知道是否还有其他我应该注意的差异。谢谢。

最佳答案

Numpy.interp 不处理复数值数据或 ndim>1,而 scipy.interp1d 两者都做。 OTOH,numpy 的插值器是 much faster (并且在最近的 numpy 版本中可能更快)。

关于python - 在 numpy.interp 与 scipy.interpolate.interp1d 之间进行选择(种类为 ='linear' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32290233/

相关文章:

python - PyQt:十六进制的 QLineEdit 输入掩码

python - "IsADirectoryError: [Errno 21] Is a directory: "是一个文件

python - 修改 NumPy 数组的特定行/列

numpy - 查询SVM参数设置

python - 使用 scipy 的 Python 中的多元正态 CDF

python - 如何为Docker容器分配更多内存?

python - Google App Engine 搜索 API 将光标设置在特定位置

c# - 通过Unity引用python脚本

python - Pandas 如何使用 read_fwf 读取填充为 0 的数字?

python - Mac OS X 10.9 上的带有 Python v2.7.6 RC1 的 pandas 的 Segfault 11