wavTransform {wmtsa} | R Documentation |
Packs input information regarding a discrete wavelet transform into a list.
wavTransform(data, series, n.levels, dictionary, shifted, xform)
data |
a list of vectors containing discrete wavelet transform coefficients. |
series |
a numeric vector or signalSeries object
representing the input series. |
n.levels |
an integer denoting the number of decomposition levels. |
dictionary |
an object of class wavDictionary representing
the wavelet dictionary of the transform. |
shifted |
a logical value. If TRUE , it signifies that the
transform coefficients have already been shifted for approximate zero
phase alignment. |
xform |
a character string denoting the type of wavelet
transform that has been performed. Typical values are
"modwt" or "dwt" . |
Used internally by the wavMODWT
and wavDWT
functions
to package the transform contents into a list.
an object of class wavTransform
.
Usage: x["d2"] or x[2]
Access a subset of wavelet transform crystals.
Usage: x["d2"] <- 1:4
Replace an entire crystal with explicitly defined coefficients.
Usage: x[["d2"]] or x[[2]]
Returns a vector of transform coefficients corresponding to the specified crystal.
d4
crystal (fourth level
wavelet coefficients).
Usage: as.matrix(x)
Usage: boxplot(x)
Usage: eda.plot(x)
wavTransform
object."energy"
an energy plot (bar or pie chart) is produced.
Default: "h"
.TRUE
and type="energy"
,
a bar plot of crystal energy is plotted. Default: TRUE
.TRUE
and type="energy"
,
a pie chart of crystal energy is plotted. Default: FALSE
.TRUE
, the plot is added to the
current plot layout without a frame ejection. Default: FALSE
.If the transform coefficients were not modified, the original time series will be returned (+/- some numerical noise).
wavDWT
, wavMODWT
, wavDWPT
, wavMODWPT
, wavBoundary
, wavSortCrystals
, wavPacketIndices
, wavShrink
.
## calculate a MODWT of the sunpots series and ## verify the class W <- wavMODWT(sunspots) print(class(W)) ## summarize the object summary(W) ## reconstruct the MODWT of the sunspots series ## and compare to the original sunup <- reconstruct(W) vecnorm(sunup - sunspots)