scipy.interpolate.
interp2d#
- class scipy.interpolate.interp2d(x, y, z, kind='linear', copy=True, bounds_error=False, fill_value=None)[source]#
2D 插值类(已弃用并移除)
自 1.14.0 版本起移除:
interp2d
已在 SciPy 1.14.0 中移除。对于旧版代码,几乎与旧版本完全兼容的替代品是用于规则网格的
RectBivariateSpline
,以及用于散乱 2D 数据的bisplrep
/bisplev
。在新代码中,对于规则网格,请改用
RegularGridInterpolator
。对于散乱数据,建议使用LinearNDInterpolator
或CloughTocher2DInterpolator
。有关更多详细信息,请参阅 interp2d 转换指南。