Learn R Programming

unbalhaar (version 2.1)

hard.thresh.bu: Hard thresholding of a bottom-up Unbalanced Haar decomposition

Description

Presented with an object returned by best.unbal.haar.bu, the function sets to zero those Unbalanced Haar coefficients which fall below a certain threshold sigma.

Usage

hard.thresh.bu(buh.bu, sigma = 1)

Arguments

buh.bu

an object returned by best.unbal.haar.bu containing the decomposition to be thresholded

sigma

the threshold (a positive scalar)

Value

a thresholded object, of the same class as buh.bu

See Also

best.unbal.haar.bu, hard.thresh

Examples

Run this code
# NOT RUN {
x <- rnorm(1000)
x.uh <- best.unbal.haar.bu(x)
x.uh.th <- hard.thresh.bu(x.uh)
x.uh.th.r <- reconstr.bu(x.uh.th)
ts.plot(x.uh.th.r)
# }

Run the code above in your browser using DataLab