Fix bug introduced in 952139b
The 'hh' variable is now always defined, so we now test if it is empty.time-shift
parent
743252a571
commit
e123670675
|
@ -310,7 +310,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation
|
||||||
if ~exist('MeanPar','var')
|
if ~exist('MeanPar','var')
|
||||||
MeanPar = xparam1;
|
MeanPar = xparam1;
|
||||||
end
|
end
|
||||||
if exist('hh','var')
|
if ~isempty(hh)
|
||||||
CovJump = inv(hh);
|
CovJump = inv(hh);
|
||||||
else% The covariance matrix is initialized with the prior
|
else% The covariance matrix is initialized with the prior
|
||||||
% covariance (a diagonal matrix) %%Except for infinite variances ;-)
|
% covariance (a diagonal matrix) %%Except for infinite variances ;-)
|
||||||
|
|
Loading…
Reference in New Issue