mode_velocity function

Test for steady, acceleration, or deceleration along trajectories