2 %
function performing a test of the orthonormalization routine by
3 % generating a time-sequence of data and orthogonalizing this.
4 % returns 1, if test is OK, 0 otherwise
10 load(
'test_rb_lin_evol_data');
11 model_data = gen_model_data(model);
12 sim_data = detailed_simulation(model,model_data);
14 UON = orthonormalize_qr(sim_data.U,A);
19 i_nonzero = find(E~=0);
21 if (find(B>0.9999)~=i_nonzero)
22 disp('gram-matrix not the identity!');
26 if (find(B<0.0001)~=i_zero)
27 disp(
'gram-matrix not the identity!');