Skip to main content
. 2017 Jun 13;17(6):1370. doi: 10.3390/s17061370
Algorithm 2. Initializing and updating algorithm for uPAC.
Require: m > 0, p > 0, dTh > 0, λ > 0
1 Cluster training dataset into m clusters //k-medoids clustering
2 Extract representative particles with percentage p into dataset RP
3 Train LS-SVM predictive model PM with RP
4 while xN is valid do
5 yNf(PM,xN) //predict label
6 alltiti + 1 //update unchanging time
7 Iargi{mini[exp(ti/λ)d(xN,xi)]}
8 DdThexp(tI/λ)d(xN,xI)
9 if D > 0
10   tI←0 //clear unchanging time
11   xIxN //update RP
12   Update PM //replcaing with universal incremental LS-SVM
13 end if
14 end while