You are here: Symbol Reference > Polynoms Namespace > Functions > Polynoms.IIRFilter Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Polynoms.IIRFilter Function

Performs infinite impulse response (IIR) filtering.

Pascal
procedure IIRFilter(const B: TVec; const A: TVec; const X: TVec; const Y: TVec; const DelayLine: TVec = nil); overload;

Performs infinite impulse response (IIR) filtering. The IIRFilter procedure filters X through an IIR filter ([1]) and stores the results in vector Y. The filter is described with vectors A and B. 

The X values are filtered by using the following equation: 

 

y[i] = b[0]*x[i] + b[1]*x[i-1] + ... + b[N]*x[i-N] + a[1]*y[i-1] + ... + a[M]*y[i-M] x[i] ... input sample y[i] ... output (filtered) sample

 

where M = A.Length-1 and N = B.Length-1. The filter coefficients are normalized by A.Values[0]. The routine is not capable of continuous filtering (streaming).

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!