R/uh.R

Defines functions uh

Documented in uh

uh <-
function(x, criterion = inner.prod.max) {
n <- length(x)
sigma <- mad((x[2:n] - x[1:(n-1)])/sqrt(2))
x.buh <- best.unbal.haar(x, criterion)
x.buh.t <- hard.thresh(x.buh, sigma)
x.buh.t.r <- reconstr(x.buh.t)
return(x.buh.t.r)
}

Try the unbalhaar package in your browser

Any scripts or data that you put into this service are public.

unbalhaar documentation built on April 19, 2022, 5:05 p.m.