Introduction - If you have any usage issues, please Google them yourself
K-means clustering algorithm to achieve a two-dimensional clustering extends to any dimension of the cluster sample points, the code attached to the principle of detailed instructions, and tips relevant examples, good results