Professional Documents
Culture Documents
M. Sami Fadali
Professor EE
University of Nevada
Derivation of DKF
Process and measurement models
state vector at
state-transition matrix at
measurement vector at
n measurement matrix at
Notation
Noise
=
^ = estimate
= perturbation.
a priori estimate of
(before the
measurement at ).
a posteriori estimate of
(after
the measurement at ).
Measurement Noise
Measurement noise
A posteriori estimate
Error
,
,
Derivation of DKF
Error: recall
Choose gain
(blending factor) to minimize
mean square error.
A priori error
A posteriori error
10
11
12
Minimization
Derivative of Trace
For any scalar
Use
13
14
Joseph Form
Joseph form
16
Derivation (Cont.)
Derived earlier
Common factor
17
18
DKF Loop
A Priori Estimate
Measurements
z 0 , z 1 ,
K k Pk H kT H k Pk H kT Rk
Project Ahead:
x k 1 k x k
Pk 1 k Pk kT Q k
Pk I K k H k Pk
19
State Estimates
, x 1 ,
20
Example: Discretization
Scalar example.
Discretize the CT system.
St. dev. of measurement error
Unity Gaussian
White Noise u(t)
v(t)
1
s
x(t)
z(t)
x(0)=0
21
Kalman Loop: k = 0
22
Kalman Loop: k = 1
Update estimate
Update estimate
Update error
Update error
Project ahead
Project ahead
23
24
% Across Measurements:
K=P*H/(H*P*H+R);
xhatp=xhat+K*(z-H*xhat);
P=(eye(n)-K*H)*P;
P=(P+P)/2;
% Between Measurements:
xhat=phi*xhat;
P=phi*P*phi+Q;
Unity Gaussian
white noise
2 2
s
X(s)=Y(s)
25
Example: Discretization
26
Initial Conditions
27
28
Simulation Results
Substitute for P +
Lyapunov Equation:
29
30
Riccati Equation
Proof by induction.
31
32
33
Deterministic Inputs
34
Real-time Implementation
,
35
Round-off Errors
Conclusion
39
38