scipy.interpolate.
interp2d#
- class scipy.interpolate.interp2d(x, y, z, kind='linear', copy=True, bounds_error=False, fill_value=None)[源代码][源代码]#
Removed in version 1.14.0:
interp2d在 SciPy 1.14.0 中已被移除。对于遗留代码,几乎逐个错误兼容的替代方案是规则网格上的
RectBivariateSpline,以及用于散布2D数据的bisplrep/bisplev。在新代码中,对于规则网格使用
RegularGridInterpolator代替。对于分散数据,优先使用LinearNDInterpolator或CloughTocher2DInterpolator。更多详情请参见 插值过渡指南。