Presented with an object returned by best.unbal.haar
, the function
sets to zero those Unbalanced Haar coefficients which fall below a certain threshold
sigma
.
hard.thresh(buh, sigma = 1)
an object returned by best.unbal.haar
containing the decomposition to be thresholded
the threshold (a positive scalar)
a thresholded object, of the same class as buh
# NOT RUN {
x <- rnorm(1000)
x.uh <- best.unbal.haar(x)
x.uh.th <- hard.thresh(x.uh)
x.uh.th.r <- reconstr(x.uh.th)
ts.plot(x.uh.th.r)
# }
Run the code above in your browser using DataLab