Research Article

Arm Motion Recognition and Exercise Coaching System for Remote Interaction

Algorithm 1

Clustering algorithm.
Input:
the test data set ;
Output:
the set of cluster barycenters founded;
() Let be the initial threshold which will be used to measure and find new cluster centers.
() Let and .
() Randomly divide into clusters in an average manner.
() Randomly select an initial barycenter from each cluster;
() for each , calculate its Euclidean distance to each ;
() Assign to the cluster of with the shortest distance ;
() Update the barycenter of each cluster by
with denotes the number of data currently in the cluster of ;
() for to do
()  If ()
()   goto step ();