root/library/utia_legacy/ticket_12/test_str.m @ 647

Revision 647, 0.9 kB (checked in by smidl, 15 years ago)

ticket 12 - correct handling of LD

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!!!
5if 0
6    A=rand(3)
7    B=rand(3)
8    % when run, copy output to the else section
9else
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];
17end
18
19[L0,D0]=ldform(A,eye(3));
20[L1,D1]=ldform(A+B,eye(3));
21
22% structure estimation - copied form facstr
23belief = 2;           % default belief
24nbest = 1;           % nbest: how many regressors are returned
25nrep = 5;         % nrep: number of random repetions of structure estimation
26lambda   = 0.9;
27k=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);
Note: See TracBrowser for help on using the browser.