| Algorithm 1 Kalman filtering using the recommended measurement noise variance. |
|
Input: : a numeric sequence of sensor data; : a function for a measurement noise variance recommendation; w: a window size used for computing the measurement noise variance; Output: : a filtered sequence by the Kalman Filter; begin (1) (2) ; // Use the first w entries of S for as it is. (3) while do (4) ; // Determine R by using the w entries. (5) ; // Increase i by w. (6) KalmanFilter; // Adjust the next w entries by applying R to the Kalman filter. (7) end (8) return ; end |