gen_wavelet_indx: Generate list of index wavelet coefficients

View source: R/wavelet_utils.R

gen_wavelet_indxR Documentation

Generate list of index wavelet coefficients

Description

Generate list of index corresponding to where the wavelet coefficient of scale s are stored in wd$D.

Usage

gen_wavelet_indx(lev_res)

Arguments

lev_res

integer, corresponding to log2 of the signal length. WARNING the ordering change for different values of s.

Examples

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


stephenslab/susiF.alpha documentation built on March 1, 2025, 4:28 p.m.