kf_update_w_simple.m
来自「用粒子滤波算法进行跟踪的matlab代码。」· M 代码 · 共 18 行
M
18 行
function [x,P,w]= KF_update_w_simple(x,P,v,R,H, logflag)
%function [x,P,w]= KF_update_w_simple(x,P,v,R,H, logflag)
%
% Calculate the Kalman Filter update given the prior state [x,P], the innovation, v, the
% observe uncertainty R, and the (linearised) observation model H. The weight, w, is the
% update normalising constant.
%
% This simple implementation is to check the validity of KF_update_w().
%
% Tim Bailey 2005.
S = H*P*H' + R; % innovation covariance
W = P*H'*inv(S); % Kalman gain
x = x + W*v;
P = P - W*S*W';
w = gauss_likelihood(v,S,logflag);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?