title: Get distance and velocity from discrete accelerometer data
body: <p>I know there has been a number of questions and answers on this topic, but none of them has helped me to understand how to approach the problem. So my set-up is: I have accelerometer data (clean from the gravity part), and I'd like to calculate from the given sample velocity and distance. The data is discrete, say, <code>dt = 20ms</code>, and <code>acc = [...]</code> is the array with samples.
  I understand that I need to integrate the array to get velocity, but the integration gives me a single values, doesn't it?</p>
  
  <pre><code>velocity = scipy.integrate.simps(acc, dx=dt)
  </code></pre>
  
  <p>How do I use this value to get the distance afterwards?</p>