如何使用插值法计算基于角度的力
我正在尝试制作一个 python 脚本,它将根据测量的角度输出力。输入是时间、曲线和角度,但我在使用插值将力拟合到曲线时遇到困难。我查看了 scipy.interpolate,但我不确定它会对我有帮助,因为这些点间隔不均匀。
I am trying to make a python script that will output a force based on a measured angle. The inputs are time, the curve and the angle, but I am having trouble using interpolation to fit the force to the curve. I looked at scipy.interpolate, but I'm not sure it will help me because the points aren't evenly spaced.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
numpy.interp
不要求你的点均匀分布。我不确定你的意思是“输入是时间、曲线和角度”,你有三个自变量,如果是这样,你将不得不对其进行相当多的调整......但是对于单变量问题,< code>interp 是要走的路。numpy.interp
does not require your points to be evenly distributed. I'm not certain if you mean by "The inputs are time, the curve and the angle" that you have three independent variables, if so you will have to adapt it quite a bit... But for one-variable problems,interp
is the way to go.