Changeset 964 for applications/bdmtoolbox
- Timestamp:
- 05/21/10 00:44:04 (14 years ago)
- Location:
- applications/bdmtoolbox/tutorial/userguide
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/tutorial/userguide/arx_basic_example.m
r934 r964 10 10 11 11 A1.class = 'ARX'; 12 A1. rv = y;12 A1.yrv = y; 13 13 A1.rgr = RVtimes([y,u],[-3,-1]) ; % correct structure is {y,y} 14 14 A1.log_level = 'logbounds,logevidence'; -
applications/bdmtoolbox/tutorial/userguide/frg_estim.m
r951 r964 10 10 11 11 A1.class = 'ARXfrg'; 12 A1.rv = y; 12 A1.yrv = y; 13 A1.rv = RV({'theta','r'},[3,1]); 13 14 A1.rgr = RVtimes([y,u],[-3,-1]) ; 14 15 A1.log_level = 'logbounds'; … … 20 21 phi_pdf.class = 'mDirich'; % random walk on coefficient phi 21 22 phi_pdf.rv = RV({'phi','1_phi'}); % 2D random walk - frg is the first element 22 phi_pdf.k = 0.0 1; % width of the random walk23 phi_pdf.k = 0.001; % width of the random walk 23 24 phi_pdf.betac = [0.1 0.1]; % stabilizing elememnt of random walk 24 25 … … 32 33 E.class = 'PF'; 33 34 E.particle = p; % ARX is the analytical part 34 E.res_threshold = 0. 90; % resampling parameter35 E.n = 10 0; % number of particles35 E.res_threshold = 0.0; % resampling parameter 36 E.n = 10; % number of particles 36 37 E.prior.class = 'eDirich'; % prior on non-linear part 37 38 E.prior.beta = [2 1]; % 38 E.log_level = 'logbounds,logweights,logmeans ';39 E.log_level = 'logbounds,logweights,logmeans,logvars'; 39 40 E.name = 'MPF'; 40 41 41 [M,Str]=estimator(DS,{E}); 42 A2=A1; 43 A2.class='ARX'; 44 A2.frg=1.0; 45 A2.name = 'MPFx'; 46 47 [M,Str]=estimator(DS,{E,A2}); 42 48 43 49 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%