root/matlab/merger_iter_debug.m @ 184

Revision 184, 1.3 kB (checked in by smidl, 16 years ago)

Matlab files for testing

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