finesse.utilities.control.zpk_fresp

finesse.utilities.control.zpk_fresp(zs, ps, k, w)[source]

Evaluate the frequency response of a zpk filter.

The evaluation is done by multiplying the poles and zeros in pairs which is more numerically stable than multiplying all of the zeros and then dividing by all of the poles as is done with other tools when there are a large number of zeros and poles.

Parameters
zsarray

zeros of the filter

psarray

poles of the filter

kfloat

gain of the filter

warray

frequencies at which to compute the filter