Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Manual for the Matlab toolbox EKFUKF.pdf
Скачиваний:
84
Добавлен:
10.02.2015
Размер:
1.54 Mб
Скачать

CHAPTER 3. NONLINEAR STATE SPACE ESTIMATION

3.4Gauss-Hermite Kalman Filter

3.4.1 Gauss-Hermite Cubature Transformation

To unify many of the filter variants, handling the non-linearities may be brought together to a common formulation. In Gaussian optimal filtering — also called assumed density filtering — the filtering equations follow the assumption that the filtering distributions are indeed Gaussian (Maybeck, 1982; Ito and Xiong, 2000).

Using this setting the linear Kalman filter equations can now be adapted to the non-linear state-space model. Desired moments (at least mean and covariance) of the original distribution of x can be captured exactly by calculating the integrals

Z

U = f(x) N(x j m; P)dx

Z

(3.64)

SU = (f(x) U ) (f(x) U ) T N(x j m; P)dx:

These integrals can be evaluated with practically any analytical or numerical integration method. The Gauss–Hermite quadrature rule is a one-dimensional weighted sum approximation method for solving special integrals of the previous form in a Gaussian kernel with an infinite domain. More specifically the Gauss– Hermite quadrature can be applied to integrals of form

 

m

(3.65)

Z 1 f(x) exp( x2)dx i=1 wi f(xi);

1

X

 

where xi are the sample points and wi the associated weights to use for the approximation. The sample points xi; i = 1; : : : ; m; are roots of special orthogonal polynomials, namely the Hermite polynomials. The Hermite polynomial of degree p is denoted with Hp(x) (see Abramowitz and Stegun, 1964, for details). The weights wi are given by

 

2p 1p!p

 

 

 

 

wi =

 

:

(3.66)

p2

[Hp 1(xi)]2

 

 

 

The univariate integral approximation needs to be extended to be able to suit the multivariate case. As Wu et al. (2006) argue, the most natural approach to grasp a multiple integral is to treat it as a sequence of nested univariate integrals and then use a univariate quadrature rule repeatedly. To extend this one-dimensional integration method to multi-dimensional integrals of form

m

(3.67)

ZRn f(x) exp( xTx)dx i=1 wi f(xi);

X

 

we first simply form the one-dimensional quadrature rule with respect to the first dimension, then with respect to the second dimension and so on (Cools, 1997). We get the multidimensional Gauss–Hermite cubature rule by writing

35

2p 1p!

CHAPTER 3. NONLINEAR STATE SPACE ESTIMATION

i1

wi1

Z

f(x1i1 ; x2; : : : ; xn) exp( x22 x32

: : : xn2 )dx2 : : : dxn

X

 

 

 

 

Z

 

 

= i1

;i2 wi1 wi2

f(x1i1 ; x2i2 ; : : : ; xn) exp( x32 : : : xn2 )dx3 : : : dxn

X

 

 

 

 

 

 

 

i1

;iX2

n

 

 

 

 

=

 

 

 

wi1 wi2 win f(x1i1 ; x2i2 ; : : : ; xnin);

 

;:::;i

which is basically what we wanted in Equation (3.67). This gives us the product rule that simply extends the one-dimensional quadrature point set of p points in one dimension to a lattice of pn cubature points in n dimensions. The weights for these Gauss–Hermite cubature points are calculated by the product of the corresponding one-dimensional weights. p p

Finally, by making a change of variable x = 2 + we get the Gauss– Hermite weighted sum approximation for a multivariate Gaussian integral, where

is the mean and is the covariance of the Gaussian. The square root of the

p

 

 

 

 

 

 

 

p

 

p

 

T

 

 

 

 

 

 

 

covariance matrix, denoted

, is a matrix such that = .

ZRn f(x) N(x j ; )dx i1;i2;:::;in wi1;i2;:::;in f

 

p i1;i2;:::;in

+ ; (3.68)

 

 

X

 

 

 

 

 

 

 

where the weight wi1;i2;:::;in

=

1

wi1 wi2 win is given by using the one-

n=2

dimensional weights, and the points are given by the Cartesian product i1;i2;:::;in = p

2 (xi1 ; xi2 ; : : : ; xin), where xi is the ith one-dimensional quadrature point.

The extension of the Gauss–Hermite quadrature rule to an n-dimensional cubature rule by using the product rule lattice approach yields a rather good numerical

integration method that is exact for monomials

n

ki

with ki 2p 1 (Wu

i=1 xi

Q

et al., 2006). However, the number of cubature points grows exponentially as the number of dimensions increases. Due to this flaw the rule is not practical in applications with many dimensions. This problem is called the curse of dimensionality.

3.4.2 Gauss-Hermite Kalman Filter

The Gauss–Hermite Kalman filter (GHKF) algorithm of degree p is presented below. At time k = 1; : : : ; T assume the posterior density function p(xk 1 j yk 1) =

N(mk 1jk 1; Pk 1jk 1) is known.

Prediction step:

1.Find the roots xi; i = 1; : : : ; p, of the Hermite polynomial Hp(x).

2.Calculate the corresponding weights

wi = p2[Hp 1(xi)]2 :

36

CHAPTER 3. NONLINEAR STATE SPACE ESTIMATION

3.Use the product rule to expand the points to a n-dimensional lattice of pn points i; i = 1; : : : ; pn; with corresponding weights.

4.Propagate the cubature points. The matrix square root is the lower triangular cholesky factor.

q

Xi;k 1jk 1 = 2Pk 1jk 1 i + mk 1jk 1

5. Evaluate the cubature points with the dynamic model function

Xi;k

jk 1 = f(Xi;k 1jk 1):

 

6. Estimate the predicted state mean

 

 

 

 

 

pn

 

 

 

 

 

Xi

 

jk 1:

 

mkjk 1 = wiXi;k

 

 

 

=1

 

 

 

7. Estimate the predicted error covariance

 

 

 

pn

 

 

 

 

 

Xi

jk 1Xi;kTjk 1

mkjk 1mkjk 1T + Qk 1

 

Pkjk 1 = wiXi;k

:

=1

 

 

 

 

 

Update step:

1.Repeat steps 1–3 from earlier to get the pn cubature points and their weights.

2.Propagate the cubature points.

q

Xi;kjk 1 = 2Pkjk 1 i + mkjk 1

3.Evaluate the cubature points with the help of the measurement model function

Yi;kjk 1 = h(Xi;kjk 1):

4. Estimate the predicted measurement

pn

Xi

 

y^kjk 1 = wiYi;kjk 1

:

=1

 

5. Estimate the innovation covariance matrix

pn

X

Skjk 1 = wiYi;kjk 1Yi;kjk 1T y^kjk 1y^kjk 1T + Rk: i=1

37

2p 1p!

CHAPTER 3. NONLINEAR STATE SPACE ESTIMATION

6. Estimate the cross-covariance matrix

pn

X

Pxy;kjk 1 = wiXi;k 1jk 1Yi;kjk 1T mkjk 1y^kjk 1T: i=1

7. Calculate the Kalman gain term and the smoothed state mean and covariance

Kk = Pxy;kjk 1S j1

k k 1

mkjk = mkjk 1 + Kk(yk y^kjk 1)

Pkjk = Pkjk 1 KkPyy;kjk 1KkT:

3.4.3 Gauss-Hermite Kalman Smoother

The Gauss–Hermite Rauch–Tung–Striebel smoother (GHRTS) algorithm (Särkkä and Hartikainen, 2010) of degree p is presented below. Assume the filtering result mean mkjk and covariance Pkjk are known together with the smoothing result

p(xk+1 j y1:T ) = N(mk+1jT ; Pk+1jT ).

1.Find the roots xi; i = 1; : : : ; p, of the Hermite polynomial Hp(x).

2.Calculate the corresponding weights

wi = p2[Hp 1(xi)]2 :

3.Use the product rule to expand the points to a n-dimensional lattice of pn points i; i = 1; : : : ; pn; with corresponding weights.

4.Propagate the cubature points

q

Xi;kjk = 2Pkjk i + mkjk:

5. Evaluate the cubature points with the dynamic model function

Xi;k+1jk = f(Xi;kjk):

6. Estimate the predicted state mean

pn

 

Xi

 

+1jk:

mk+1jk = wiXi;k

 

=1

 

 

7. Estimate the predicted error covariance

 

 

pn

 

 

 

Xi

+1jkXi;kT+1jk

mk+1jkmk+1jkT + Qk:

Pk+1jk = wiXi;k

=1

 

 

 

38

CHAPTER 3. NONLINEAR STATE SPACE ESTIMATION

8. Estimate the cross-covariance matrix

 

 

 

 

 

Dk;k+1 =

1

2n

Xi;kjk mkjk

Xi;k

+1jk

mk+1jk

 

T:

2n

Xi

 

 

 

 

 

 

 

 

 

 

 

=1

 

 

 

 

 

 

9. Calculate the gain term and the smoothed state mean and covariance

Ck = Dk;k+1Pk+11 jk mkjT = mkjk + Ck(mk+1jT

PkjT = Pkjk + Ck(Pk+1jT

mk+1jk)

Pk+1jk)CkT:

39

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]