Description Usage Arguments Details Author(s) References See Also Examples
View source: R/squaredgain.wt.filter.R
Plots squared gain function for a wavelet filter.
1 2 | squaredgain.wt.filter(filter, level = 1, N = NULL, draw.bands = TRUE,
wavelet = TRUE)
|
filter |
Either a 'wt.filter' object, a character string specifying a wavelet filter, or a numeric vector of wavelet coefficients. See 'help(wt.filter)' for acceptable filter names. |
level |
Level of wavelet filter. Applicable only if a character
string is supplied in |
N |
Length of filter vector after padding the wavelet filter with zeroes. The zeroes are inserted after the filter values. |
draw.bands |
Draws dashed lines marking the lower and upper ends of the nominal pass-band for the wavelet filter. |
wavelet |
A logical flag indicating whether to plot the squared gain function for the wavelet (high pass) or scaling (low pass) filter. |
If N
is not specified, and the filter supplied is of length
less than 1024, then the filter vector will be padded to a length of
1024. Otherwise, if the filter supplied is of length greater than
1024, then the filter vector will be padded to the first 'power of 2'
that is greater than the length of the filter supplied.
Kelvin Ma, kkym@u.washington.edu
Percival, D. B. and A. T. Walden (2000) Wavelet Methods for Time Series Analysis, Cambridge University Press.
1 2 3 4 5 6 7 8 9 10 | # Plotting the squared gain function of LA8 Wavelet Filter Coefficients.
filter <- wt.filter("la8")
squaredgain.wt.filter(filter)
# Plotting the squared gain function of LA8 Scaling Filter Coefficients.
squaredgain.wt.filter(filter, wavelet = FALSE)
# Plotting the squared gain function of Haar Wavelet Filter Coefficients
# without supplying a filter object.
squaredgain.wt.filter("haar")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.