Skip to main content
. 2019 Sep 23;19(19):4108. doi: 10.3390/s19194108
Algorithm 1: Fast Optimal Wavelet Basis (OWB) Extraction
Step 1. Select as the largest levels No. for wavelet packet (WP) dissolution
Step 2. If the current level (d) of dissolution is smaller than L. Execute 2.1–2.4 to every existent parent-node (sub-band) Sdi(0i4d1).
Step 2.1 Calculate Shannon entropy SE(Sdi) of sub-band as the cost function.
Step 2.2 Divide Sdi into 4 sub-bands (children-nodes: LLd+14i,LLHd+14i+1,HLd+14i+2 and HHd+14i+3). Calculate their Shannon entropy: SE(LLd+14i),SE(LHd+14i+1),SE(HLd+14i+2) and SE(HHd+14i+3).
Step 2.3 If SE(Sdi)<(SE(LLd+14i)+SE(LHd+14i+1)+SE(HLd+14i+2)+SE(HHd+14i+3)) is true, keep the parent node and delete the children-nodes. If it is false, keep both the parent- nodes and children-nodes.
Step 2.4 If no nodes are available to divide, end for extracting the OWB.