Skip to main content
. Author manuscript; available in PMC: 2017 Jun 1.
Published in final edited form as: Pervasive Mob Comput. 2016 Jun;28:51–68. doi: 10.1016/j.pmcj.2015.09.007

Algorithm 3.

PCAR(Σ1, Σ2, Dîst)

1: Σ1, Σ2 = two sets of activity curves
2: //Return a change score S
3: C1 = Aggregate Activity Curves(Σ1)
4: C2 = Aggregate Activity Curves(Σ2)
5: Γ = Align Curves(C1, C2)
6: for all alignment pairs (u, υ) in Γ do :
7:   Calculate SDKL(D1,uD2,υ) between activity distribution D1,uC1 and D2,υC2.
8:   Perform significance testing of estimated distance by querying Dîst.
9:   if change is significant :
10:   S = S + 1
11: end for
12: return S