Commit 86e64648 authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

mode_check.m: fix case where parameter is exactly 0

In this case, interval length was 0, crashing the plotting
parent 8fa50ad0
...@@ -111,8 +111,15 @@ for plt = 1:nbplt ...@@ -111,8 +111,15 @@ for plt = 1:nbplt
end end
end end
xx = x; xx = x;
l1 = max(,(1-sign(x(kk))*ll)*x(kk)); m1 = 0; %lower bound if x(kk)~=0
l2 = min(BoundsInfo.ub(kk),(1+sign(x(kk))*ll)*x(kk)); %upper bound l1 = max(,(1-sign(x(kk))*ll)*x(kk)); m1 = 0; %lower bound
l2 = min(BoundsInfo.ub(kk),(1+sign(x(kk))*ll)*x(kk)); %upper bound
%size info for 0 parameter is missing, use prior standard
l1 = max(,-BayesInfo.p2(kk)); m1 = 0; %lower bound
l2 = min(BoundsInfo.ub(kk),BayesInfo.p2(kk)); %upper bound
binding_lower_bound=0; binding_lower_bound=0;
binding_upper_bound=0; binding_upper_bound=0;
if isequal(x(kk), if isequal(x(kk),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment