DewDSPMasterNET
ComputeGain Routines
Summary
Returns gain of a filter with zeroes in z and poles in p.

Unit
LinearSystems

Declaration
Function ComputeGain(z, p: TVec; Val: TSample = 1): TSample;

Description
Returns gain of a filter with zeroes in z and poles in p. Val parameter defines the value at which to evaluate the rational polynomial:
(x-z1)*....*(x-zn) (Val-z1)*....*(Val-zn) ------------------ ==> ---------------------- = number (x-p1)*....*(x-pn) (Val-p1)*....*(Val-pn) x - variable z1..zn - zeros p1..pn - poles

The routine assumes that the coefficients of the polynomial are all real and therefore returns only the real part of the result.
Declaration
Function ComputeGain(z, p: TVec; Val: TCplx): TSample;

Description
Returns gain of a filter with zeroes in z and poles in p. Val parameter defines the value at which to evaluate the rational polynomial.
Categories
IIR filter design routines

Copyright 2008 Dew Research
http://www.dewresearch.com