View source: R/wavelet_utils.R
gen_wavelet_indx | R Documentation |
Generate list of index corresponding to where the wavelet coefficient of scale s are stored in wd$D.
gen_wavelet_indx(lev_res)
lev_res |
integer, corresponding to log2 of the signal length. WARNING the ordering change for different values of s. |
library(wavethresh)
tem_func <- rnorm( 2^8)
twav <- wd(tem_func)
indx_lst <- gen_wavelet_indx(8)
plot(accessD(twav,level=6), ( twav$D[unlist(indx_lst[(6+1)])]) )
#should a straightline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.