Learn R Programming

gsignal (version 0.3-7)

impz: Impulse response of digital filter

Description

Compute the z-plane impulse response of an ARMA model or rational IIR filter. A plot of the impulse and step responses is generated.

Usage

impz(filt, ...)

# S3 method for impz print(x, ...)

# S3 method for Arma impz(filt, ...)

# S3 method for Ma impz(filt, ...)

# S3 method for Sos impz(filt, ...)

# S3 method for Zpg impz(filt, ...)

# S3 method for default impz(filt, a = 1, n = NULL, fs = 1, ...)

Value

For impz, a list of class "impz" with items:

x

impulse response signal.

t

time.

Arguments

filt

for the default case, the moving-average coefficients of an ARMA model or filter. Generically, filt specifies an arbitrary model or filter operation.

...

for methods of freqz, arguments are passed to the default method. For plot.impz, additional arguments are passed through to plot.

x

object to be printed or plotted.

a

the autoregressive (recursive) coefficients of an ARMA filter.

n

number of points at which to evaluate the frequency response. If n is a vector with a length greater than 1, then evaluate the frequency response at these points. For fastest computation, n should factor into a small number of small primes. Default: 512.

fs

sampling frequency in Hz. If not specified (default = 2 * pi), the frequencies are in radians.

Author

Paul Kienzle, pkienzle@users.sf.net.
Conversion to R by Tom Short;
adapted by Geert van Boxtel, gjmvanboxtel@gmail.com

Examples

Run this code
## elliptic low-pass filter
elp <- ellip(4, 0.5, 20, 0.4)
impz(elp)

xt <- impz(elp)

Run the code above in your browser using DataLab