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

freqs

s-plane frequency response


Description

Compute the s-plane frequency response of an ARMA model (IIR filter).

Usage

## Default S3 method:
freqs(filt = 1, a = 1, W, ...)

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

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

## S3 method for class 'freqs'
print(x, ...)

## S3 method for class 'freqs'
plot(x, ...)

## Default S3 method:
freqs_plot(w, h, ...) 

## S3 method for class 'freqs'
freqs_plot(w, ...)

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.

W

the frequencies at which to evaluate the model.

w

for the default case, the array of frequencies. Generically, w specifies an object from which to plot a frequency response.

h

a complex array of frequency responses at the given frequencies.

x

object to be plotted.

...

additional arguments passed through to plot.

Details

When results of freqs are printed, freqs_plot will be called to display frequency plots of magnitude and phase. As with lattice plots, automatic printing does not work inside loops and function calls, so explicit calls to print are needed there.

Value

For freqs list of class freqs with items:

H

array of frequencies.

W

complex array of frequency responses at those frequencies.

Author(s)

Original Octave version by Julius O. Smith III. Conversion to R by Tom Short.

See Also

Examples

b <- c(1, 2)
a <- c(1, 1)
w <- seq(0, 4, length=128)
freqs(b, a, w)

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.