Impulse-response characteristics of a discrete filter.
# S3 method for default
impz(filt, a = 1, n = NULL, Fs = 1, ...)# S3 method for Arma
impz(filt, ...)
# S3 method for Ma
impz(filt, ...)
# S3 method for impz
plot(x, xlab = "Time, msec", ylab = "", type = "l",
main = "Impulse response", ...)
# S3 method for impz
print(x, xlab = "Time, msec", ylab = "", type = "l",
main = "Impulse response", ...)
For impz
, a list of class impz
with items:
impulse response signal.
time.
for the default case, the moving-average coefficients of
an ARMA model or filter. Generically, filt
specifies an arbitrary model or filter operation.
the autoregressive (recursive) coefficients of an ARMA filter.
number of points at which to evaluate the frequency response.
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
.
object to be plotted.
axis labels anmd main title with sensible defaults.
as in plot
, uses lines to connect the points
Original Octave version by Kurt Hornik and John W. Eaton. Conversion to R by Tom Short.
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.
https://en.wikipedia.org/wiki/Impulse_response
Octave Forge https://octave.sourceforge.io/
filter
, freqz
, zplane
bt <- butter(5, 0.3)
impz(bt)
impz(ellip(5, 0.5, 30, 0.3))
Run the code above in your browser using DataLab