Speed adaptation as Kalman filtering