⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calculate_mean.m

📁 基于RBMCDA (Rao-Blackwellized Monte Carlo Data Association)方法的多目标追踪程序
💻 M
字号:
%CALCULATE_MEAN  Calculates the mean of the given target from particles %% Syntax:%   M = calculate_mean(S,T)%% In:%   S - NTxN cell array containing particle structures%   T - Index of target%% Out:%   M - DxNT matrix containing the mean of the target%%% Description:%   Convience function for calculating the mean of the given%   target from particle structures for a single or several time steps.% History:%   06.02.2008  The first official version.%% Copyright (C) 2008 Jouni Hartikainen%% $Id: calculate_mean.m $%% This software is distributed under the GNU General Public % Licence (version 2 or later); please refer to the file % Licence.txt, included with the software, for details.function M = calculate_mean(S,T)% Loop over times tepsM = zeros(size(S{1,1}.M{T},1),size(S,1));for i = 1:size(S,1)    for j = 1:size(S,2)        M(:,i) = M(:,i) + S{i,j}.W*S{i,j}.M{T};    end%         tmp = [S{:}];%        MM1 = [tmp.M]';% %     M = sum([MM1{:}].*repmat(W,size([MM1{:}],1),1),2);end

⌨️ 快捷键说明

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