Skip to main content
. 2017 Sep 19;17(9):2147. doi: 10.3390/s17092147
Algorithm 1: Extended Kalman Filter
Given the initial state x0 and initial covariance matrix P0, update the state estimation as follows
Compute the predicted state: x^k|k−1=f(xk−1,wk−1)
Compute the process model Jacobian matrix : Fk−1=∂f∂x|xk−1 Gk−1=∂f∂w|xk−1
Compute the predicted covariance matrix : Pk|k−1=Fk−1Pk−1Fk−1T+Gk−1Qk−1Gk−1T
Compute the Kalam gain: Kk=Pk|k−1HT(HPk|k−1HT+Rk)−1
Update the state estimation: xk=x^k|k−1+Kk(zk−h(x^k|k−1))
Update the covariance matrix: Pk=Pk|k−1−KkHPk|k−1