-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkf_analysis.m
More file actions
49 lines (31 loc) · 1.15 KB
/
kf_analysis.m
File metadata and controls
49 lines (31 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
function kf_analysis (nav_e)
% Ali Mohammadi_INS/GNSS
% kf_analysis: evaluates Kalman filter performance.
%
% INPUT
% nav, INS/GNSS dataset.
%% A POSTERIORI STATE ANALYSIS
variable = { 'roll', 'pitch', 'yaw', 'vel N', 'vel E', 'vel D', 'latitude', 'longitude', 'altitude' };
for i=1:9
[pd, ha] = normality_test ( nav_e.xp (:, i) );
figure(i)
plot_histogram (nav_e.xp (:, i), pd)
if ~( ha )
fprintf('kf_analysis: state vector for %s comes from a normal distribution.\n', variable{i});
else
fprintf('kf_analysis: %s analysis does not come from a normal distribution.\n', variable{i});
end
end
%% INNOVATION ANALYSIS
variable = { 'vel N', 'vel E', 'vel D', 'latitude', 'longitude', 'altitude' };
for i=1:6
[pd, ha] = normality_test ( nav_e.v (:, i) );
figure(i+9)
plot_histogram (nav_e.v (:, i), pd)
if ~( ha )
fprintf('kf_analysis: innovations for %s comes from a normal distribution.\n', variable{i});
else
fprintf('kf_analysis: innovations for %s does not come from a normal distribution.\n', variable{i});
end
end
end