zp2tf {gsignal}R Documentation

Zero-pole-gain to transfer function

Description

Convert digital filter zero-pole-gain data to transfer function form

Usage

zp2tf(z, p, g = 1)

Arguments

z

complex vector of the zeros of the model

p

complex vector of the poles of the model

g

overall gain. Default: 1.

Value

A list of class "Arma" with the following list elements:

b

moving average (MA) polynomial coefficients

a

autoregressive (AR) polynomial coefficients

Author(s)

Geert van Boxtel, gjmvanboxtel@gmail.com

See Also

as.Arma, filter

Examples

g <- 1
z <- c(0, 0)
p <- pracma::roots(c(1, 0.01, 1))
ba <- zp2tf(z, p, g)


[Package gsignal version 0.3-5 Index]