Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

impz

Impulse-response characteristics


Description

Impulse-response characteristics of a discrete filter.

Usage

## Default S3 method:
impz(filt, a = 1, n = NULL, Fs = 1, ...)

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

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

## S3 method for class 'impz'
plot(x, xlab = "Time, msec", ylab = "", type = "l",
    main = "Impulse response", ...)

## S3 method for class 'impz'
print(x, xlab = "Time, msec", ylab = "", type = "l",
    main = "Impulse response", ...)

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.

a

the autoregressive (recursive) coefficients of an ARMA filter.

n

number of points at which to evaluate the frequency response.

Fs

sampling frequency in Hz. If not specified, the frequencies are in per unit.

...

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

x

object to be plotted.

xlab,ylab,main

axis labels anmd main title with sensible defaults.

type

as in plot, uses lines to connect the points

Details

When results of impz are printed, the impulse response will be plotted. As with lattice plots, automatic printing does not work inside loops and function calls, so explicit calls to print or plot are needed there.

Value

For impz, a list of class impz with items:

x

impulse response signal.

t

time.

Author(s)

Original Octave version by Kurt Hornik and John W. Eaton. Conversion to R by Tom Short.

References

Octave Forge http://octave.sf.net

See Also

Examples

bt <- butter(5, 0.3)
impz(bt)
impz(ellip(5, 0.5, 30, 0.3))

signal

Signal Processing

v0.7-6
GPL-2
Authors
Uwe Ligges [aut, cre] (new maintainer), Tom Short [aut] (port to R), Paul Kienzle [aut] (majority of the original sources), Sarah Schnackenberg [ctb] (various test cases and bug fixes), David Billinghurst [ctb], Hans-Werner Borchers [ctb], Andre Carezia [ctb], Pascal Dupuis [ctb], John W. Eaton [ctb], E. Farhi [ctb], Kai Habel [ctb], Kurt Hornik [ctb], Sebastian Krey [ctb], Bill Lash [ctb], Friedrich Leisch [ctb], Olaf Mersmann [ctb], Paulo Neis [ctb], Jaakko Ruohio [ctb], Julius O. Smith III [ctb], Doug Stewart [ctb], Andreas Weingessel [ctb]
Initial release
2015-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.