| Algorithm 1 Signal_Segment (, , ) |
|
Inputs: —original time-domain signal —width of sliding window —moving step length of sliding window Outputs: —data window matrix |
|
1: Calculate 2: Initialize 3: for to do 4: if 5: Assign the data from 1 to in to the ith column of the . 6: else if 7: Assign the data who are located from the th to the th in to the ith column of . 8: else 9: Assign the data who are located from the th to the end of to the ith column of and replace the Null in the ith column with 0. 11: End if 12: End for |