1 function U = dirichlet_values_weighted_boxes_components(glob, params)
2 %
function U = dirichlet_values_weighted_boxes_components(glob, params)
4 %
function evaluating a
function in the list of global coordinates
5 % specified in the columns of glob. Result is a cell array of
6 % matrices of dirichlet value components results as columns.
8 % values constant params.c_dir in box given by
9 % (beta=1): model.dir_box_xrange{1} and dir_box_yrange{1}
10 % (beta=0): model.dir_box_xrange{2} and dir_box_yrange{2}
11 %
for intermediate betas, the two boxes are weighted
13 % Bernard Haasdonk 27.8.2009
17 if ~isempty(glob) && size(glob,1) < size(glob,2)
18 warning('coordinates in variable glob are given row-wise, but expected them to be column-wise');
26 U{q} = zeros(size(glob,1));
27 xrange = params.dir_box_xrange{q};
28 yrange = params.dir_box_yrange{q};
29 fi = (X > xrange(1) & ...
35 if ~ismember(
'beta',params.mu_names)
36 % merge to one component
37 U = {params.beta*U{1} + ...
38 (1-params.beta)*U{2}};