Revision 607, 0.9 kB
(checked in by smidl, 15 years ago)
|
test for ticket 12 is now part of testsuite - see tests/arx_straux_test.cpp
|
Line | |
---|
1 | % sript for testing structure estimating function |
---|
2 | |
---|
3 | % run just time-to-time - do not forget to copy resulting values to |
---|
4 | % test_arx_straux.cpp!!! |
---|
5 | if 0 |
---|
6 | A=rand(3) |
---|
7 | B=rand(3) |
---|
8 | % when run, copy output to the else section |
---|
9 | else |
---|
10 | A=[ 0.8147 0.9134 0.2785; |
---|
11 | 0.9058 0.6324 0.5469; |
---|
12 | 0.1270 0.0975 0.9575]; |
---|
13 | |
---|
14 | B=[0.9649 0.9572 0.1419; |
---|
15 | 0.1576 0.4854 0.4218; |
---|
16 | 0.9706 0.8003 0.9157]; |
---|
17 | end |
---|
18 | |
---|
19 | [L0,D0]=ldform(A); |
---|
20 | [L1,D1]=ldform(A+B); |
---|
21 | |
---|
22 | % structure estimation - copied form facstr |
---|
23 | belief = 2; % default belief |
---|
24 | nbest = 1; % nbest: how many regressors are returned |
---|
25 | nrep = 5; % nrep: number of random repetions of structure estimation |
---|
26 | lambda = 0.9; |
---|
27 | k=2; |
---|
28 | |
---|
29 | % [strout, rgrsout, statistics] = |
---|
30 | % straux1(L, d, nu, L0, d0, nu0, belief, nbest, max_nrep, lambda, |
---|
31 | % order_k); |
---|
32 | [o1,o2,o3]=straux1(L1,diag(D1),20, L0, diag(D0), 10, belief, nbest, nrep, lambda, k); |
---|