Home > .. > Matlab_Uncertain_Frames_sz > check_simulated_motion_s.m

check_simulated_motion_s

PURPOSE ^

% check whether Ms has mean M0 and CovM C0

SYNOPSIS ^

function check_simulated_motion_s(M0,C0,Ms,S)

DESCRIPTION ^

%  check whether Ms has mean M0 and CovM C0
   exponential representation

 M0    [3x3] mean motion s
 C0    [6x6] theoretical CovM if s
 Ms    [16xN] sample of motions s
 S     significance level

 wf 6/2020

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function check_simulated_motion_s(M0,C0,Ms,S)
0002 %%  check whether Ms has mean M0 and CovM C0
0003 %   exponential representation
0004 %
0005 % M0    [3x3] mean motion s
0006 % C0    [6x6] theoretical CovM if s
0007 % Ms    [16xN] sample of motions s
0008 % S     significance level
0009 %
0010 % wf 6/2020
0011 
0012 % number of samples
0013 N = size(Ms,2);
0014 
0015 % analyse data
0016 s_s=zeros(N,6);
0017 for n=1:N
0018     s_s(n,:)= calc_s_from_A(reshape(Ms(:,n),4,4)*inv(M0));
0019 end
0020 
0021 % check mean and CovM
0022 check_estimation_result(6, zeros(6,1), C0, ones(N,1), s_s, S, ' motions s');
0023 
0024 end
0025

Generated on Wed 10-Jun-2020 19:54:31 by m2html © 2005