Expand check of fast_kalman_filter for presence of block-option

time-shift
Johannes Pfeifer 2016-06-16 10:53:03 +02:00 committed by Stéphane Adjemian (Hermes)
parent bffea9b426
commit 8aaca040b3
1 changed files with 8 additions and 4 deletions

View File

@ -174,10 +174,14 @@ if options_.analytic_derivation && options_.fast_kalman_filter
end
% fast kalman filter is only available with kalman_algo == 1,3
if options_.fast_kalman_filter && ...
(options_.kalman_algo == 1 || options_.kalman_algo == 3)
error(['estimation option conflict: fast_kalman_filter is only available ' ...
'with kalman_algo = 1 or kalman_algo = 3'])
if options_.fast_kalman_filter
if (options_.kalman_algo == 1 || options_.kalman_algo == 3)
error(['estimation option conflict: fast_kalman_filter is only available ' ...
'with kalman_algo = 1 or kalman_algo = 3'])
elseif options_.block
error(['estimation option conflict: fast_kalman_filter is not available ' ...
'with block'])
end
end
if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation