predictstates.m
来自「很不错的粒子滤波器入门程序」· M 代码 · 共 17 行
M
17 行
function xu = predictstates(x,t,Q);% PURPOSE : Performs the prediction step of the sequential SIR algorithm for % : the model described in the file sirdemo1.m.% INPUTS : - x = The state samples.% - t = The current time step.% - Q = The variance of the process noise.% OUTPUTS : - xu = The state samples after the prediction step.% AUTHOR : Nando de Freitas - Thanks for the acknowledgement :-)% DATE : 08-09-98if nargin < 3, error('Not enough input arguments.'); endw = sqrt(Q)*randn(size(x));xu = 0.5.*x + 25.*x./(1+x.^(2)) + 8*cos(1.2*(t)).*ones(size(x)) + w;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?