1 | y = struct('class','RV','names',{{'y'}}); |
---|
2 | u = struct('class','RV','names',{{'u'}}); |
---|
3 | yu = struct('class','RV','names',{{'y','u'}}); |
---|
4 | rgr= struct('class','RV',... |
---|
5 | 'names',{{'y', 'y','y','u'}},... |
---|
6 | 'times' , [-1, -2, -3, -1]); |
---|
7 | |
---|
8 | %Data generating system |
---|
9 | system = 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 | |
---|
20 | estimators = { |
---|
21 | struct('class','mexBM',... |
---|
22 | 'name', 'mexBM',... |
---|
23 | 'drv', y,... |
---|
24 | 'posterior', struct('class', 'mexEpdf', 'name','mexEpdf','mu',[1.33333]))}; |
---|
25 | |
---|
26 | %experiment description |
---|
27 | experiment.ndat = 9000; |
---|
28 | |
---|
29 | M=estimator(system,estimators,experiment);%,logger); |
---|