You are here: Symbol Reference > LinearSystems Namespace > Functions > LinearSystems.ComputeGain Function
DSP Master VCL
ContentsIndex
PreviousUpNext
LinearSystems.ComputeGain Function

Returns gain of a filter with zeroes in z and poles in p.

Pascal
function ComputeGain(const z: TVec; const p: TVec; Val: Double = 1): Double; overload;

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.

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