Multisignal 1-D decomposition energy distribution
[E,PEC,PECFS] = wdecenergy(DEC)
[E,PEC,PECFS,IDXSORT,LONGS] = wdecenergy(DEC,'sort')
[E,PEC,PECFS] = wdecenergy(DEC,OPTSORT,IDXSIG)
[E,PEC,PECFS,IDXSORT,LONGS] = wdecenergy(DEC,OPTSORT,IDXSIG)
[E,PEC,PECFS] = wdecenergy(DEC)
computes
the vector E that contains the energy (L2-Norm) of each decomposed
signal, the matrix PEC that contains the percentage of energy for
each wavelet component (approximation and details) of each signal,
and the matrix PECFS that contains the percentage of energy for each
coefficient.
E(i) is the energy (L2-norm) of the ith signal.
PEC(i,1) is the percentage of energy for the approximation of level MAXLEV = DEC.level of the ith signal.
PEC(i,j), j=2,...,MAXLEV+1 is the percentage of energy for the detail of level (MAXLEV+1-j) of the ith signal.
PECFS(i,j), is the percentage of energy for jth coefficients of the ith signal.
[E,PEC,PECFS,IDXSORT,LONGS] = wdecenergy(DEC,'sort')
returns
PECFS sorted (by row) in ascending order and an index vector IDXSORT.
Replacing 'sort' by 'ascend' returns the same result.
Replacing 'sort' by 'descend' returns PECFS sorted in descending order.
LONGS is a vector containing the lengths of each family of coefficients.
[E,PEC,PECFS] = wdecenergy(DEC,OPTSORT,IDXSIG)
returns the values for the signals whose indices are given by the IDXSIG
vector.
[E,PEC,PECFS,IDXSORT,LONGS] = wdecenergy(DEC,OPTSORT,IDXSIG)
returns
the values for the signals whose indices are given by the IDXSIG vector,
the index vector IDXSORT, and LONGS, which is a vector containing
the lengths of each family of coefficients. Valid values for OPTSORT
are 'none', 'sort', 'ascend', 'descend'.
[1] Mesa, Hector. “Adapted Wavelets for Pattern Detection.” In Progress in Pattern Recognition, Image Analysis and Applications, edited by Alberto Sanfeliu and Manuel Lazo Cortés, 3773:933–44. Berlin, Heidelberg: Springer Berlin Heidelberg, 2005. https://doi.org/10.1007/11578079_96.