Skip to main content
. 2017 Jun 16;17(6):1393. doi: 10.3390/s17061393
Algorithm 1 Pseudo-Code Based on the Sliding Window and Bayes Network
1 Input: Sensor data stream
2 Output: Type(label) of a slide instance
3 label=
4 Swidth=200, //set the width of sliding window
5 for (Sref = 0; size (Sref+Swidth) ≥ Swidth; t ++)
6 label= Bayes network (Dtrain, Sref + Swidth)
7 end for
8 return label