Changeset 744 for applications/bdmtoolbox/tutorial
- Timestamp:
- 11/28/09 14:38:48 (15 years ago)
- Location:
- applications/bdmtoolbox/tutorial
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/tutorial/merging/merge_frag.m
r706 r744 16 16 Merger.ncoms=20; 17 17 Merger.stop_niter=50; 18 Merger.effss_coef= 1;18 Merger.effss_coef=0.9; 19 19 %Merger.dbg_file='merger_mix_dbg'; 20 20 … … 32 32 'R',1); 33 33 % 2D support 34 support2.grid={[-5,5],[0.001,9]}; 35 support2.nbins=[30,30]; 34 support2.class='rectangular_support'; 35 support2.ranges={[-5,5],[0.001,9]}; 36 support2.gridsizes=[30,30]; 36 37 37 38 % 2D -
applications/bdmtoolbox/tutorial/userguide/arx_ctrl_example.m
r724 r744 1 1 % name random variables 2 2 y = RV({'y'},1); 3 u = RV({'u'},1); 3 u1 = RV({'u1'},1); 4 u2 = RV({'u2'},1); 4 5 5 6 % create f(y_t| y_{t-3}, u_{t-1}) 6 7 fy.class = 'mlnorm<ldmat>'; 7 8 fy.rv = y; 8 fy.rvc = RVtimes([y,u ], [-3, -1]);9 fy.A = [0.5, -0.9 ];9 fy.rvc = RVtimes([y,u1,u2], [-3, 0, 0]); 10 fy.A = [0.5, -0.9, 0.9]; 10 11 fy.const = 0; 11 12 fy.R = 1e-2; … … 17 18 A1.class = 'ARX'; 18 19 A1.rv = y; 19 A1.rgr = RVtimes([y,u ],[-3,-1]) ; % correct structure is {y,y}20 A1.rgr = RVtimes([y,u1,u2],[-3,0,0]) ; % correct structure is {y,y} 20 21 A1.options ='logbounds,logll'; 21 22 22 23 C1.class = 'LQG_ARX'; 23 24 C1.ARX = A1; 24 C1.Qu = 0.1*eye( 1);25 C1.Qu = 0.1*eye(2); 25 26 C1.Qy = eye(1); 26 27 C1.yreq = 1; 27 28 C1.horizon = 100; 28 29 30 % participant 1 31 Cp1. 32 29 33 M= controlloop(DS,{C1});