rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
eval_affine_decomp.m
1 function R = eval_affine_decomp(R_comp_ptr,R_coeff_ptr,model,model_data)
2 %function R = eval_affine_decomp(R_comp_ptr,R_coeff_ptr,model,model_data)
3 %
4 % function returning either the components, coefficients or their
5 % linear combination depending on model.decomp_mode, where
6 % expected argument list: R_comp_ptr(model,model_data);
7 % R_coeff_ptr(model);
8 
9 if model.decomp_mode == 2
10  R = R_coeff_ptr(model);
11 else
12  if model.decomp_mode == 1
13  R = R_comp_ptr(model,model_data);
14  else
15  Rcomp = R_comp_ptr(model,model_data);
16  Rcoeff = R_coeff_ptr(model);
17  R = lincomb_sequence(Rcomp,Rcoeff);
18  end;
19 end;
20 
21 %| \docupdate