Stochastic peak tracking and the Kalman filter