Skip to content
Snippets Groups Projects
Commit 08375e7b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed wrong ordering of the hyperparameters when walling the routine for...

Fixed wrong ordering of the hyperparameters when walling the routine for drawing random deviates from the Weibull distribution.
parent 472f6c4a
No related branches found
No related tags found
No related merge requests found
......@@ -166,10 +166,10 @@ if inverse_gamma_2_draws
end
if weibull_draws
pdraw(weibull_index) = wblrnd(p6(weibull_index), p7(weibull_index)) + p3(weibull_index);
pdraw(weibull_index) = wblrnd(p7(weibull_index), p6(weibull_index)) + p3(weibull_index);
out_of_bound = find( (pdraw(weibull_index)'>ub(weibull_index)) | (pdraw(weibull_index)'<lb(weibull_index)));
while ~isempty(out_of_bound),
pdraw(weibull_index(out_of_bound)) = wblrnd(p6(weibull_index(out_of_bound)),p7(weibull_index(out_of_bound)))+p3(weibull_index(out_of_bound));
pdraw(weibull_index(out_of_bound)) = wblrnd(p7(weibull_index(out_of_bound)),p6(weibull_index(out_of_bound)))+p3(weibull_index(out_of_bound));
out_of_bound = find( (pdraw(weibull_index)'>ub(weibull_index)) | (pdraw(weibull_index)'<lb(weibull_index)));
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment