Qu

filter_from_tf

Builtin index · Signal processing

result = filter_from_tf(b, a, [fs])

Input: b, a, fs · Output: result

What it is

b, a: coefficient vectors in ascending powers of z^-1 (the filter(b, a, x) convention), a[0] nonzero; fs (optional number, Hz).

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = filter_from_tf(b, a, [fs])
b vectorb, a: coefficient vectors in ascending powers of z^-1 (the filter(b, a, x) convention), a[0] nonzero.
a vectorb, a: coefficient vectors in ascending powers of z^-1 (the filter(b, a, x) convention), a[0] nonzero.
fs number, optionalfs (optional number, Hz).
Model —kind "filter"
Returns a Model (kind "filter"). With a feedback part the two polynomials are factored and regrouped into second-order sections (field sos); when a is a single number the result is an FIR model (field b, the taps b / a[0]). A numerator starting with zeros is a delay and is kept.

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

filter_from_tf(b, a, [fs]) -- a filter model from transfer- function coefficients in ascending powers of z^-1 (the filter(b, a, x) convention). With a feedback part the polynomials are factored and regrouped into second-order sections; with a a single number the result is an FIR model holding the taps b / a[0] as they are.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.