# Simulate data from the claw density, find the
# empirical scaling function coefficients and covariances and then decompose
# both to give wavelet coefficients and their variances.
data <- rclaw(100)
datahr <- denproj(data, J=8, filter.number=2,family="DaubExPhase", covar=TRUE)
data.wd <- denwd(datahr)
if (FALSE) plotdenwd(data.wd, top.level=(datahr$res$J-1))
datavar <- dencvwd(datahr)
if (FALSE) plotdenwd(datavar, top.level=(datahr$res$J-1))
Run the code above in your browser using DataLab