Instead of just two columns (x and y) in the trace file, treat every column as a function and calculate the first derivative of it without regard for its supposed "meaning". In addition to getting more data from this, it also allows us to calculate the 2nd derivative easily by running the script again on the resulting data. Also convert time in column 1 from microseconds to seconds. |
||
|---|---|---|
| .. | ||
| deriv.awk | ||
| velocity_plot.sh | ||