root/applications/bdmtoolbox/tutorial/estimation/mexbm_test.m @ 595

Revision 595, 0.8 kB (checked in by smidl, 15 years ago)

improved test of mexBM

Line 
1y = struct('class','RV','names',{{'y'}});
2u = struct('class','RV','names',{{'u'}});
3yu = struct('class','RV','names',{{'y','u'}});
4rgr= struct('class','RV',...
5        'names',{{'y', 'y','y','u'}},...
6                'times' , [-1, -2, -3, -1]);
7
8%Data generating system
9system = struct(...
10        'class', 'ArxDS',...
11        'y', struct('class','RV','names',{{'y', 'u'}}),...
12        'u',  struct('class','RV','names',{{}}),...
13        'rgr', rgr,...
14        'theta', [0.8, -0.3, 0.4, 1.0;
15              0.0, 0.0, 0.0, 0.0],...
16        'offset',  [0.0, 0.0],...
17        'r', [0.1, 0.0; 0.0, 1.0],...
18        'opt', 'L_theta');
19
20estimators = {
21        struct('class','mexBM',...
22        'name', 'testBM',...
23        'drv', y,...
24    'posterior', struct('class', 'mexEpdf', 'name','mexEpdf','mu',[1.33333]))};
25
26%experiment description
27experiment.ndat = 9000;
28
29M=estimator(system,estimators,experiment);%,logger);
Note: See TracBrowser for help on using the browser.