Fix bug in ML forecasting if observables are not included

time-shift
Johannes Pfeifer 2013-03-19 19:04:03 +01:00
parent 3c5aab9e20
commit 156397ec31
1 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,10 @@ switch task
i_var_obs = [ i_var_obs; tmp];
trend_coeffs = [trend_coeffs; oo_.Smoother.TrendCoeffs(i)];
end
end
trend = trend_coeffs*(gend+(1-M_.maximum_lag:horizon));
end
if ~isempty(trend_coeffs)
trend = trend_coeffs*(gend+(1-M_.maximum_lag:horizon));
end
end
global bayestopt_
if isfield(bayestopt_,'mean_varobs')