Added comments.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2755 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
b71a7a83ed
commit
faaac5e6c0
|
@ -223,8 +223,10 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params
|
||||||
k = find(isnan(xparam1));
|
k = find(isnan(xparam1));
|
||||||
xparam1(k) = bayestopt_.p1(k);
|
xparam1(k) = bayestopt_.p1(k);
|
||||||
|
|
||||||
|
% I create subfolder M_.dname/prior if needed.
|
||||||
CheckPath('prior');
|
CheckPath('prior');
|
||||||
|
|
||||||
|
% I save the prior definition if the prior has changed.
|
||||||
if exist([ M_.dname '/prior/definition.mat'])
|
if exist([ M_.dname '/prior/definition.mat'])
|
||||||
bayestopt_old = load([M_.dname '/prior/definition.mat'],'bayestopt_');
|
bayestopt_old = load([M_.dname '/prior/definition.mat'],'bayestopt_');
|
||||||
prior_has_changed = 0;
|
prior_has_changed = 0;
|
||||||
|
|
Loading…
Reference in New Issue