estimation initialization: minor bug correction when filtered_vars is requested

time-shift
Michel Juillard 2011-06-08 22:06:41 +02:00
parent af6a330924
commit 85989df0e1
1 changed files with 3 additions and 3 deletions

View File

@ -98,13 +98,13 @@ if options_.prefilter == 1
end
%% Set options related to filtered variables.
if options_.filtered_vars ~= 0 && isempty(options_.filter_step_ahead),
if ~isequal(options_.filtered_vars,0) && isempty(options_.filter_step_ahead)
options_.filter_step_ahead = 1;
end
if options_.filtered_vars ~= 0 && options_.filter_step_ahead == 0,
if ~isequal(options_.filtered_vars,0) && isequal(options_.filter_step_ahead,0)
options_.filter_step_ahead = 1;
end
if options_.filter_step_ahead ~= 0
if ~isequal(options_.filter_step_ahead,0)
options_.nk = max(options_.filter_step_ahead);
end