estimation initialization: minor bug correction when filtered_vars is requested
parent
af6a330924
commit
85989df0e1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue