sos2zp {gsignal} | R Documentation |
Sos to zero-pole-gain
Description
Convert digital filter second-order section data to zero-pole-gain form.
Usage
sos2zp(sos, g = 1)
Arguments
sos |
Second-order section representation, specified as an nrow-by-6
matrix, whose rows contain the numerator and denominator coefficients of
the second-order sections: |
g |
Overall gain factor that effectively scales the output |
Value
A list of class "Zpg" with the following list elements:
- z
complex vector of the zeros of the model (roots of
B(z)
)- p
complex vector of the poles of the model (roots of
A(z)
)- k
overall gain (
B(Inf)
)
Author(s)
Julius O. Smith III jos@ccrma.stanford.edu.
Conversion to R by, Geert van Boxtel G.J.M.vanBoxtel@gmail.com
See Also
Examples
sos <- rbind(c(1, 0, 1, 1, 0, -0.81), c(1, 0, 0, 1, 0, 0.49))
zpk <- sos2zp(sos)