function h = dfasymfir(varargin)
%DFASYMFIR  Constructor for the antisymmetric direct-form FIR filter object.
%   F = DFASYMFIR(B) creates a antisymmetric direct-form (DFASYMFIR) FIR filter
%   object F with coefficients specified in vector B. If the order
%   of the filter is even, this structure will implement a Type 1
%   linear phase FIR filter. If the order is odd, this structure
%   will implement a Type 2 linear phase FIR filter.
%
%   B must be a vector of antisymmetric coefficients.
%
%   F = DFASYMFIR(B1,B2,...) creates a DFASYMFIR object F of cascaded
%   antisymmetric direct-form FIR sections. The coefficients of the
%   i-th section are given in vector Bi.
%
%   DFASYMFIR({{B1},{B2},...}) is equivalent to DFASYMFIR(B1,B2,...).
%
%   F = DFASYMFIR(...,C) creates a DFASYMFIR object F of sections
%   connected as indicated in C.  C can be either 'cas'
%   (default) for cascaded connections or 'par' for parallel
%   connections.
%
%   See also DFSYM, DF, DFT, DF1, DF2, DF1T, DF2T, LATCMA, LATCMAX.

%   Author(s): R. Losada
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.4 $  $Date: 2000/06/13 21:20:40 $ 

[coeffs,connection,msg] = dfiltparse('dfasymfir',varargin{:});

% If msg returns with a 'conversion' string, the constructor is used as a converter
if strcmpi(msg,'conversion'),
    h = coeffs;
    return
end

error(msg);

h.version = 1;

h = class(h,'dfasymfir',dffir(coeffs,connection));
    
