filter_from_zpk
Builtin index · Signal processing
result = filter_from_zpk(z, p, k, [fs])
Input: z, p, k, fs · Output: result
What it is
z, p: zeros and poles (real or complex vectors; complex values must come in conjugate pairs); k: number (gain); fs (optional number, Hz).
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = filter_from_zpk(z, p, k, [fs]) | z vectorz, p: zeros and poles (real or complex vectors.p vectorz, p: zeros and poles (real or complex vectors.k numberk: number (gain).fs number, optionalfs (optional number, Hz). | Model —kind "filter", field sos | Returns a Model (kind "filter", field sos) for H(z) = k * prod(z - z_i) / prod(z - p_i). Fewer zeros than poles is a delay of the difference; more zeros than poles gives the causal filter with the missing poles at the origin. |
Examples
No documentation example calls this form yet. The Signal processing chapter is where one belongs.
How it works
filter_from_zpk(z, p, k, [fs]) -- a filter model from zeros, poles and gain: H(z) = k * prod(z - z_i) / prod(z - p_i).
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.