Implementing one-dimensional kalman filter.