fixing logic flaw in setting lik_init as a function of diffuse filter or kalman_algo

time-shift
Michel Juillard 2011-10-21 14:21:40 +02:00
parent 6f56eafdfa
commit 7e3225680f
1 changed files with 3 additions and 2 deletions

View File

@ -66,8 +66,9 @@ if options_.order > 1 & isempty(options_.nonlinear_filter)
options_.order = 1;
end
% Set options_.lik_init equal to 3 if diffuse filter is used.
if (options_.diffuse_filter==1) && (options_.lik_init==1)
% Set options_.lik_init equal to 3 if diffuse filter is used or
% kalman_algo refers to a diffuse filter algorithm.
if (options_.diffuse_filter==1) || (options_.kalman_algo > 2)
options_.lik_init = 3;
end