Changeset 630 for applications/bdmtoolbox
- Timestamp:
- 09/18/09 00:17:14 (15 years ago)
- Location:
- applications/bdmtoolbox/tutorial
- Files:
-
- 3 added
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/tutorial/estimation/arx_test.m
r586 r630 32 32 33 33 A1.class = 'ARX'; 34 A1. y= y;34 A1.rv = y; 35 35 A1.rgr = rgr; 36 36 A1.options ='logbounds,logll'; -
applications/bdmtoolbox/tutorial/userguide/RV.m
r615 r630 1 1 function r=RV(names,sizes,times); 2 % create RV from cell of names, vector of sizes and vector of time delayes 2 3 3 4 r.class='RV'; … … 6 7 if nargin>1 7 8 r.sizes = sizes; 9 else 10 r.sizes = ones(1,length(names)); 8 11 end 9 12 if nargin>2 10 13 r.times = times; 14 else 15 r.times = zeros(1,length(names)); 11 16 end -
applications/bdmtoolbox/tutorial/userguide/mpdfds_example.m
r617 r630 1 1 % name random variables 2 y = RV({'y'} );3 u = RV({'u'} );2 y = RV({'y'},1); 3 u = RV({'u'},1); 4 4 5 5 % create f(y_t| y_{t-3}, u_{t-1}) 6 6 fy.class = 'mlnorm<ldmat>'; 7 7 fy.rv = y; 8 fy.rvc = RV ({'y','u'}, [1 1], [-3, -1]);8 fy.rvc = RVtimes([y,u], [-3, -1]); 9 9 fy.A = [0.5, -0.9]; 10 10 fy.const = 0; 11 fy.R = 1e-1 00;11 fy.R = 1e-1; 12 12 13 13 % create f(u_t| ) … … 15 15 fu.rv = u; 16 16 fu.mu = 0; 17 fu.R = 1e-1 00;17 fu.R = 1e-1; 18 18 19 19 % create DS … … 21 21 DS.mpdf.class = 'mprod'; 22 22 DS.mpdf.mpdfs = {fy, epdf2mpdf(fu)}; 23 DS.init_rv = RV ({'y','y','y'}, [1,1,1], [-1,-2,-3]);23 DS.init_rv = RVtimes([y,y,y], [-1,-2,-3]); 24 24 DS.init_values = [0.1, 0.2, 0.3]; 25 25 … … 28 28 %M=estimator(DS,{},experiment); 29 29 M=simulator(DS,experiment); 30 31 %%% store results 32 Data=[M.y'; M.u']; 33 drv = RVjoin({y,u}); 34 save mpdfds_results Data drv y u