| TGUW {trendsegmentR} | R Documentation |
Tail-Greedy Unbalanced Wavelet (TGUW) transformation of a vector
Description
Performs the bottom-up unbalanced wavelet decomposition. This function is used inside trendsegment.
Details of the TGUW transformation can be found in H. Maeng and P. Fryzlewicz (2023), Detecting linear trend changes in data sequences.
Usage
TGUW(x, p = 0.04)
Arguments
x |
An input vector to be decomposed. |
p |
Proportion of all possible remaining merges which specifies the number of merges allowed in a single pass over the data. The default is 0.04. |
Value
A list with the followings:
x |
The original input vector |
n |
The length of |
twotogether |
A vector indicating locations of the detail coefficients returned by Type 3 merges (merging two sets of paired smooth coefficients). This is used in |
merging.hist |
An array of dimension 4 by 3 by |
ts.coeffs |
The transformed |
Author(s)
Hyeyoung Maeng hyeyoung.maeng@durham.ac.uk, Piotr Fryzlewicz p.fryzlewicz@lse.ac.uk
See Also
trendsegment, thresholding, invTGUW
Examples
x <- c(1:10, rep(5,9))
n <- length(x)
x <- x + rnorm(n)
tguwfit <- TGUW(x)
tguwfit