Learn R Programming

gsignal (version 0.3-1)

FilterSpecs: Filter specifications

Description

Filter specifications, including order, frequency cutoff, type, and possibly others.

Usage

FilterSpecs(n, Wc, type, ...)

Arguments

n

filter order.

Wc

cutoff frequency.

type

filter type, normally one of "low", "high", "stop", or "pass".

...

other filter description characteristics, possibly including Rp for dB of pass band ripple or Rs for dB of stop band ripple, depending on filter type (Butterworth, Chebyshev, etc.).

Value

A list of class 'FilterSpecs' with the following list elements (repeats of the input arguments):

n

filter order

Wc

cutoff frequency

type

filter type, normally one of "low", "high", "stop", or "pass".

...

other filter description characteristics, possibly including Rp for dB of pass band ripple or Rs for dB of stop band ripple, depending on filter type (Butterworth, Chebyshev, etc.).

See Also

filter, butter and buttord, cheby1 and cheb1ord, ellip and ellipord.

Examples

Run this code
# NOT RUN {
filt <- FilterSpecs(3, 0.1, "low")

# }

Run the code above in your browser using DataLab