1 addpath(
'../discrete_discrete');
3 P_cell = {[5,0.5;0.5,3], [1 2 6;2 9 0.5; 6,0.5,0.1]};
6 state_count = size(P,1);
9 X_0 = randn(state_count,1); 10 Q_root = 1*eye(state_count); 12 assert(max(max(abs(P_0_sqrt*P_0_sqrt'-P)))<0.000000001);
14 A = randn(state_count,state_count);
15 f_func = @(x,t) A*x + 0*t;
16 jacobian_func = @(x,t) A + 0.*x + 0*t;
22 [estimate, covariance_sqrt] =
ddekf_update_phase(R_root,P_root,C,estimate,measurement);
27 assert(max(max(abs(covariance_sqrt*(covariance_sqrt')-p)))<0.000000001);
function ddekf_update_phase(in R_root, in P_root, in C, in estimate, in measurement)