function obj = iv4Options(varargin)
%IV4OPTIONS  Option set for the IV4 command.
%
%   OPT = iv4Options returns the default options for IV4.
%
%   OPT = iv4Options('Option1',Value1,'Option2',Value2,...) uses name/value
%   pairs to override the default values for 'Option1','Option2',...
%
%   The supported options are:
%
%   InitialCondition    Handling of initial conditions during estimation
%                       using frequency domain data. 
%                       One of the following:
%                           'zero': All initial conditions are taken as zero.
%                       'estimate': The necessary initial conditions are
%                                   estimated from data as extra parameters.
%                           'auto': An automatic choice among the above is made,
%                                   guided by the data. Default.
%
%   Focus      Choose between 1-step prediction vs. simulation error
%              minimization. Specify as one of:
%              'prediction': Focus on producing good predictors. Default.
%              'simulation': Focus on making a good fit for simulation (with
%                            the current input).
%  
%   WeightingFilter   Weighting prefilter for estimation. Specify as one of:
%                     []: No weighting prefilter applied. Default.
%              Passbands: Row vector or matrix containing frequency values
%                         that define desired passbands. For example:
%                         [wl,wh]
%                         [w1l,w1h ; w2l,w2h ; w3l,w3h ; ...]
%                         where wl and wh represent lower and upper limits
%                         of a passband. For a matrix with several rows
%                         defining frequency passbands, the algorithm uses
%                         union of frequency ranges to define the
%                         estimation passband. Passbands are expressed in
%                         rad/TimeUnit for time domain data and in
%                         frequency units of the data for frequency domain
%                         data.
%            SISO Filter: Any SISO linear filter specified as one of:
%                         * A SISO linear system.
%                         * {A,B,C,D}, which specifies the state-space
%                           matrices of a discrete-time filter.  
%                         * {numerator, denominator}, which specifies the
%                           numerator and denominator of the filter
%                           expressed as a discrete-time transfer function.
%                 Vector: For frequency-domain data only. Specify as a column
%                         vector of weights. This vector must have the same
%                         size as length of the frequency vector of the
%                         data set (= length(Data.Frequency)).
%  
%   EnforceStability  Force the resulting model to be stable. Default: false.
%
%   EstimateCovariance  Specify whether to estimate parameter covariance (true)
%                       or not (false). Default: true.
%
%   Display       View estimation progress ('on'/'off'). Default: 'off'.
%                 You can terminate a running estimation by pressing the
%                 STOP button on the progress viewer window.
%   
%   InputInterSample  Intersample behavior of the input signals, which
%                     influences the estimation, simulation and prediction
%                     of continuous-time models. Specify as 'auto' (default),
%                     'zoh','foh','bl'.
%
%   InputOffset   Specifies the offset levels present in the input signals
%                 of the estimation data. Specify as an Nu-element column
%                 vector, where Nu is the number of inputs. For estimations
%                 using multi-experiment data, specify as Nu-by-Ne matrix,
%                 where Ne is the number of experiments. The offset value
%                 InputOffset(i,j) is subtracted from the i:th input signal
%                 of the j:th experiment. Default is [] which implies no
%                 offsets. Available for estimations using time-domain data
%                 only.
%
%   OutputOffset  Output signal offset levels. Similar interpretation as
%                 InputOffset. The specified values are subtracted from the
%                 output signals before they are used for estimation.
%
%   Advanced      Structure with fields MaxSize and StabilityThreshold.
%                 Type "doc iv4Options" for more information.
%
%   See also IV4.

%   Author(s): Rajiv Singh
%   Copyright 2010-2017 The MathWorks, Inc.
try
   obj = initOptions(idoptions.iv4('iv4'),varargin);
catch E
   throw(E);
end
