IIRFilters.EllipticFilter Method

Overload List

#SignatureDescription
1function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; A: TMtx; B: TVec; C: TVec; out d: Double): Double;The resulting transfer function is returned in the state-space form with A,B,C,D variables.
2function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; Num: TVec; Den: TVec; IirFrequencyTransform: TIirFrequencyTransform): Double;The resulting transfer function is returned in the numerator/denumerator form with num and den.
3function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; z: TVec; p: TVec; var k: Double; IirFrequencyTransform: TIirFrequencyTransform): Double;Design Elliptic IIR filter.
4function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; sos: TVec; IirFrequencyTransform: TIirFrequencyTransform): Double;The resulting transfer function is returned in the second order section form stored in the sos variable.

Overload 1: function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; A: TMtx; B: TVec; C: TVec; out d: Double): Double;

The resulting transfer function is returned in the state-space form with A,B,C,D variables.

#NameTypeDescription
1OrderInteger
2PassRippleDoublescalar
3StopRippleDoublescalar
4CutoffFreqTDoubleArray
5FilterTypeTFilterType
6AnalogBoolean
7ATMtxsource TMtx
8BTVecsource TVec
9CTVecsource TVec
10dDouble

Returns: Double

See Also: SignalUtils.IirFilter, IIRFilters.ButterFilter, IIRFilters.ChebyshevIFilter, IIRFilters.ChebyshevIIFilter, IIRFilters.BesselFilter, IIRFilters.EllipticAnalog, LinearSystems.Bilinear, IIRFilters.EllipticOrder

Overload 2: function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; Num: TVec; Den: TVec; IirFrequencyTransform: TIirFrequencyTransform): Double;

The resulting transfer function is returned in the numerator/denumerator form with num and den.

#NameTypeDescription
1OrderInteger
2PassRippleDoublescalar
3StopRippleDoublescalar
4CutoffFreqTDoubleArray
5FilterTypeTFilterType
6AnalogBoolean
7NumTVecsource TVec
8DenTVecsource TVec
9IirFrequencyTransformTIirFrequencyTransform

Returns: Double

Overload 3: function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; z: TVec; p: TVec; var k: Double; IirFrequencyTransform: TIirFrequencyTransform): Double;

Design Elliptic IIR filter.

#NameTypeDescription
1OrderInteger
2PassRippleDoublescalar
3StopRippleDoublescalar
4CutoffFreqTDoubleArray
5FilterTypeTFilterType
6AnalogBoolean
7zTVecsource TVec
8pTVecsource TVec
9kDouble
10IirFrequencyTransformTIirFrequencyTransform

Returns: Double

Remarks:

Design Elliptic filter of Order with CutoffFreq frequencies and of FilterType type. Set Analog to True, to request an analog filter design in s-plane or set it to false to obtain a digital filter design in z-plane. CutoffFreq must be in range between 0 and 1 (Sampling frequency = 2) in case of a digital filter design.

IIrFrequencyTransform specifies when and how will the frequency band transformation be applied. PassRipple defines the passband ripple in dB and StopRipple defines the stopband ripple in dB. The resulting transfer function is returned in the zero-pole form, with z,p,k variables.

Examples
uses MtxExpr, Math387, MtxVec, SignalUtils, MtxVecTee, MtxVecEdit, IirFilters,
LinearSystems;

procedure TForm1.Button1Click(Sender: TObject);
var z,p, num,den, FreqFr,Response: Vector;
Order: integer;
k,Bw,Wc: double;
WcArray: TDoubleArray; //modified 3dB frequency
begin
    SetLength(WcArray,1);
    Order := EllipticOrder([5/15,6/15],0.1,40,ftLowpass,WcArray,false);
    EllipticFilter(Order,0.1,40,WcArray,ftLowpass,false,num,den);
    FrequencyResponse(num,den,Response,64);
    FreqFr := Ramp(response.Length,mvDouble,0,30*0.5/Response.Length);
    DrawIt(FreqFr,20*Log10(Abs(Response)));
end;

Overload 4: function EllipticFilter(Order: Integer; PassRipple: Double; StopRipple: Double; CutoffFreq: TDoubleArray; FilterType: TFilterType; Analog: Boolean; sos: TVec; IirFrequencyTransform: TIirFrequencyTransform): Double;

The resulting transfer function is returned in the second order section form stored in the sos variable.

#NameTypeDescription
1OrderInteger
2PassRippleDoublescalar
3StopRippleDoublescalar
4CutoffFreqTDoubleArray
5FilterTypeTFilterType
6AnalogBoolean
7sosTVecsource TVec
8IirFrequencyTransformTIirFrequencyTransform

Returns: Double

Remarks:

The sos variable can be passed directly to the IirInitBQ digital filter initialization routine. Second order section form delivers substantially higher numerical stability and range than filtering with num/den form used by the IirInit function.