29.12.2013 Views

[Sample B: Approval/Signature Sheet] - George Mason University

[Sample B: Approval/Signature Sheet] - George Mason University

[Sample B: Approval/Signature Sheet] - George Mason University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

data = results.error(b+1,:)<br />

stars = [nstars_1 nstars_2]<br />

fprintf(savefile, '%12.6e\t', data);<br />

fprintf(savefile, '\r Number of stars: Sensor 1: %6.0f\t, Sensor 2: %6.0f\n', stars);<br />

fprintf(savefile, 'MSE: \t');<br />

fprintf(savefile, '%12.6e\t', MSE(kk,:));<br />

fprintf(savefile, 'RMS: \t');<br />

fprintf(savefile, '%12.6e\t', RMS(kk,:));<br />

fprintf(savefile, 'Mean Error: \t');<br />

fprintf(savefile, '%12.6e\t', Mean_error(kk,:));<br />

if b == 3<br />

figure(6);<br />

hold on;<br />

p64 = plot(kstart:10:kend, error(kk, b).state_est_timeave(1:10:kend-kstart+1), lk);<br />

title('Mean Error of target with EKF bias correction');<br />

xlabel('Time (seconds)');<br />

ylabel('Mean Error Km');<br />

axis([0 1800 0 1]);<br />

end<br />

end<br />

end<br />

% end bias<br />

% end kk<br />

% ------------------------------ Calculate and plot PCRLB -----------------------<br />

tcrb = 600;<br />

Qn = [1/3 1/2 0 0 0 0;<br />

1/2 1 0 0 0 0;<br />

0 0 1/3 1/2 0 0;<br />

0 0 1/2 1 0 0;<br />

0 0 0 0 1/3 1/2;<br />

0 0 0 0 1/2 1];<br />

Qcrb = process_error*Qn/1000;<br />

for t = 1:tcrb<br />

Jz_1 = PCRLB(target.posit(:,t), Sat(1).posit(:,t), oNoise);<br />

Jz_2 = PCRLB(target.posit(:,t), Sat(2).posit(:,t), oNoise);<br />

if t == 1<br />

J(:,:,t) = eye(6);<br />

else<br />

J(:,:,t) = inv(Qcrb+ A*inv(J(:,:,t-1))*A') + .5*Jz_1 + .5*Jz_2;<br />

end % if t==0<br />

CRLB(:,:,t) = inv(J(:,:,t));<br />

CRLBave(t) = CRLB(1,1,t)^2 + CRLB(3,3,t)^2 + CRLB(5,5,t)^2;<br />

end % end t 1-50<br />

figure(8)<br />

170

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!