>> kmeans_test 17-Oct-2009 17:01:46 KMEANS_TEST MATLAB version Test various KMEANS programs. 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 8 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.525234 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392980 11 0.023116 2 30 30 0.986954 27 0.032898 3 18 18 0.698860 19 0.038826 4 21 21 1.059092 30 0.050433 5 14 14 0.387348 10 0.027668 Total 100 100 3.525234 100 0.035252 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.7516 0.2134 0 15.2497 0 0.0541 0.7115 0 6.8261 0 cluster_center = 0.2092 0.2134 0 0.4621 0 0.7832 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.081503 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 1 1 0.000000 0 0.000000 2 30 30 0.986954 24 0.032898 3 22 22 0.855749 20 0.038898 4 26 26 1.246595 30 0.047946 5 21 21 0.992205 24 0.047248 Total 100 100 4.081503 100 0.040815 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.525234 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392980 11 0.023116 2 30 30 0.986954 27 0.032898 3 18 18 0.698860 19 0.038826 4 21 21 1.059092 30 0.050433 5 14 14 0.387348 10 0.027668 Total 100 100 3.525234 100 0.035252 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 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.882782 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.711415 14 0.034425 2 28 28 1.248781 25 0.028428 3 14 14 0.466427 9 0.033316 4 24 24 1.931499 39 0.071367 5 14 14 0.524659 10 0.029348 Total 100 100 4.882782 100 0.040746 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 20 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 9.353684 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 35 35 5.920840 63 0.146578 2 27 27 1.838784 19 0.061489 3 16 16 0.844250 9 0.045646 4 11 11 0.351498 3 0.030620 5 11 11 0.398311 4 0.035757 Total 100 100 9.353684 100 0.082509 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. 17-Oct-2009 17:01:49 >>