zp2tf: Zero-pole-gain to transfer function

View source: R/zp2tf.R

zp2tfR 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)


gsignal documentation built on Sept. 12, 2024, 6:27 a.m.