07-Jan-2022 22:37:44 kmeans_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test kmeans(). kmeans_test01(): Test the HMEANS_01 algorithm. Data points will be read from "points_100.txt". Number of points = 100 Spatial dimension = 2 Number of iterations allowed is 20 Number of iterations taken is 10 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.502369 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 18 18 0.581912 16 0.032328 2 32 32 1.135997 32 0.035500 3 9 9 0.193853 5 0.021539 4 23 23 0.933857 26 0.040602 5 18 18 0.656750 18 0.036486 Total 100 100 3.502369 100 0.035024 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". Number of points = 100 Spatial dimension = 2 Number of iterations allowed is 20 Number of iterations taken is 10 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.478001 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 28 28 0.786112 22 0.028075 2 15 15 0.526286 15 0.035086 3 14 14 0.341942 9 0.024424 4 20 20 0.679602 19 0.033980 5 23 23 1.144059 32 0.049742 Total 100 100 3.478001 100 0.034780 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 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 1.021638 29 0.046438 2 25 25 0.634804 18 0.025392 3 20 20 0.679602 19 0.033980 4 14 14 0.341942 9 0.024424 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 Number of iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 25 25 0.634804 18 0.025392 2 22 22 1.021638 29 0.046438 3 20 20 0.679602 19 0.033980 4 14 14 0.341942 9 0.024424 5 19 19 0.802368 23 0.042230 Total 100 100 3.480355 100 0.034804 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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.508046 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.927215 26 0.046361 2 14 14 0.360072 10 0.025719 3 30 30 0.986954 28 0.032898 4 20 20 0.871133 24 0.043557 5 16 16 0.362672 10 0.022667 Total 100 100 3.508046 100 0.035080 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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.443350 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.024424 2 31 31 1.033228 30 0.033330 3 24 24 1.031846 29 0.042994 4 15 15 0.391450 11 0.026097 5 16 16 0.644884 18 0.040305 Total 100 100 3.443350 100 0.034434 Number of KMEANS_01 iterations taken is 1 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.443350 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.024424 2 31 31 1.033228 30 0.033330 3 24 24 1.031846 29 0.042994 4 15 15 0.391450 11 0.026097 5 16 16 0.644884 18 0.040305 Total 100 100 3.443350 100 0.034434 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 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469574 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.933857 26 0.040602 2 16 16 0.644884 18 0.040305 3 26 26 0.666958 19 0.025652 4 24 24 1.031846 29 0.042994 5 11 11 0.192028 5 0.017457 Total 100 100 3.469574 100 0.034696 Number of KMEANS_02 iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.397390 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.933857 27 0.040602 2 13 13 0.460678 13 0.035437 3 23 23 0.578082 17 0.025134 4 24 24 1.031846 30 0.042994 5 17 17 0.392927 11 0.023113 Total 100 100 3.397390 100 0.033974 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 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.397390 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.933857 27 0.040602 2 24 24 1.031846 30 0.042994 3 13 13 0.460678 13 0.035437 4 23 23 0.578082 17 0.025134 5 17 17 0.392927 11 0.023113 Total 100 100 3.397390 100 0.033974 Number of KMEANS_03 iterations taken is 1 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.397390 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.933857 27 0.040602 2 24 24 1.031846 30 0.042994 3 13 13 0.460678 13 0.035437 4 23 23 0.578082 17 0.025134 5 17 17 0.392927 11 0.023113 Total 100 100 3.397390 100 0.033974 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 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.443798 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 13 13 0.296403 8 0.022800 2 16 16 0.437437 12 0.027340 3 16 16 0.644884 18 0.040305 4 31 31 1.033228 30 0.033330 5 24 24 1.031846 29 0.042994 Total 100 100 3.443798 100 0.034438 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 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.598082 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 15 15 0.402963 11 0.026864 2 19 19 0.761873 21 0.040099 3 21 21 0.821508 22 0.039119 4 29 29 0.906186 25 0.031248 5 16 16 0.705553 19 0.044097 Total 100 100 3.598082 100 0.035981 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 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.508046 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.871133 24 0.043557 2 30 30 0.986954 28 0.032898 3 16 16 0.362672 10 0.022667 4 14 14 0.360072 10 0.025719 5 20 20 0.927215 26 0.046361 Total 100 100 3.508046 100 0.035080 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 -2 -2 NaN NaN NaN 2 1 1 546.247179 NaN 78.035311 3 18 18 5.961318 NaN 0.458563 4 1 1 1545.320118 NaN 51.510671 5 82 82 4.651908 NaN 0.166140 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 10 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 5.867873 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 19 19 1.122605 19 0.053347 2 13 13 0.344166 5 0.026474 3 16 16 0.644884 10 0.040305 4 22 22 2.385309 40 0.042804 5 30 30 1.370907 23 0.030702 Total 100 100 5.867873 100 0.038654 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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 7.044496 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 23 23 0.900793 12 0.028369 2 13 13 0.646779 9 0.037646 3 28 28 2.905467 41 0.049508 4 18 18 1.552733 22 0.086263 5 18 18 1.038724 14 0.051504 Total 100 100 7.044496 100 0.050079 Cluster centers written to "test14_centers.txt". Cluster assignments written to "test14_clusters.txt". kmeans_test15(): 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 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.825884 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 21 21 1.619227 33 0.068280 2 16 16 0.644884 13 0.040305 3 30 30 1.370907 28 0.030702 4 14 14 0.524659 10 0.029348 5 19 19 0.666206 13 0.034186 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 44.980657 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 -2 -2 8.238231 18 0.258075 2 5 5 11.162232 24 0.556546 3 -1 -1 6.044525 13 0.318133 4 16 16 6.040566 13 0.108623 5 82 82 13.495103 30 0.143708 Total 100 100 44.980657 100 0.154705 Cluster centers written to "test16_centers.txt". Cluster assignments written to "test16_clusters.txt". kmeans_test() Normal end of execution. 07-Jan-2022 22:37:44