scipy: Interpolating trajectory

混江龙づ霸主 提交于 2019-12-03 06:13:29

Using splprep you can interpolate over curves of any geometry.

from scipy import interpolate
tck,u=interpolate.splprep([x,y],s=0.0)
x_i,y_i= interpolate.splev(np.linspace(0,1,100),tck)

Which produces a plot like the one given, but only using the x and y points and not the alpha and r paramters.

Sorry about my original answer, I misread the question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!