Calculate velocity of a time-series vector