30-Dec-2022 11:43:24 kmeans_test(): MATLAB/Octave version 4.2.2 Test kmeans(). kmeans_test01(): Test hmeans_01(). 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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.476472 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 0.679602 19 0.033980 2 30 30 0.960274 27 0.032009 3 22 22 1.021638 29 0.046438 4 14 14 0.341942 9 0.024424 5 14 14 0.473015 13 0.033787 Total 100 100 3.476472 100 0.034765 Cluster centers written to "test01_centers.txt". Cluster assignments written to "test01_clusters.txt". kmeans_test02(): Test hmeans_02(). 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 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.480355 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.024424 2 20 20 0.679602 19 0.033980 3 22 22 1.021638 29 0.046438 4 25 25 0.634804 18 0.025392 5 19 19 0.802368 23 0.042230 Total 100 100 3.480355 100 0.034804 Cluster centers written to "test02_centers.txt". Cluster assignments written to "test02_clusters.txt". kmeans_test03(): Test kmeans_01(). 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 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.443350 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 31 31 1.033228 30 0.033330 2 24 24 1.031846 29 0.042994 3 15 15 0.391450 11 0.026097 4 16 16 0.644884 18 0.040305 5 14 14 0.341942 9 0.024424 Total 100 100 3.443350 100 0.034434 Cluster centers written to "test03_centers.txt". Cluster assignments written to "test03_clusters.txt". kmeans_test04(): Test kmeans_02(). 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.78767 0.87821 0.07757 0.59977 0.80280 0.44207 0.00000 0.00000 4.83216 2.50164 Number of iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.578678 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 1 1 0.000000 0 0.000000 2 25 25 0.602999 13 0.024120 3 31 31 1.647133 35 0.053133 4 23 23 1.358646 29 0.059072 5 20 20 0.969901 21 0.048495 Total 100 100 4.578678 100 0.045787 Cluster centers written to "test04_centers.txt". Cluster assignments written to "test04_clusters.txt". kmeans_test05(): Test kmeans_03(). 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.512521 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 1.126797 32 0.051218 2 17 17 0.630405 17 0.037083 3 30 30 0.986954 28 0.032898 4 15 15 0.265210 7 0.017681 5 16 16 0.503155 14 0.031447 Total 100 100 3.512521 100 0.035125 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 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.469574 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 24 24 1.031846 29 0.042994 2 23 23 0.933857 26 0.040602 3 26 26 0.666958 19 0.025652 4 16 16 0.644884 18 0.040305 5 11 11 0.192028 5 0.017457 Total 100 100 3.469574 100 0.034696 Number of KMEANS_01 iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.397390 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 24 24 1.031846 30 0.042994 2 23 23 0.933857 27 0.040602 3 23 23 0.578082 17 0.025134 4 13 13 0.460678 13 0.035437 5 17 17 0.392927 11 0.023113 Total 100 100 3.397390 100 0.033974 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 8 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.459047 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.024424 2 24 24 1.031846 29 0.042994 3 15 15 0.391450 11 0.026097 4 29 29 0.861478 24 0.029706 5 18 18 0.832332 24 0.046241 Total 100 100 3.459047 100 0.034590 Number of KMEANS_02 iterations taken is 2 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 24 24 1.031846 29 0.042994 3 15 15 0.391450 11 0.026097 4 31 31 1.033228 30 0.033330 5 16 16 0.644884 18 0.040305 Total 100 100 3.443350 100 0.034434 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 10 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.524903 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 21 21 0.961415 27 0.045782 2 30 30 0.986954 27 0.032898 3 10 10 0.179944 5 0.017994 4 19 19 0.525458 14 0.027656 5 20 20 0.871133 24 0.043557 Total 100 100 3.524903 100 0.035249 Number of KMEANS_03 iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.508411 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 21 21 0.961415 27 0.045782 2 30 30 0.986954 28 0.032898 3 13 13 0.327874 9 0.025221 4 16 16 0.361035 10 0.022565 5 20 20 0.871133 24 0.043557 Total 100 100 3.508411 100 0.035084 Cluster centers written to "test08_centers.txt". Cluster assignments written to "test08_clusters.txt". kmeans_test09(): Test hmeans_w_01(). 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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.459047 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 18 18 0.832332 24 0.046241 2 29 29 0.861478 24 0.029706 3 14 14 0.341942 9 0.024424 4 24 24 1.031846 29 0.042994 5 15 15 0.391450 11 0.026097 Total 100 100 3.459047 100 0.034590 Cluster centers written to "test09_centers.txt". Cluster assignments written to "test09_clusters.txt". kmeans_test10(): Test hmeans_w_02(). 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.530749 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 16 16 0.555109 15 0.034694 2 19 19 0.546316 15 0.028753 3 19 19 0.878256 24 0.046224 4 13 13 0.344166 9 0.026474 5 33 33 1.206902 34 0.036573 Total 100 100 3.530749 100 0.035307 Cluster centers written to "test10_centers.txt". Cluster assignments written to "test10_clusters.txt". kmeans_test11(): Test kmeans_w_01(). 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 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.465688 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 30 30 0.986954 28 0.032898 2 19 19 0.761873 21 0.040099 3 11 11 0.340989 9 0.030999 4 26 26 0.988523 28 0.038020 5 14 14 0.387348 11 0.027668 Total 100 100 3.465688 100 0.034657 Cluster centers written to "test11_centers.txt". Cluster assignments written to "test11_clusters.txt". kmeans_test12(): Test kmeans_w_03(). 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 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.464298 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 19 19 0.761873 21 0.040099 2 14 14 0.387348 11 0.027668 3 30 30 0.986954 28 0.032898 4 23 23 0.830362 23 0.036103 5 14 14 0.497761 14 0.035554 Total 100 100 3.464298 100 0.034643 Cluster centers written to "test12_centers.txt". Cluster assignments written to "test12_clusters.txt". kmeans_test13(): Test hmeans_w_01(). 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 4.882782 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 28 28 1.248781 25 0.028428 2 20 20 0.711415 14 0.034425 3 14 14 0.466427 9 0.033316 4 14 14 0.524659 10 0.029348 5 24 24 1.931499 39 0.071367 Total 100 100 4.882782 100 0.040746 Cluster centers written to "test13_centers.txt". Cluster assignments written to "test13_clusters.txt". kmeans_test14(): Test hmeans_w_02(). 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 6.901882 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 11 11 0.263793 3 0.023981 2 24 24 1.085762 15 0.025479 3 18 18 1.038724 15 0.051504 4 13 13 0.460678 6 0.035437 5 34 34 4.052924 58 0.070316 Total 100 100 6.901882 100 0.046538 Cluster centers written to "test14_centers.txt". Cluster assignments written to "test14_clusters.txt". kmeans_test15(): Test kmeans_w_01(). 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 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 4.825884 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 30 30 1.370907 28 0.030702 2 19 19 0.666206 13 0.034186 3 16 16 0.644884 13 0.040305 4 21 21 1.619227 33 0.068280 5 14 14 0.524659 10 0.029348 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 kmeans_w_03(). 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 21 21 1.619227 33 0.068280 2 30 30 1.370907 28 0.030702 3 16 16 0.644884 13 0.040305 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 "test16_centers.txt". Cluster assignments written to "test16_clusters.txt". kmeans_test() Normal end of execution. 30-Dec-2022 11:43:26