Commit 978f29f5 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added missing field in bayestopt_ (restrict_var_list, indices for the state...

Added missing field in bayestopt_ (restrict_var_list, indices for the state and observed variables).
parent 54584926
......@@ -210,6 +210,7 @@ end
k2 = union(var_obs_index,[dr.nstatic+1:dr.nstatic+dr.npred]', 'rows');
% Set restrict_state to postion of observed + state variables in expanded state vector.
oo_.dr.restrict_var_list = k2;
bayestopt_.restrict_var_list = k2;
% set mf0 to positions of state variables in restricted state vector for likelihood computation.
[junk,bayestopt_.mf0] = ismember([dr.nstatic+1:dr.nstatic+dr.npred]',k2);
% Set mf1 to positions of observed variables in restricted state vector for likelihood computation.
......
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