predict_grad.m

来自「该系统主要使用matlab实现了stbc2*1系统的发送和接收」· M 代码 · 共 15 行

M
15
字号
function [xP] = predict_grad(xP,G,rx,lamda)
%This rouine uses the gradient descent algorithm to try to help
%'push' particles to a region of higher probability before the 
%state update equation
global Npart

if nargin == 3, lamda = 0.1; end;
for r = 1:Npart,
    %get better estimate for xP's
    P = xP(:,:,r);
    P = P + 2*lamda*(rx-P*G)*G';  %Gradient of observation equation
    xP(:,:,r) = P;
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?