Apply interpolation (np.interp) to arrays element-wise

后端 未结 0 758
悲哀的现实
悲哀的现实 2021-01-20 17:09

I want to apply linear interpolation for each element of my arrays.

numpy.interp(x, xp, fp)

x = np.array([1, 1.5, 2, 2.5])
xp = np.array([[0, 0, 0, 0],[1.1,          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题