Show
Ignore:
Timestamp:
05/11/10 16:25:24 (14 years ago)
Author:
smidl
Message:

bdmtoolbox updated for new loggers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/tutorial/userguide/dist_estim_example.m

    r871 r933  
    2727A1.rv = y; 
    2828A1.rgr = RVtimes([y,u1],[-3,0]) ; % correct structure is {y,y} 
    29 A1.options ='logbounds,logevidence'; 
     29A1.log_level ='logbounds,logevidence'; 
    3030A1.frg = 0.95; 
    3131A1.constant = 0; 
     
    3838%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    3939% plot results 
    40 ndat = size(M.DS_u1,1); 
     40ndat = size(M.DS_dt_u1,1); 
    4141 
    4242true_theta1 = fy.A([1,2]); 
     
    4646figure(1); 
    4747subplot(2,1,1); 
    48 plot(M.DS_y); 
     48plot(M.DS_dt_y); 
    4949title('Output'); 
    5050 
    5151subplot(2,1,2); 
    52 plot(M.DS_u1); 
     52plot(M.DS_dt_u1); 
    5353hold on 
    54 plot(M.DS_u2); 
     54plot(M.DS_dt_u2); 
    5555title('Input'); 
    5656 
     
    6262plotestimates(true_theta1, ... 
    6363    M.Est0_apost_mean_theta, ... 
    64     M.Est0_apost_lb_theta, ... 
    65     M.Est0_apost_ub_theta); 
     64    M.Est0_apost_lbound_theta, ... 
     65    M.Est0_apost_ubound_theta); 
    6666set(gca,'YLim',[-1.5,1]); 
    6767 
     
    7070plotestimates(true_R, ... 
    7171    M.Est0_apost_mean_r, ... 
    72     M.Est0_apost_lb_r, ... 
    73     M.Est0_apost_ub_r); 
     72    M.Est0_apost_lbound_r, ... 
     73    M.Est0_apost_ubound_r); 
    7474 
    7575title('Variance parameters r') 
     
    7979plotestimates(true_theta2, ... 
    8080    M.Est1_apost_mean_theta, ... 
    81     M.Est1_apost_lb_theta, ... 
    82     M.Est1_apost_ub_theta); 
     81    M.Est1_apost_lbound_theta, ... 
     82    M.Est1_apost_ubound_theta); 
    8383set(gca,'YLim',[-1.5,1]); 
    8484 
     
    8787plotestimates(true_R, ... 
    8888    M.Est1_apost_mean_r, ... 
    89     M.Est1_apost_lb_r, ... 
    90     M.Est1_apost_ub_r); 
     89    M.Est1_apost_lbound_r, ... 
     90    M.Est1_apost_ubound_r); 
    9191 
    9292title('Variance parameters r')