Skip to main content
. 2021 Apr 4;21(7):2524. doi: 10.3390/s21072524
Algorithm 1 Wavelet packet decomposition of bearing signal
  • Input: 

    bearing signal sequence f(t),t=1,2,,mλ, window width λ, wavelet packet scale l, wavelet packet function type

  • Output: 

    Time-frequency feature matrix Am×s

  • 1:

    Perform sliding window processing on the bearing signal sequence f(t),t=1,2,,mλ;

  • 2:

    The f(t),t=1,2,mλ was divided into m sequence, and each sequence fragment was λ;

  • 3:

    forj=1:mdo

  • 4:  

    According to the type of wavelet packet function, the wavelet packet coefficient cl,νn of the j-th sample is obtained by Mallat decomposition algorithm formula of wavelet packet;

  • 5:  

    cl,νn is arranged according to the corresponding order under the l-th scale to form the j-th row of Am×s;

  • 6:

    end for