fFilter | R Documentation |
The frequency filter alters the signal amplitude with respect to frequency.
low frequencies are passed, high frequencies are attenuated.
high frequencies are passed, low frequencies are attenuated.
only frequencies in a frequency band are passed.
a normally narrow band of frequencies is attenuated.
## S4 method for signature 'GPR'
fFilter(
x,
f = 100,
type = c("low", "high", "bandpass", "bandpass-reject"),
L = 257,
plotSpec = FALSE,
track = TRUE
)
x |
An object of the class GPR |
f |
numeric vector: cut-off frequencies. Cutoff frequency is the frequency beyond which the filter will not pass signals. See Details. |
type |
length-one character vector: type of frequency vector. |
L |
length-one numeric defining the filter length. See Details. |
plotSpec |
boolean. If |
For the low- and high-pass filter, only one cut-off frequency can be defined
while the argument L
will define the filter length of the Hamming
window (necessary to reduce ringing artifacts from the Gibbs phenomenon).
If two values are passed to the cut-off frequency argument f
,
the value of L
will be ignored.
Example for low-pass filter: f = c(150, 200)
.
Example for high-pass filter: f = c(10, 20)
For the band-pass filter and the band-pass-reject filter,
only two cut-off frequency can be defined
while the argument L
will define the filter length of the Hamming
window (necessary to reduce ringing artifacts from the Gibbs phenomenon).
If four values (the two first corner frequencies followed by the two last
corner frequencies ) are passed to the cut-off frequency argument f
,
the value of L
will be ignored.
Example: f = c(10, 20, 150, 200)
Check this free book: The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.