FilterCoef generates the a_n and b_m coefficients for the general linear difference equation for a digital filter:
H\left(z\right) = \frac{A\left(z\right)}{B\left(z\right)} = \frac{a_0+a_1z^{-1}+\dots+a_{N-1}z^{-\left(N-1\right)}+a_{N}z^{-N}}{1+b_1z^{-1}+b_2z^{-2}+\dots+b_{M-1}z^{-\left(M-1\right)}+b_{M}z^{-M}}
in response to supplying the location of M poles and N zeros on the Z-plane. These coefficients can be used with SOS, FOS or LTI.
FilterCoef does no automatic checking for identical pole/zero pairs. Neither does it check if the nr. of poles and zeros are equal or does it add a conjugate pole/zero automatically. Furthermore, normalizing the amplitude response with ZPlane does NOT mean that the digital filter coefficients are normalized too. If you want the digital filter coefficient to be normalized, you have to specify this explicitly when you call the method -calc on FilterCoef. The default behaviour is to scale the numerator (a_n coefficients) so as to ensure that the peak amplitude response of the filter is equal to unity.Create a new instance of FilterCoef.
| poles | |
| zeros | |
| real |
A Boolean indicating whether the returned filter coefficients are real or complex. Also see instance method -checkIfReal. |
| norm |
A Boolean indicating whether the returned filter coefficients should be normalized to unity. |
A new instance of FilterCoef.
Calculate the filter coefficients for the general linear difference equation of a digital filter. If norm is set to true (default), the a_n coefficients are scaled by the reciprocal of the maximum value of the amplitude response.
| poles | |
| zeros | |
| norm |
A Boolean indicating whether the returned filter coefficients should be normalized to unity. |
An Array of arrays holding the a_n coefficients: \left(a_0,a_1,\dots,a_{N-1},a_N\right) and the b_m coefficients: \left(b_0,b_1,\dots,b_{M-1},b_M\right).
Check if the specified poles and zeros result in a real or complex valued transfer function.
real instance variable in response.An Boolean indicating whether the specified filter is real or complex valued.
Calculate the filter coefficients for the general linear difference equation for a digital filter. If norm is set to true (default), the a_n coefficients are scaled by the reciprocal of the maximum value of the amplitude response.
| argNorm |
A Boolean indicating whether the filter coefficients should be normalized to unity. |
An Array of arrays holding the a_n coefficients: \left(a_0,a_1,\dots,a_{N-1},a_N\right) and the b_m coefficients: \left(b_0,b_1,\dots,b_{M-1},b_M\right).
Calculate the impulse response h_k of the digital filter.
An Array holding the impulse response of the filter.