-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAthens_exercise4.m
More file actions
33 lines (29 loc) · 871 Bytes
/
Athens_exercise4.m
File metadata and controls
33 lines (29 loc) · 871 Bytes
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
p0 = 0.8;
p1 = 0.2;
gammaOffset = -2;
for i = 3 : -1 : 1
C = [0, i; 2, 0];
[gamma, Pd, Pf, Risk] = Athens_core(p0, p1, C, gammaOffset, 0);
disp(sprintf(repmat('%1.4f\t', 1, 4), gamma, Pd, Pf, Risk));
end
disp(sprintf('\n'));
gammaOffset = -1;
for i = 3 : -1 : 1
C = [0, i; 2, 0];
[gamma, Pd, Pf, Risk] = Athens_core(p0, p1, C, gammaOffset, 0);
disp(sprintf(repmat('%1.4f\t', 1, 4), gamma, Pd, Pf, Risk));
end
disp(sprintf('\n'));
gammaOffset = +1;
for i = 3 : -1 : 1
C = [0, i; 2, 0];
[gamma, Pd, Pf, Risk] = Athens_core(p0, p1, C, gammaOffset, 0);
disp(sprintf(repmat('%1.4f\t', 1, 4), gamma, Pd, Pf, Risk));
end
disp(sprintf('\n'));
gammaOffset = +2;
for i = 3 : -1 : 1
C = [0, i; 2, 0];
[gamma, Pd, Pf, Risk] = Athens_core(p0, p1, C, gammaOffset, 0);
disp(sprintf(repmat('%1.4f\t', 1, 4), gamma, Pd, Pf, Risk));
end