Commit 4f342655 authored by MichelJuillard's avatar MichelJuillard
Browse files

adaptive_metropolis_hasting: lowering minimal jscale

parent cd1d6ae2
......@@ -117,8 +117,8 @@ for i=1:maxit
X = [ones(i,1) Scales(1:i)];
b = X\(AvRates(1:i)-accept_target);
Scales(i+1) = -b(1)/b(2);
if Scales(i+1) < 0.05
Scales(i+1) = 0.05;
if Scales(i+1) < 0.001
Scales(i+1) = 0.001;
elseif Scales(i+1) > 2
Scales(i+1) = 2;
end
......
Supports Markdown
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