Learn R Programming

phonTools (version 0.2-2.2)

polezero: Pole-zero Plots

Description

Generate a Pole-zero plot from filter coefficients.

Usage

polezero (b, a, ...)

Arguments

b

The filter moving-average (MA) coefficients.

a

The filter autoregressive (AR) coefficients.

...

Additional parameters are passed to the internal call of plot().

Author

Santiago Barreda <sbarreda@ucdavis.edu>

Details

This function plots filter poles (x) and zeros (o) based on the given coefficients.

References

http://en.wikipedia.org/wiki/Pole

Examples

Run this code
## example of a typical single-zero preemphasis filter
#a = 1
#b = c(1, -.94)
#polezero (b, a)

#example of a complex-pole formant-style filter
#a = c(1, -.3, .2)
#b = c(1)
#polezero (b, a)

Run the code above in your browser using DataLab