This function uses the special HwdS
function
to compute the Haar wavelet transform with out boundary
conditions (neither periodic, interval, mirror reflection).
This is so all coefficients are genuine Haar coefficients without
involving extra/repeated data.
ewspecHaarNonPer(x, filter.number = 1, family = "DaubExPhase",
UseLocalSpec = TRUE, DoSWT = TRUE, WPsmooth = TRUE,
verbose = FALSE, smooth.filter.number = 10,
smooth.family = "DaubLeAsymm",
smooth.levels = 3:WPwst$nlevels - 1, smooth.dev = madmad,
smooth.policy = "LSuniversal", smooth.value = 0,
smooth.by.level = FALSE, smooth.type = "soft",
smooth.verbose = FALSE, smooth.cvtol = 0.01,
smooth.cvnorm = l2norm, smooth.transform = I,
smooth.inverse = I)
The same value as for the ewspec
function.
A vector of dyadic length that contains the time series you want to form the EWS of.
Should always be 1 (for Haar)
Should always be "DaubExPhase", for Haar.
Should always be TRUE
.
Should always be TRUE
Should alway be TRUE
to do smoothing. If FALSE
then not smoothed.
If TRUE
informative messages are printed during
the progress of the algorithm.
Wavelet filter number for doing the wavelet smoothing of the EWS estimate.
Wavelet family for doing the wavelet smoothing of the EWS estimate.
Which levels of the EWS estimate to apply smoothing to.
What kind of deviance to use. The default is madmad, an alternative might be var.
What kind of smoothing to use. See help
page for ewspec
If a manual value has to be supplied according
to the smooth.policy
then this is it.
If TRUE
then all levels are smoothed
independently with different smoothing, otherwise all levels
are smoothed together (eg one threshold for all levels).
The type of wavelet smoothing "hard" or "soft"
If TRUE
then informative messages about
the smoothing are printed.
If cross-validation smoothing is used, this is the tolerance
If cross-validation smoothing used, this is the norm that's used
A transform is applied before smoothing
The inverse transform is applied after smoothing
Guy Nason.
This function is very similar
to ewspec
from wavethresh, and many arguments here perform
the same function as there.
Nason, G.P. (2013) A test for second-order stationarity and approximate confidence intervals for localized autocovariances for locally stationary time series. J. R. Statist. Soc. B, 75, 879-904. tools:::Rd_expr_doi("10.1111/rssb.12015")
hwtos2
,
HwdS
#
# Requires wavethresh, so not run directly in installation of package
#
ewspecHaarNonPer(rnorm(512))
Run the code above in your browser using DataLab