
Last chance! 50% off unlimited learning
Sale ends in
SimulatedSmoothSeries
. Each column contains a wavelet coefficient threshold level and rows contain observations.data("SimulatedSNR5Series")
J0.2
, has a threshold of $J0=2$ in the signal, and thus 0-valued wavelet coefficients for all mother wavelet coefficients finer than level 2 in the signal. Notice, the white noise added to the signal creates non-zero coefficients above the threshold.
The original smooth series were generated using 'wd'
and 'wr'
with the family="DaubLeAsymm"
, filter.number=8
, bc="periodic"
options in the 'wavethresh'
package.wavethresh-package
, SimulatedSmoothSeries
data(SimulatedSNR5Series)
##See if WiSEBoot selects the correct threshold for this data (J0=3)
## R=10 bootstrap samples is not recommended. For demonstration only.
bootObj <- WiSEBoot(SimulatedSNR5Series[,4], R=10)
bootObj$MSECriteria
##Look at the noisy data compared to the true smooth
data(SimulatedSmoothSeries)
plot(seq(1, 2^10), SimulatedSNR5Series[ , 6], main="Threshold of J0=5",
col="lightgray", xlab="Time", ylab="Observations", type="l")
lines(seq(1, 2^10), SimulatedSmoothSeries[ ,6], col="red", lwd=2)
Run the code above in your browser using DataLab