Best way to measure velocity, acceleration and jerk

Click For Summary
SUMMARY

The discussion focuses on measuring velocity, acceleration, and jerk from a one-dimensional path defined by time and position data points. The initial approach involves calculating these metrics using finite differences, specifically through the formulas v=(x2-x1)/(t2-t1) for velocity, a=(v2-v1)/(t2-t1) for acceleration, and j=(a2-a1)/(t2-t1) for jerk. However, participants suggest that employing higher-order finite difference methods can yield more precise results, particularly for non-uniform time intervals. The use of central differences is recommended for improved accuracy in derivative calculations.

PREREQUISITES
  • Understanding of finite difference methods
  • Familiarity with calculus concepts such as derivatives
  • Basic knowledge of programming for implementing calculations
  • Experience with numerical analysis techniques
NEXT STEPS
  • Research central difference methods for derivative approximation
  • Explore numerical analysis libraries in Python, such as NumPy
  • Learn about error analysis in numerical differentiation
  • Investigate spline interpolation for smoother derivative calculations
USEFUL FOR

Data scientists, physicists, and engineers involved in motion analysis, as well as software developers implementing numerical methods for real-time data processing.

Marc
Messages
1
Reaction score
0
Hello,

I have a one-dimensional path associated with timings, similar to:

t0=0, x0=0
t1=0.1, x1=2
t2=0.2, x2=3
etc.

Now I want to measure the velocity, acceleration and jerk at each time position. The first (and easy) way of doing this would be to loop through all points and compute:

v1=(x1-x0)/(t1-t0)
v2=(x2-x1)/(t2-t1)
etc.

then

a1=(v1-v0)/(t1-t0)
a2=(v2-v1)/(t2-t1)
etc.

and finally

j1=(a1-a0)/(t1-t0)
j2=(a2-a1)/(t2-t1)
etc.

But something tells me this is not the most precise way of computing this. Any suggestions?
 
Physics news on Phys.org

Similar threads

  • · Replies 34 ·
2
Replies
34
Views
3K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K