Revision 811, 0.5 kB
(checked in by smidl, 15 years ago)
|
extensions and stuff for MPF
|
Line | |
---|
1 | y = RV('y',2); |
---|
2 | |
---|
3 | g.class = 'mexFnc'; |
---|
4 | g.dim = 2; |
---|
5 | g.dimc = 2; |
---|
6 | g.function = 'test_function'; |
---|
7 | |
---|
8 | g2.class = 'linfn'; |
---|
9 | g2.A = eye(2); |
---|
10 | g2.B = [1;0]; |
---|
11 | |
---|
12 | fy.class = 'mgnorm<chmat>'; |
---|
13 | fy.R = 0.1*eye(2); |
---|
14 | fy.g = g; |
---|
15 | fy.rv = y; |
---|
16 | fy.rvc = RVtimes(y,-1); |
---|
17 | |
---|
18 | |
---|
19 | %%%%%% Data generator |
---|
20 | DS.class = 'PdfDS'; |
---|
21 | DS.pdf = fy; |
---|
22 | DS.init_rv = RVtimes(y,-1); |
---|
23 | DS.init_values = [.2,.3]'; |
---|
24 | |
---|
25 | %%%%% Estimator |
---|
26 | E.class = 'ARXg'; |
---|
27 | E.rv = y; |
---|
28 | E.rgr = RVtimes(y,-1); |
---|
29 | E.dimx=2; |
---|
30 | E.frg=0.99; |
---|
31 | E.constant = 1; |
---|
32 | E.g = g; |
---|
33 | |
---|
34 | exper.ndat = 1000; |
---|
35 | M = estimator(DS,{E},exper); |
---|
36 | %%%%%% ARX estimator conditioned on frg |
---|