Transform hard-coded plot tolerance into an undocumented option

time-shift
Johannes Pfeifer 2017-08-16 13:11:35 +02:00 committed by Stéphane Adjemian (Scylla)
parent 4cd259baa6
commit 16a3e11034
2 changed files with 2 additions and 1 deletions

View File

@ -610,7 +610,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
number_of_plots_to_draw = 0;
index = [];
for obs_iter=1:n_varobs
if max(abs(measurement_error(obs_iter,:))) > 0.0000001
if max(abs(measurement_error(obs_iter,:))) > options_.ME_plot_tol;
number_of_plots_to_draw = number_of_plots_to_draw + 1;
index = cat(1,index,obs_iter);
end

View File

@ -467,6 +467,7 @@ options_.prior_trunc = 1e-10;
options_.smoother = 0;
options_.posterior_max_subsample_draws = 1200;
options_.sub_draws = [];
options_.ME_plot_tol=1e-6;
% options_.use_mh_covariance_matrix = 0;
options_.gradient_method = 2; %used by csminwel and newrat
options_.gradient_epsilon = 1e-6; %used by csminwel and newrat