国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Kalman filter toolbox for Matlab
 

Kalman filter toolbox for Matlab

Written by Kevin Murphy, 1998.
Last updated: 7 June 2004.

This toolbox supports filtering, smoothing and parameter estimation (using EM) for Linear Dynamical Systems.

Functions

  • kalman_filter
  • kalman_smoother - implements the RTS equations
  • learn_kalman - finds maximum likelihood estimates of the parameters using EM
  • sample_lds - generate random samples
  • AR_to_SS - convert Auto Regressive model of order k to State Space form
  • SS_to_AR
  • learn_AR - finds maximum likelihood estimates of the parameters using least squares

What is a Kalman filter?

For an excellent web site, see . For a brief intro, read on...

A Linear Dynamical System is a partially observed stochastic process with linear dynamics and linear observations, both subject to Gaussian noise. It can be defined as follows, where X(t) is the hidden state at time t, and Y(t) is the observation.

   x(t+1) = F*x(t) + w(t),  w ~ N(0, Q),  x(0) ~ N(X(0), V(0))y(t)   = H*x(t) + v(t),  v ~ N(0, R)

The Kalman filter is an algorithm for performing filtering on this model, i.e., computing P(X(t) | Y(1), ..., Y(t)).
The Rauch-Tung-Striebel (RTS) algorithm performs fixed-interval offline smoothing, i.e., computing P(X(t) | Y(1), ..., Y(T)), for t <= T.

Example of Kalman filtering

Here is a simple example. Consider a particle moving in the plane at constant velocity subject to random perturbations in its trajectory. The new position (x1, x2) is the old position plus the velocity (dx1, dx2) plus noise w.
[ x1(t)  ] =  [1 0 1 0] [ x1(t-1)  ] + [ wx1  ][ x2(t)  ]    [0 1 0 1] [ x2(t-1)  ]   [ wx2  ][ dx1(t) ]    [0 0 1 0] [ dx1(t-1) ]   [ wdx1 ][ dx2(t) ]    [0 0 0 1] [ dx2(t-1) ]   [ wdx2 ]
We assume we only observe the position of the particle.
[ y1(t) ] =  [1 0 0 0] [ x1(t)  ] + [ vx1 ][ y2(t) ]    [0 1 0 0] [ x2(t)  ]   [ vx2 ][ dx1(t) ][ dx2(t) ]
Suppose we start out at position (10,10) moving to the right with velocity (1,0). We sampled a random trajectory of length 15. Below we show the filtered and smoothed trajectories.
The mean squared error of the filtered estimate is 4.9; for the smoothed estimate it is 3.2. Not only is the smoothed estimate better, but we know that it is better, as illustrated by the smaller uncertainty ellipses; this can help in e.g., data association problems. Note how the smoothed ellipses are larger at the ends, because these points have seen less data. Also, note how rapidly the filtered ellipses reach their steady-state (Ricatti) values. (Click here to see the code used to generate this picture, which illustrates how easy it is to use the toolkit.)

What about non-linear and non-Gaussian systems?

For non-linear systems, I highly recommend the ReBEL Matlab package, which implements the extended Kalman filter, the unscented Kalman filter, etc. (See Unscented filtering and nonlinear estimation, S Julier and J Uhlmann, Proc. IEEE, 92(3), 401-422, 2004. Also, a small correction.)

For systems with non-Gaussian noise, I recommend Particle filtering (PF), which is a popular sequential Monte Carlo technique. See also this discussion on pros/cons of particle filters. and the following tutorial: M. Arulampalam, S. Maskell, N. Gordon, T. Clapp, IEEE Transactions on Signal Processing, Volume 50, Number 2, February 2002, pp 174-189 (pdf cached here

The EKF can be used as a proposal distribution for a PF. This method is better than either one alone. The Unscented Particle Filter, by R van der Merwe, A Doucet, JFG de Freitas and E Wan, May 2000. Matlab software for the UPF is also available.

Gatsby reading group on nonlinear dynamical systems

Other packages for Kalman filtering and state-space models

Recommended reading

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
【轉(zhuǎn)載】MATLAB Toolbox 大全(二)
Matlab自定義安裝的工具箱選項(xiàng)
[原創(chuàng)]強(qiáng)大的MATLAB機(jī)器人工具箱Matlab
MATLAB2016b中那些與雷達(dá)技術(shù)相關(guān)的工具箱
Matlab_Robotic_Toolbox_v9.10
使用Matlab的工具箱,學(xué)習(xí)“相控陣?yán)走_(dá)技術(shù)”
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服