Revision 871, 0.7 kB
(checked in by mido, 15 years ago)
|
adaptation of /applications to new version of LOG_LEVEL
also, a cosmetic change made in enumerations: logub -> logubound, loglb -> loglbound
|
-
Property svn:eol-style set to
native
|
Line | |
---|
1 | % load data created by the MpdfDS_example |
---|
2 | load pdfds_results |
---|
3 | |
---|
4 | DS.class = 'MemDS'; |
---|
5 | DS.Data = Data; |
---|
6 | DS.drv = drv; |
---|
7 | |
---|
8 | %%%%%% ARX estimator |
---|
9 | |
---|
10 | A1.class = 'ARX'; |
---|
11 | A1.rv = y; |
---|
12 | A1.rgr = RVtimes([y,u],[-3,-1]) ; % correct structure is {y,y} |
---|
13 | A1.log_level = 'logbounds,logevidence'; |
---|
14 | |
---|
15 | M=estimator(DS,{A1}); |
---|
16 | |
---|
17 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
18 | % plot results |
---|
19 | ndat = size(M.DS_u,1); |
---|
20 | |
---|
21 | subplot(1,2,1); |
---|
22 | hold off |
---|
23 | plotestimates(true_theta, ... |
---|
24 | M.Est0_apost_mean_theta, ... |
---|
25 | M.Est0_apost_lb_theta, ... |
---|
26 | M.Est0_apost_ub_theta); |
---|
27 | set(gca,'YLim',[-1.5,1]); |
---|
28 | |
---|
29 | subplot(1,2,2); |
---|
30 | hold off |
---|
31 | plotestimates(true_R, ... |
---|
32 | M.Est0_apost_mean_r, ... |
---|
33 | M.Est0_apost_lb_r, ... |
---|
34 | M.Est0_apost_ub_r); |
---|
35 | |
---|
36 | title('Variance parameters r') |
---|