rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
dirichlet_values_weighted_boxes_coefficients.m
1 function Udirichlet = dirichlet_values_weighted_boxes_coefficients(params)
2 %function Udirichlet = dirichlet_values_weighted_boxes_coefficients(params)
3 %
4 % Return is a vector of length Q with (parameter dependent) coefficients in U.
5 %
6 % values constant params.c_dir in box given by
7 % (beta=1): model.dir_box_xrange{1} and dir_box_yrange{1}
8 % (beta=0): model.dir_box_xrange{2} and dir_box_yrange{2}
9 % for intermediate betas, the two boxes are weighted
10 
11 % Bernard Haasdonk 27.8.2009
12 
13 if ~ismember('beta',model.mu_names)
14  Udirichlet = model.c_dir;
15 else
16  Udirichlet = model.c_dir * [model.beta; 1-model.beta];
17 end;
18 %| \docupdate