Show
Ignore:
Timestamp:
05/21/10 13:31:06 (14 years ago)
Author:
smidl
Message:

New mexes + corrected tutorial

Location:
applications/bdmtoolbox/tutorial/userguide
Files:
6 modified

Legend:

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

    r964 r968  
    1111A1.class = 'ARX'; 
    1212A1.yrv = y; 
     13A1.rv = RV({'theta','r'},[3,1]); 
    1314A1.rgr = RVtimes([y,u],[-3,-1]) ; % correct structure is {y,y} 
    1415A1.log_level = 'logbounds,logevidence'; 
  • applications/bdmtoolbox/tutorial/userguide/arx_ctrl_example.m

    r934 r968  
    1818% create ARX estimator 
    1919A1.class = 'ARX'; 
    20 A1.rv = y; 
     20A1.yrv = y; 
    2121A1.rgr = RVtimes([y,u1,u2],[-3,0,0]) ; % correct structure is {y,y} 
    2222A1.log_level ='logbounds,logevidence'; 
  • applications/bdmtoolbox/tutorial/userguide/arx_windsurfer_example.m

    r934 r968  
    1717% create ARX estimator 
    1818A1.class = 'ARX'; 
    19 A1.rv = y; 
     19A1.yrv = y; 
    2020A1.rgr = RVtimes([y,u],[-3,-1]) ; % correct structure is {y,y} 
    2121A1.log_level ='logbounds,logevidence'; 
  • applications/bdmtoolbox/tutorial/userguide/dist_ctrl_example.m

    r934 r968  
    1818% create ARX estimator 
    1919A1.class = 'ARX'; 
    20 A1.rv = y; 
     20A1.rv = RV({'theta','r'},[3,1]); 
     21A1.yrv = y; 
    2122A1.rgr = RVtimes([y,u1],[-3,0]) ; % correct structure is {y,y} 
    22 A1.log_level ='logbounds,logevidence'; 
     23A1.log_level ='logbounds,logevidence,logmean'; 
    2324A1.frg = 0.95; 
    2425 
     
    5354hold off 
    5455subplot(1,2,1); 
    55 plot(M.DS_y); 
     56plot(M.DS_dt_y); 
    5657subplot(1,2,2); 
    57 plot(M.DS_u1); hold on; 
    58 plot(M.DS_u2);  
     58plot(M.DS_dt_u1); hold on; 
     59plot(M.DS_dt_u2);  
    5960 
    6061figure(2); 
  • applications/bdmtoolbox/tutorial/userguide/laplace_example.m

    r944 r968  
    1919%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    2020% plot results 
    21 plot(M.L_mean) 
     21plot(M.Est0_apost_mean_) 
  • applications/bdmtoolbox/tutorial/userguide/pdfds_example.m

    r944 r968  
    11clear all 
    22% name random variables 
    3 x = RV({'x'},2); 
     3y = RV({'y'},1); 
     4u = RV({'u'},1); 
    45 
     6% create f(y_t| y_{t-3}, u_{t-1}) 
     7fy.class = 'mlnorm<ldmat>'; 
     8fy.rv    = y; 
     9fy.rvc   = RVtimes([y,u], [-3, -1]); 
     10fy.A     = [0.5, -0.9]; 
     11fy.const = 0; 
     12fy.R     = 1e-2; 
    513 
    6 fx.class  = 'mgnorm<ldmat>';              
    7 fx.rv     = x;              
    8 fx.rvc    = RVtimes(x,-1);              
    9 fx.g      = 'mexFunction';              % function is evaluated in matlab 
    10 fx.g.function = 'test_function';         % name of the matlab function to evaluate 
    11 fx.g.dim  = 2;                          % expected dimension of output 
    12 fx.g.dimc = 2;                          % expected dimension of input 
    13 fx.R      = eye(2);                     % variance R 
    14  
     14% create f(u_t| ) 
     15fu.class = 'enorm<ldmat>'; 
     16fu.rv    = u; 
     17fu.mu    = 0; 
     18fu.R     = 1e-1; 
    1519 
    1620% create DS 
    1721DS.class = 'PdfDS'; 
    1822DS.pdf.class  = 'mprod'; 
    19 DS.pdf.pdfs  = {fx, fu}; 
    20 DS.init_rv = RVtimes([x], [-1]); 
    21 DS.init_values = [0.1, 0.2]; 
     23DS.pdf.pdfs  = {fy, fu}; 
     24DS.init_rv = RVtimes([y,y,y], [-1,-2,-3]); 
     25DS.init_values = [0.1, 0.2, 0.3]; 
    2226 
    2327experiment.ndat=100;