1 | function los=vyst(system,apriori,N)
|
---|
2 | los=zeros(3,3);
|
---|
3 | a=2;
|
---|
4 |
|
---|
5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
6 | apriori.P0=1;
|
---|
7 | apriori.b0=0;
|
---|
8 | los(:,1)=mc_study(system,apriori,N);
|
---|
9 |
|
---|
10 | apriori.b0=1;
|
---|
11 | los(:,2)=mc_study(system,apriori,N);
|
---|
12 |
|
---|
13 | apriori.b0=10;
|
---|
14 | los(:,3)=mc_study(system,apriori,N);
|
---|
15 | los=los./(ones(3,1)*los(3,:));
|
---|
16 | pom(:,:)=los(1:2,:);
|
---|
17 |
|
---|
18 | figure
|
---|
19 | subplot(1,2,1)
|
---|
20 | bar(pom,'grouped'); hold on
|
---|
21 | colormap summer;
|
---|
22 | set(gca,'ylim',[0 a]);
|
---|
23 | plot(0:3,0*(1:4)+1,'r--');
|
---|
24 |
|
---|
25 | title('\fontsize{18} P_0 = 1')
|
---|
26 | set(gca,'xtick',[]);
|
---|
27 | text(0.9,-0.05,'\fontsize{18} CC')
|
---|
28 | text(1.8,-0.05,'\fontsize{18} SIDPS')
|
---|
29 | set( get(gcf, 'Children'), 'FontSize', 18);
|
---|
30 |
|
---|
31 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
---|
32 | apriori.P0=10;
|
---|
33 | apriori.b0=0;
|
---|
34 | los(:,1)=mc_study(system,apriori,N);
|
---|
35 |
|
---|
36 | apriori.b0=1;
|
---|
37 | los(:,2)=mc_study(system,apriori,N);
|
---|
38 |
|
---|
39 | apriori.b0=10;
|
---|
40 | los(:,3)=mc_study(system,apriori,N);
|
---|
41 |
|
---|
42 | los=los./(ones(3,1)*los(3,:));
|
---|
43 | pom(:,:)=los(1:2,:);
|
---|
44 |
|
---|
45 | subplot(1,2,2)
|
---|
46 | bar(pom,'grouped'); hold on
|
---|
47 | colormap summer ;
|
---|
48 | set(gca,'ylim',[0 a]);
|
---|
49 |
|
---|
50 | title('\fontsize{18} P_0 = 10')
|
---|
51 | legend('{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 0','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 1','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 10')
|
---|
52 | set(gca,'xtick',[]);
|
---|
53 | plot(0:3,0*(1:4)+1,'r--');
|
---|
54 |
|
---|
55 | text(0.9,-0.05,'\fontsize{18} CC')
|
---|
56 | text(1.8,-0.05,'\fontsize{18} SIDPS')
|
---|
57 | set( get(gcf, 'Children'), 'FontSize', 18);
|
---|
58 |
|
---|
59 |
|
---|
60 | end |
---|