root/matlab/merger_iter_debug.m @ 192

Revision 190, 1.2 kB (checked in by smidl, 16 years ago)

adaptation of merger for changes and creation of datalink class

Line 
1itload('../merger_debug.it');
2
3ndat = 1000; % check if true!
4
5XL = [-1 4];
6YL= XL;
7
8figure(1);
9for it=0:20
10    figure(it+1)
11    subplot(2,2,1);
12    si = num2str(it);
13    eval(['contour_2(Smp' si '(1,:),Smp' si '(2,:),exp(Mpdf' si '))']);
14    title('Proposal density ');
15    set(gca,'XLim',XL);
16    set(gca,'YLim',YL);
17       
18    subplot(2,2,2);
19    eval(['contour_2(Smp' si '(1,:),Smp' si '(2,:),exp(lW' si '(1,:)))']);
20    title('First source');
21    set(gca,'XLim',XL);
22    set(gca,'YLim',YL);
23   
24    subplot(2,2,3);
25    eval(['contour_2(Smp' si '(1,:),Smp' si '(2,:),exp(lW' si '(2,:)))']);
26    title('Second source');
27    set(gca,'XLim',XL);
28    set(gca,'YLim',YL);
29   
30   
31    subplot(2,2,4);
32    eval(['contour_2(Smp' si '(1,:),Smp' si '(2,:),w' si ')']);
33    title('Merged density');
34    set(gca,'XLim',XL);
35    set(gca,'YLim',YL);
36   
37end
38
39   
40itload('../merger_iter_test.it');
41XG = reshape(Grid(1,:),Npoints,Npoints);
42YG = reshape(Grid(2,:),Npoints,Npoints);
43
44figure(it+2);
45M1 = reshape(exp(Res1),Npoints,Npoints);
46contour(XG,YG,M1,7);
47
48figure(it+3);
49hold off
50mm = max(max(Res2));
51for i=1:size(Res2,1)
52    M2 = reshape(Res2(i,:),Npoints,Npoints);
53    contour(XG,YG,M2,[0:mm/7:mm]);
54    hold on
55end
Note: See TracBrowser for help on using the browser.