Jav*_*ier 5 python numpy matplotlib scipy
我有一个相当大的加速样本列表(大约 300k),我用 matplotlib 绘制了它们。我的目标是绘制速度并获得其最大值。
有没有办法整合加速度列表以获得速度列表?
所以。这就是我假设采样率为 10 Hz 时的工作方式。
acceleration = [1, 2, 3, 4, 5, 6, 7, 8, 9]
velocity = [0]
time = 0.1
for acc in acceleration:
velocity.append(velocity[-1] + acc * time)
del velocity[0]
Run Code Online (Sandbox Code Playgroud)