Skip to main content
. 2019 Jun 21;19(12):2794. doi: 10.3390/s19122794
Algorithm 1 Offline Feet Contact Cassification.
Require: FT sensor forces (z component) for right foot RFfz and left foot LFfz
1: procedure
2:     N ← number of samples
3:     Tfz ← threshold on fz = mean(RFfz+LFfz)
4:     main loop:
5:     for j=1N do
6:         if absRFfzLFfzTfz then
7:            Classify j as double support sample
8:         else
9:            if RFfz(j)>LFfz(j)  then
10:                Classify j as right single support sample
11:            else
12:                Classify j as left single support sample
13:            end if
14:         end if
15:     end for
16:   end procedure