|
Algorithm 2 Appliance state clustering. |
Input: is the ground truth of appliance m
N = Maximum number of states
Output:
is the clustered operational states of appliance m
-
1:
Standardize the values of time series
-
2:
fortoNdo
-
3:
Compute within groups sum of squares (WSS)
-
4:
end for
-
5:
Obtain K using elbow method
-
6:
Perform K-Means clustering on to find K clusters
-
7:
where
-
8:
fortoKdo
-
9:
Get and of cluster
-
10:
-
11:
where
-
12:
Store in
-
13:
Store in
-
14:
end for
-
15:
return
|