Skip to main content
. 2023 May 14;23(10):4745. doi: 10.3390/s23104745
Algorithm 2 Frequency–Domain Feature Extraction.

Require: [X1,X2,,Xn]Q

Ensure: SQ

 1: count ← 0

 2: for Xi in Q do

 3:       for each time interval t do

 4:             Statistics (xt)

 5:             if countw then

 6:                   X(t)||xt; where || stands for concatenation.

 7:                   count++

 8:             else

 9:                   X(t)x2w||xt

 10:            end if

 11:            SX(t)HHT(X(t)); where SX(t)Rw×w

 12:       end for

 13:       SX(t)t=1,,nSQ; where SQRw×w×n

 14: end for