-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats_ikala.m
58 lines (54 loc) · 1.52 KB
/
stats_ikala.m
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
50
51
52
53
54
55
56
57
58
function stats_ikala
% stats: Perform t-tests and report significant results.
%
% Usage: stats_ikala
% Tak-Shing Chan, 20151029
outDirs = {'SPL2016\iKala\real\1.5','SPL2016\iKala\complex\1.5'};
methods = {'rpca','crpca'};
files = importdata('ikala.txt','\n');
% Load GNSDR, NSDR, GSIR, and GSAR
GNSDR = zeros(2,length(methods));
GSDR = GNSDR;
GSIR = GNSDR;
GSAR = GNSDR;
NSDRs = zeros(2,length(methods),length(files));
SIRs = NSDRs;
SARs = NSDRs;
for n = 1:length(methods)
for m = 1:length(files)
load(fullfile(outDirs{n},[files{m} '.mat']));
NSDRs(:,n,m) = NSDR;
SDRs(:,n,m) = SDR;
SIRs(:,n,m) = SIR;
SARs(:,n,m) = SAR;
end
GNSDR(:,n) = mean(NSDRs(:,n,:),3);
GSDR(:,n) = mean(SDRs(:,n,:),3);
GSIR(:,n) = mean(SIRs(:,n,:),3);
GSAR(:,n) = mean(SARs(:,n,:),3);
end
% Report significant results
if ttest(NSDRs(1,2,:),NSDRs(1,1,:),[],'right')
disp('NSDR (E): Complex > Real');
end
if ttest(NSDRs(2,2,:),NSDRs(2,1,:),[],'right')
disp('NSDR (A): Complex > Real');
end
if ttest(SDRs(1,2,:),SDRs(1,1,:),[],'right')
disp('SDR (E): Complex > Real');
end
if ttest(SDRs(2,2,:),SDRs(2,1,:),[],'right')
disp('SDR (A): Complex > Real');
end
if ttest(SIRs(1,2,:),SIRs(1,1,:),[],'right')
disp('SIR (E): Complex > Real');
end
if ttest(SIRs(2,2,:),SIRs(2,1,:),[],'right')
disp('SIR (A): Complex > Real');
end
if ttest(SARs(1,2,:),SARs(1,1,:),[],'right')
disp('SAR (E): Complex > Real');
end
if ttest(SARs(2,2,:),SARs(2,1,:),[],'right')
disp('SAR (A): Complex > Real');
end