Figure 7.The Kalman filter algorithm involves four steps: gain computation, state estimate update, covariance update, and prediction.