kmeans_test 06-Feb-2019 09:16:31 kmeans_test MATLAB version Test kmeans. KMEANS_TEST01 Test the HMEANS_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469032 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 0.686172 19 0.031190 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.537425 15 0.038387 5 20 20 0.871133 25 0.043557 Total 100 100 3.469032 100 0.034690 Cluster centers written to "test01_centers.txt". Cluster assignments written to "test01_clusters.txt". KMEANS_TEST02 Test the HMEANS_02 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 16 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.539471 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 18 18 0.581912 16 0.032328 2 32 32 1.181443 33 0.036920 3 22 22 0.874656 24 0.039757 4 14 14 0.544174 15 0.038870 5 14 14 0.357285 10 0.025520 Total 100 100 3.539471 100 0.035395 Cluster centers written to "test02_centers.txt". Cluster assignments written to "test02_clusters.txt". KMEANS_TEST03 Test the KMEANS_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.679602 19 0.033980 2 25 25 0.634804 18 0.025392 3 14 14 0.341942 9 0.024424 4 22 22 1.021638 29 0.046438 5 19 19 0.802368 23 0.042230 Total 100 100 3.480355 100 0.034804 Cluster centers written to "test03_centers.txt". Cluster assignments written to "test03_clusters.txt". KMEANS_TEST04 Test the KMEANS_02 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 cluster_center = 0.9870 0.2134 0 15.2497 0 0.6546 0.7115 0 6.8261 0 cluster_center = 0.0206 0.2134 0 0.4621 0 0.4726 0.7115 0 0.2069 0 Number of iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.078453 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 1 1 0.000000 0 0.000000 2 30 30 0.986954 24 0.032898 3 23 23 0.933857 22 0.040602 4 26 26 1.246595 30 0.047946 5 20 20 0.911047 22 0.045552 Total 100 100 4.078453 100 0.040785 Cluster centers written to "test04_centers.txt". Cluster assignments written to "test04_clusters.txt". KMEANS_TEST05 Test the KMEANS_03 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.679602 19 0.033980 2 25 25 0.634804 18 0.025392 3 14 14 0.341942 9 0.024424 4 22 22 1.021638 29 0.046438 5 19 19 0.802368 23 0.042230 Total 100 100 3.480355 100 0.034804 Cluster centers written to "test05_centers.txt". Cluster assignments written to "test05_clusters.txt". KMEANS_TEST06 Test the HMEANS_01 + KMEANS_01 algorithms. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of HMEANS_01 iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469032 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 0.686172 19 0.031190 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.537425 15 0.038387 5 20 20 0.871133 25 0.043557 Total 100 100 3.469032 100 0.034690 Number of KMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.464298 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.830362 23 0.036103 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.497761 14 0.035554 5 19 19 0.761873 21 0.040099 Total 100 100 3.464298 100 0.034643 Cluster centers written to "test06_centers.txt". Cluster assignments written to "test06_clusters.txt". KMEANS_TEST07 Test the HMEANS_01 + KMEANS_02 algorithms. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of HMEANS_01 iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469032 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 0.686172 19 0.031190 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.537425 15 0.038387 5 20 20 0.871133 25 0.043557 Total 100 100 3.469032 100 0.034690 Number of KMEANS_02 iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.464298 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.830362 23 0.036103 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.497761 14 0.035554 5 19 19 0.761873 21 0.040099 Total 100 100 3.464298 100 0.034643 Cluster centers written to "test07_centers.txt". Cluster assignments written to "test07_clusters.txt". KMEANS_TEST08 Test the HMEANS_01 + KMEANS_03 algorithms. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of HMEANS_01 iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469032 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 0.686172 19 0.031190 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.537425 15 0.038387 5 20 20 0.871133 25 0.043557 Total 100 100 3.469032 100 0.034690 Number of KMEANS_03 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.464298 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.830362 23 0.036103 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.497761 14 0.035554 5 19 19 0.761873 21 0.040099 Total 100 100 3.464298 100 0.034643 Cluster centers written to "test08_centers.txt". Cluster assignments written to "test08_clusters.txt". KMEANS_TEST09 Test the HMEANS_W_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_equal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469032 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 0.686172 19 0.031190 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 11 0.027668 4 14 14 0.537425 15 0.038387 5 20 20 0.871133 25 0.043557 Total 100 100 3.469032 100 0.034690 Cluster centers written to "test09_centers.txt". Cluster assignments written to "test09_clusters.txt". KMEANS_TEST10 Test the HMEANS_W_02 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_equal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 8 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.524485 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392980 11 0.023116 2 30 30 0.986954 28 0.032898 3 14 14 0.387348 10 0.027668 4 22 22 1.126797 31 0.051218 5 17 17 0.630405 17 0.037083 Total 100 100 3.524485 100 0.035245 Cluster centers written to "test10_centers.txt". Cluster assignments written to "test10_clusters.txt". KMEANS_TEST11 Test the KMEANS_W_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_equal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.679602 19 0.033980 2 25 25 0.634804 18 0.025392 3 14 14 0.341942 9 0.024424 4 22 22 1.021638 29 0.046438 5 19 19 0.802368 23 0.042230 Total 100 100 3.480355 100 0.034804 Cluster centers written to "test11_centers.txt". Cluster assignments written to "test11_clusters.txt". KMEANS_TEST12 Test the KMEANS_W_03 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_equal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 1 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is NaN Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 1 1 404.516968 NaN 19.262713 2 -1 -1 NaN NaN NaN 3 39 39 0.788407 NaN 0.098551 4 -1 -1 NaN NaN NaN 5 62 62 1.590702 NaN 0.093571 Total 100 100 NaN 100 NaN Cluster centers written to "test12_centers.txt". Cluster assignments written to "test12_clusters.txt". KMEANS_TEST13 Test the HMEANS_W_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_unequal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 6.189911 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.711415 11 0.034425 2 10 10 0.134735 2 0.013473 3 9 9 0.209275 3 0.011421 4 31 31 3.345492 54 0.098598 5 30 30 1.788993 28 0.042851 Total 100 100 6.189911 100 0.052681 Cluster centers written to "test13_centers.txt". Cluster assignments written to "test13_clusters.txt". KMEANS_TEST14 Test the HMEANS_W_02 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_unequal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 5.390393 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 19 19 0.625168 11 0.032049 2 30 30 1.583295 29 0.037563 3 15 15 0.553264 10 0.036884 4 22 22 2.104006 39 0.086246 5 14 14 0.524659 9 0.029348 Total 100 100 5.390393 100 0.045974 Cluster centers written to "test14_centers.txt". Cluster assignments written to "test14_clusters.txt". KMEANS_TEST11 Test the KMEANS_W_01 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_unequal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 8 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.825884 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 19 19 0.666206 13 0.034186 2 30 30 1.370907 28 0.030702 3 14 14 0.524659 10 0.029348 4 21 21 1.619227 33 0.068280 5 16 16 0.644884 13 0.040305 Total 100 100 4.825884 100 0.040602 Cluster centers written to "test15_centers.txt". Cluster assignments written to "test15_clusters.txt". KMEANS_TEST16 Test the KMEANS_W_03 algorithm. Data points will be read from "points_100.txt". Spatial dimension = 2 Number of points = 100 Weights will be read from "weights_unequal_100.txt". Number of iterations allowed is 20 Number of iterations taken is 1 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 147.373549 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 -1 -1 10.402786 7 0.372218 2 0 0 1.997798 1 0.086861 3 35 35 5.023737 3 0.111253 4 -1 -1 121.749894 82 4.869996 5 67 67 8.199334 5 0.110324 Total 100 100 147.373549 100 0.060433 Cluster centers written to "test16_centers.txt". Cluster assignments written to "test16_clusters.txt". kmeans_test Normal end of execution. 06-Feb-2019 09:16:32 diary off