When mh_posterior_mode_estimation, trap cases where the prior mode is at the boundary.
parent
a3ab6de6c8
commit
951dfe8ff4
|
@ -366,6 +366,8 @@ else
|
||||||
xparam1 = bayestopt_.p5;
|
xparam1 = bayestopt_.p5;
|
||||||
idNaN = isnan(xparam1);
|
idNaN = isnan(xparam1);
|
||||||
xparam1(idNaN) = bayestopt_.p1(idNaN);
|
xparam1(idNaN) = bayestopt_.p1(idNaN);
|
||||||
|
outside_bound_pars=find(xparam1 < bounds.lb | xparam1 > bounds.ub);
|
||||||
|
xparam1(outside_bound_pars) = bayestopt_.p1(outside_bound_pars);
|
||||||
end
|
end
|
||||||
|
|
||||||
if ~options_.cova_compute
|
if ~options_.cova_compute
|
||||||
|
|
Loading…
Reference in New Issue