scipy.interpolate.

interp2d#

class scipy.interpolate.interp2d(x, y, z, kind='linear', copy=True, bounds_error=False, fill_value=None)[原始碼]#

在版本 1.14.0 中移除:interp2d 已在 SciPy 1.14.0 中移除。

對於舊版程式碼,幾乎可達到除錯級相容的替代方案是在規則網格上使用 RectBivariateSpline,以及針對分散的 2D 資料使用 bisplrep/bisplev

在新的程式碼中,對於規則網格,請改用 RegularGridInterpolator。對於分散的資料,建議使用 LinearNDInterpolatorCloughTocher2DInterpolator

如需更多詳細資訊,請參閱 內插轉換指南