mr_gstep.m: increase buffer for check of hitting upper/lower bound of parameters

covariance-quadratic-approximation
Marco Ratto 2023-12-13 19:06:15 +01:00 committed by Johannes Pfeifer
parent 66bc9fd9c2
commit e1e79d3177
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ function x = check_bounds(x,bounds)
inx = find(x>=bounds(:,2));
if ~isempty(inx)
x(inx) = bounds(inx,2)-eps;
x(inx) = bounds(inx,2)-1.e-10;
end
inx = find(x<=bounds(:,1));
if ~isempty(inx)
x(inx) = bounds(inx,1)+eps;
x(inx) = bounds(inx,1)+1.e-10;
end