请参考NumPy文档中的插值方法,其中有示例: 请访问以下链接:http://docs.scipy.org/doc/numpy/reference/generated/numpy.interp.html 此外,通过scipy 还可使用更多的插值方法: 请访问以下链接:http://docs.scipy.org/doc/scipy/reference/interpolate.html
我找不到类似于Matlab的快速interpn函数,所以我自己编写了一个: https://github.com/fejikso/interpolator 它需要数据以网格形式呈现,但坐标不需要等间距。